Wednesday, May 13, 2009

Change string in multiple files :: linux

Just type a command...

grep -rl old_string . | sort -u | xargs perl -pi~ -e 's/old_string/new_string/'

Labels:

develway.pl add this news to develway

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home