Aug 10, 2004 #1 Michael42 Programmer Oct 8, 2001 1,454 US Hello, From a Bourne shell script how can I remove the first line in a file? The file is simply a verticle list created by a program but the first line unfortunately is a blank space. Thanks, Michael42
Hello, From a Bourne shell script how can I remove the first line in a file? The file is simply a verticle list created by a program but the first line unfortunately is a blank space. Thanks, Michael42
Aug 10, 2004 1 #3 mrjazz MIS Apr 9, 2002 115 DE sed version: Code: #!/bin/sh sed '1d' file.with_first_blank_line > test.without_first_blank_line HTH mrjazz Upvote 0 Downvote
sed version: Code: #!/bin/sh sed '1d' file.with_first_blank_line > test.without_first_blank_line HTH mrjazz
Aug 10, 2004 Thread starter #4 Michael42 Programmer Oct 8, 2001 1,454 US Thanks all - very simple yet effective methods. Upvote 0 Downvote