Fix tail examples

This commit is contained in:
Noah Veltman 2020-06-07 16:17:20 -07:00
parent f8c6500163
commit 6c72fce410
1 changed files with 2 additions and 2 deletions

View File

@ -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:
/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:
/files$ tail -n +1 names.txt > names-no-header.txt
/files$ tail -n +2 names.txt > names-no-header.txt
Miscellaneous
-------------