bug#39951: tail -n +NUM is not working properly

2020-03-06 Thread Bernhard Voelker
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

bug#39951: tail -n +NUM is not working properly

2020-03-06 Thread Michael Speer
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

bug#39951: tail -n +NUM is not working properly

2020-03-06 Thread Dimitris Moraitidis
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