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: linux
add this news to develwayMy Own Tech Diary... my 'tech' life, troubles and solutions... for future use.
Just type a command...
grep -rl old_string . | sort -u | xargs perl -pi~ -e 's/old_string/new_string/'
Labels: linux
add this news to develway
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home