How to remove first n lines from a text file?
On Linux is quite easy.
The above sample will remove the first 100 lines.
tail -n +100 largefile.txt > largefile.txt.tmp
mv largefile.txt.tmp largefile.txt
The above sample will remove the first 100 lines.
Comments
Post a Comment