Bash: tail: Remove first N lines from file


tail -n +$N inputFile > outputFile

Where $N is the number of the line which you want to start printing from.
For example if you want to delete only the first line / start printing from the second line you must issue the following:

tail -n +2 inputFile > outputFile

This post is also available in: Greek

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.