Skip to content

Instantly share code, notes, and snippets.

@espinz
Last active October 29, 2019 07:17
Show Gist options
  • Save espinz/8a5d4db3db028f41f63e8df4a491d733 to your computer and use it in GitHub Desktop.
Save espinz/8a5d4db3db028f41f63e8df4a491d733 to your computer and use it in GitHub Desktop.
Finding an explosion of files and moving them into a new folder
find . -type d \( -path ./directory1 -o -path ./directory2 \) -prune -o -iname "*.txt" -print -exec mv {} TXT \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment