[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] char replacement - repost
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