Hi,

        Greg and Lawson have given excellent answers. But here is one more
that you can try :

sed '1d' file1 > file2

        where file1 is the file you want to delete the line from, and
file2 is the new file.

        The default action of 'sed' is to print the input line it reads.
The command above says 'go ahead with your default action, but delete the
first line'. If you want to delete lines 'm' through 'n', you would say :

sed 'm,nd' file1 > file2

Regards,
Kenneth

On Sat, 16 Oct 1999, Ming Hsu wrote:

> How can I delete the first line of a text file while retaining the
> formatting of the files?  I have a bunch of files with 360 columns of
> data, each for 1 degree.  The problem is that they are all labeled, and
> matlab takes in nothing but numbers, so I have to get rid of that first
> line.  I have looked at awk, but awk seems to do just columns.  Are there
> some other program that would allow me to delete a row of data?
> 
> Thanks,
> Ming Hsu
> 
> 


Reply via email to