Skip to content

Commit

Permalink
Fix tail examples
Browse files Browse the repository at this point in the history
  • Loading branch information
veltman committed Jun 7, 2020
1 parent f8c6500 commit 6c72fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down

0 comments on commit 6c72fce

Please sign in to comment.