Skip to content

Instantly share code, notes, and snippets.

Created Dec 30, 2008
What would you like to do?
# Replaces "string1" with "string2" recursively
# Approach 1:
find ./ -type f | xargs sed -i 's/string1/string2/'
# Approach 2:
rpl -x'.cpp' -x'.h' -pR "string1" "string2" *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment