Skip to content

Instantly share code, notes, and snippets.

@Neoklosch
Created September 16, 2021 13:08
Show Gist options
  • Save Neoklosch/d9c41cbc15f7506adbcab469f7eba126 to your computer and use it in GitHub Desktop.
Save Neoklosch/d9c41cbc15f7506adbcab469f7eba126 to your computer and use it in GitHub Desktop.
rename all png files
COUNTER=1
for file in *.png; do
mv "$file" "$COUNTER.png"
COUNTER=$[$COUNTER +1]
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment