Thursday, October 24, 2013

replace a string in multiple files

grep -rl 'from' ./ | xargs sed -i 's/from/to/g'

No comments:

Post a Comment