Skip to content

Instantly share code, notes, and snippets.

@cloudhuang
Last active August 29, 2015 14:26
Show Gist options
  • Save cloudhuang/8bbfb33782d1c3ab935c to your computer and use it in GitHub Desktop.
Save cloudhuang/8bbfb33782d1c3ab935c to your computer and use it in GitHub Desktop.
# replace old_string with new_string in the path recursively
sed -i '' 's/old_string/new_string/g' $( find /path -name file_name )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment