Removing First Few Lines From Text File – Unix

For removing the first lines from file use this command,

tail +(n+1) where ‘n’ is the number of lines you want to remove,
If you want to remove first 3 lines then use,

more filename.txt | tail +4

Leave a Reply

Your email address will not be published. Required fields are marked *

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