Friday, July 5, 2013

Ubuntu - Replace string in all files in one directory

use du

grep -rl 'string' somedir/ | xargs sed -i 's/string/string2/g'

No comments :

Post a Comment