Re: removing lines from a file
On Sat, Nov 02, 2002 at 02:19:38PM -0600, 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?
In place? Put the following in a batch script:
ed $1 <<!EOF
Note that you need to work backwards so the line numbers don't change.
"Exhilaration is that feeling you get just after a great idea hits you,
and just before you realize what's wrong with it."
Rick Pasotto firstname.lastname@example.org http://www.niof.net