mirror of
https://github.com/veltman/clmystery.git
synced 2024-06-11 09:25:34 +02:00
Fix tail examples
This commit is contained in:
parent
f8c6500163
commit
6c72fce410
|
@ -286,11 +286,11 @@ This will print out the last 15 lines of a file:
|
||||||
|
|
||||||
Or, if you want to print all the file but leave out the FIRST 15 lines, you can add a plus sign:
|
Or, if you want to print all the file but leave out the FIRST 15 lines, you can add a plus sign:
|
||||||
|
|
||||||
/files$ tail -n +15 names.txt
|
/files$ tail -n +16 names.txt
|
||||||
|
|
||||||
This is helpful if you want to, say, remove a header row from a CSV file:
|
This is helpful if you want to, say, remove a header row from a CSV file:
|
||||||
|
|
||||||
/files$ tail -n +1 names.txt > names-no-header.txt
|
/files$ tail -n +2 names.txt > names-no-header.txt
|
||||||
|
|
||||||
Miscellaneous
|
Miscellaneous
|
||||||
-------------
|
-------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user