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

Re: removing lines from a file



Lance Hoffmeyer <lance@augustmail.com> writes:
> 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?

I'd just use sed:

  sed -e 5,10d -e 16,20d input-file

-- 
David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell



Reply to: