How to get the last lines of a file except the first 20? How to get the last lines of a file except the first 20? unix unix

How to get the last lines of a file except the first 20?


Try

sed -i 1,20d filename

if you want to delete the first 20 lines !


Awk power can be used too:

awk -- 'NR > 20' /etc/passwd