Say I have a file with any number of lines, say, 125. I want to get all the lines except the first n, say, 20. So, I want lines 21-125.
Is there a way to do this with with tail/head, or some other tool?
Say I have a file with any number of lines, say, 125. I want to get all the lines except the first n, say, 20. So, I want lines 21-125.
Is there a way to do this with with tail/head, or some other tool?
Awk power can be used too:
awk -- 'NR > 20' /etc/passwd
Try
sed -i 1,20d filename
if you want to delete the first 20 lines !