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

My 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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home