in reply to Save all but line 32!
Offtopic for the site, but sed's a much better tool for that job. It's very easy to do with sed addressing:
--jb
Sadly, I don't have a clever or shorter way to do it in perl. The number 32 can be anything, of coursesed -n 32\!p filename
--jb
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: sed (was: Save all but line 32!)
by Aristotle (Chancellor) on Sep 19, 2002 at 18:57 UTC | |
by BrowserUk (Patriarch) on Sep 19, 2002 at 23:11 UTC | |
by BrowserUk (Patriarch) on Sep 20, 2002 at 13:16 UTC | |
by runrig (Abbot) on Sep 20, 2002 at 17:48 UTC | |
In Section
Meditations