[ale] sed

Jeff Lightner jlightner at water.com
Fri May 18 10:17:18 EDT 2007


Another old geezer gasps in:  I remember doing edlin on DOS.  Nothing
like an editor where you can only see one line at a time - talk about
being careful on your edits...

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of JK
To: ale at ale.org
Sent: Friday, May 18, 2007 9:34 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] sed

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
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale



More information about the Ale mailing list