Delete group of lines from file

I have a rather large file that needs lines deleted periodically. How may I accomplish this task? Should I run into an error message "not enough disk space" AIX 5.3

Thanks

You could check the free space being at least equal to the size of the file in the script you write to trim the file.

Most of the "not enough disk space" do not come from a problem with the diskspace where the file resides, though. Some tools (vi, for instance, being one of them) create a copy of the original file upon opening it (this is the reason why vi can "write the file onto itself" instead of having to use an intermediate copy like "sed"), which is located in /var/tmp (by default). You might have a problem rather there than in the filesystem your file resides in.

I hope this helps.

bakunin

Pretty simple resolve here. This worked, thanks a bunch!!