[ale] sed

James P. Kinney III jkinney at localnetsolutions.com
Fri May 18 09:26:56 EDT 2007


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. 

-- 
James P. Kinney III          
CEO & Director of Engineering 
Local Net Solutions,LLC        
770-493-8244                    
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part




More information about the Ale mailing list