10/15/2013

Delete first few lines in Linux

$ cat t.txt
12
34
56
78
90
$ sed -e '1,3d' < t.txt
78
90
$ tail -n +4 t.txt
78
90
$ awk 'NR > 3 { print }' < t.txt
78
90

没有评论: