in reply to Re: Re^2: sed (was: Save all but line 32!)
in thread Save all but line 32!
It's 10 actually, I can leave out a space.
sed -e32d filename
Also, yours is 12 keystrokes. And once we get to multiple files, yours grows linearly, mine is constant.. :^)
for F in *;do sed -e32d "$F";done
(NB: a loop is necessary since we'll otherwise only delete the 32nd line of the first file.)
Makeshifts last the longest.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re^4: sed
by BrowserUk (Patriarch) on Sep 20, 2002 at 13:16 UTC | |
Re: Re^4: sed
by runrig (Abbot) on Sep 20, 2002 at 17:48 UTC | |
In Section
Meditations