Skip to content

Instantly share code, notes, and snippets.

@dasch
Created Dec 30, 2008
Embed
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