Hi All,

How to delete last 10 lines of a file using Perl one liner?

I used the following one liner to delete first 10 lines of a file,

perl -i.bak -ne 'print unless 1..10' test.txt


Regards
Sheela

Reply via email to