Skip to content

Instantly share code, notes, and snippets.

@mb6ockatf
Created March 9, 2024 09:42
Show Gist options
  • Save mb6ockatf/b3a35a643dab1e7af8e499e0d8024c72 to your computer and use it in GitHub Desktop.
Save mb6ockatf/b3a35a643dab1e7af8e499e0d8024c72 to your computer and use it in GitHub Desktop.
for file in *.jpg.jpg; do
mv -- "$file" "${file%.jpg.jpg}.jpg"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment