Skip to content

Instantly share code, notes, and snippets.

@jbickar
Created February 10, 2015 21:19
Show Gist options
  • Save jbickar/03d2b5ac45b421024aed to your computer and use it in GitHub Desktop.
Save jbickar/03d2b5ac45b421024aed to your computer and use it in GitHub Desktop.
Use find and sed to update all version numbers within a directory
find . -name "*.info" -exec sed -i '' 's/version\ \=\ 7.x-2.2/version\ \=\ 7.x-2.3/g' "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment