On 3/6/20 10:42 AM, Dimitris Moraitidis wrote:
Hey there,
tail -n + NUM does not return the desired output. +NUM starts from the top
of the file, not from the bottom.
So for example, given the following file:
this
is
an
example
file
each
word
represents
a
line
and executing tail -n +3 examp
you want the `head` of the file sans the last few lines, rather than the
`tail` of the file sans the first few.
from the man page for tail
> -n, --lines=[+]NUM
> output the last NUM lines, instead of the last 10; or use -n
+NUM to output starting with line NUM
> use -n +NUM to
Hey there,
tail -n + NUM does not return the desired output. +NUM starts from the top
of the file, not from the bottom.
So for example, given the following file:
>this
>is
>an
>example
>file
>each
>word
>represents
>a
>line
and executing tail -n +3 example, I am getting
>example
>file
>each
>w