How to remove first n lines from a text file?

On Linux is quite easy.

tail -n +100 largefile.txt > largefile.txt.tmp
mv largefile.txt.tmp largefile.txt

The above sample will remove the first 100 lines.

Comments

Popular posts from this blog

What an architect should first think about

Notes from Release It! Book