Uncategorized

Recursive Search and Replace in *Nix

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

Source

Leave a Reply

Your email address will not be published. Required fields are marked *