Deleting the first two lines of a file using BASH or awk or sed or whatever

后端 未结 4 1599
独厮守ぢ
独厮守ぢ 2021-01-31 15:48

I\'m trying to delete the first two lines of a file by just not printing it to another file. I\'m not looking for something fancy. Here\'s my (failed) attempt at awk:



        
4条回答
  •  情书的邮戳
    2021-01-31 16:28

    Use tail:

    tail -n+3 file
    

    from the man page:

       -n, --lines=K
              output the last K lines, instead of the last 10; or use  -n  +K
              to output lines starting with the Kth
    

提交回复
热议问题