in reply to Save all but line 32!
Not as fast and doesn't handle a list of files, but for entertainment value:
(Tie::File is in the standard lib now.)perl -MTie::File -e 'tie @file, 'Tie::File', $ARGV[0]; splice @file, 3 +1, 1;' filename
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Save all but line 32!
by Aristotle (Chancellor) on Sep 18, 2002 at 19:20 UTC | |
by zigdon (Deacon) on Sep 18, 2002 at 19:58 UTC |
In Section
Meditations