Hi
I execute a command and would like for it start from a certain line and not right at the beginning.
Basically starting like from 10 lines down.
Hi
I execute a command and would like for it start from a certain line and not right at the beginning.
Basically starting like from 10 lines down.
There are lots of ways to do this. One simple way is:
tail -n +10 input_file | command
Using awk:-
awk 'NR>10' input_file | command
Since you're asking for grep, that can all be done in one awk:
awk '(NR>10) && /regex/' filename