On Sat, 27 May 2006 12:31 pm, Peter Chubb wrote:
> Or use ed:
>
>    for i in *
>    do
>    ed - $i <<\EOF
>    1,$s/str/repl/g
>    w
>    q
>    EOF
>    done

Sweet - old school "ed" and here document.  Very nice:)

James
-- 
Most people eat as though they were fattening themselves for market.
                -- E.W. Howe

Attachment: pgpEon1WHkBKY.pgp
Description: PGP signature

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to