[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: removing lines from a file



On Saturday 02 November 2002 02:19 pm, Lance Hoffmeyer wrote:
> I know this has come up before but what is the best
> way to remove lines 5-10 and lines 16-20 from
> a file using the console and a batch file?
>
> Lance

you could use wc to get the total number of lines, and then use head and tail 
to grab the sections you want (try piping them into each other to get 
subsections)

-jason pepas



Reply to: