How Do You Skip the First Two Lines in Unix?
Contents How Do You Skip the First Few Lines in Unix? That Is, If You Want to Skip N Lines, You Start Printing Line N+1. Example: $ Tail -N +11 /Tmp/Myfile How...
Contents
How do you skip the first few lines in Unix?
That is, if you want to skip N lines, you start printing line N+1. Example: $ tail -n +11 /tmp/myfile
Must Read
How do I skip a line in bash?
Using head to get the first lines of a stream, and tail to get the last lines in a stream is intuitive. But if you need to skip the first few lines of a stream, then you use tail “-n +k” syntax. And to skip the last lines of a stream head “-n -k” syntax.