eg.

find . -name \*.c -exec sh -c 'echo -e "1,$ s/include/foo/g\nw\n" | ed {}' \;

[EMAIL PROTECTED] wrote:

>         Hi, is there a console utility to find and replace in a file?
> Preferably on which can find & replace from a bunch of files as passed by 'ls'
> or something?
> Thanks,
> Timothy
>
> ----------------------------------
> E-Mail: [EMAIL PROTECTED]
> Date: 08-Sep-98
> Time: 18:17:27
>
> This message was sent by XFMail.
> Powered by GNU/Linux 2.0.
> ----------------------------------
>
> --
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

--
Jens B. Jorgensen
[EMAIL PROTECTED]

Reply via email to