Peter Chubb wrote:

> Or use ed:
> 
>    for i in *
>    do
>    ed - $i <<\EOF
>    1,$s/str/repl/g
>    w
>    q
>    EOF
>    done

'HERE' file, nice. That's more elegant than my suggestion.

Terry
-- 
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