[ale] sed

JK jknapka at kneuro.net
Fri May 18 09:34:15 EDT 2007


James P. Kinney III wrote:

> On Fri, 2007-05-18 at 09:02 -0400, Geoffrey wrote:
> 
> 
>>For those of us who are old enough to have used 'ed' prior to 'vi' you 
>>can do what you want with 'ed' and a 'here document' as follows:
>>
>>ed inputfile << ENDHERE
>>1,$ s/abc/xyz/g
>>w
>>q
>>ENDHERE
> 
> 
> Someone asks a _simple_ *NIX question and all the geezers dust off their
> old neurons and start wheezing back answers "well, back in the days
> before we had both bits and bytes..."
> 
> :)
> 
> Nice to know editing has improved so much. 
> 
> Hmm. Maybe editors are too easy now and that's why there is so much code
> bloat. 

Yeah, back when it took ten keystrokes to enter a single bit, we
wrote some *tight* code, man.

-- JK

-- 
"What can be asserted without evidence can also be
dismissed without evidence." -- Christopher Hitchens



More information about the Ale mailing list