Skip to content

Instantly share code, notes, and snippets.

@olegch
Last active December 24, 2021 22:02
Show Gist options
  • Save olegch/5020674 to your computer and use it in GitHub Desktop.
Save olegch/5020674 to your computer and use it in GitHub Desktop.
Find files skipping some directories and make global replacement
find . -path ./.git -prune -o -path */target -prune -o -path ./binary -prune -o -type f -print | xargs sed -i 's/1\.6\.0-SNAPSHOT/1.7.0-SNAPSHOT/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment