Jan 28, 2007 #1 Yarka Technical User Jan 14, 2007 192 ES Hi How I can eliminate 2000 first lines of a file? Thanks.
Jan 28, 2007 1 #2 feherke Programmer Aug 5, 2002 9,540 RO Hi Code: sed -i '1,2000d' /the/file Needs GNU [tt]sed[/tt]. Or with any tool, using two files. Code: sed '1,2000d' /input/file > /output/file [gray]# or[/gray] awk 'NR>2000' /input/file > /output/file [gray]# or[/gray] tail +2001 /input/file > /output/file Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Hi Code: sed -i '1,2000d' /the/file Needs GNU [tt]sed[/tt]. Or with any tool, using two files. Code: sed '1,2000d' /input/file > /output/file [gray]# or[/gray] awk 'NR>2000' /input/file > /output/file [gray]# or[/gray] tail +2001 /input/file > /output/file Feherke. http://rootshell.be/~feherke/
Jan 28, 2007 1 #3 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE Or you vi the file and then give the commands :1,2000d[enter] :wq[enter] HTH, p5wizard Upvote 0 Downvote