Skip to content

Instantly share code, notes, and snippets.

@foreseaz
Created June 10, 2019 09:59
Show Gist options
  • Save foreseaz/3c5a33a54f965a1a35124990eda6c0e9 to your computer and use it in GitHub Desktop.
Save foreseaz/3c5a33a54f965a1a35124990eda6c0e9 to your computer and use it in GitHub Desktop.
rename extension in folders
ren '*.com' '#1.jpg'
find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && ren '*.com' '#1.jpg'" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment