[ale] char replacement - repost
Jason Day
jasonday at worldnet.att.net
Wed Nov 19 13:16:36 EST 2003
On Wed, Nov 19, 2003 at 09:44:42AM -0500, Geoffrey wrote:
> for fn in $(find . -type f -print); do
>
> sed 's/John/George/g' $fn > tmpfile
> mv tmpfile $fn
> done
My favorite is:
perl -p -i -e 's/John/George/g' `find . -type f -print`
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
More information about the Ale
mailing list