Posts

Showing posts from November, 2011

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.