Fix tail with +NUM

Fixes issue #27.
This commit is contained in:
Jens Lechtenbörger 2020-06-07 08:54:45 +02:00
parent 6dd30f8762
commit 4130bc8c3c

View File

@ -339,15 +339,15 @@ Example:
is the same as
/files$ tail -n +7 names.txt | head -n 5
(Print out everything but the first 7 lines, then print the first 5 lines of that)
/files$ tail -n +8 names.txt | head -n 5
(Print out everything starting with line 8, then print the first 5 lines of that)
is pretty much the same as:
/files$ tail -n +7 names.txt > temporaryfile.txt
/files$ tail -n +8 names.txt > temporaryfile.txt
/files$ head -n 5 temporaryfile.txt
/files$ rm temporaryfile.txt
(Save everything but the first 7 lines to a temporary file, then print the first 5 lines of that, then delete the temporary file)
(Save everything starting with line 8 to a temporary file, then print the first 5 lines of that, then delete the temporary file)
---