[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[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
- Follow-Ups:
- [ale] sed
- From: jlightner at water.com (Jeff Lightner)
- References:
- [ale] sed
- From: terry at bitlinx.com (Terry Bailey)
- [ale] sed
- From: cfowler at outpostsentinel.com (cfowler)
- [ale] sed
- From: vindir at comcast.net (Jamey Owens)
- [ale] sed
- From: ozone at webgroup.org (David Tomaschik)
- [ale] sed
- From: lists at serioustechnology.com (Geoffrey)
- [ale] sed
- From: jkinney at localnetsolutions.com (James P. Kinney III)