[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: find & replace?



eg.

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

timothy@smasher.rs.itd.umich.edu 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: timothy@smasher.rs.itd.umich.edu
> Date: 08-Sep-98
> Time: 18:17:27
>
> This message was sent by XFMail.
> Powered by GNU/Linux 2.0.
> ----------------------------------
>
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

--
Jens B. Jorgensen
jjorgens@bdsinc.com



Reply to: