Skip to content

Instantly share code, notes, and snippets.

@chris-huffman
Created May 26, 2020 19:17
Show Gist options
  • Save chris-huffman/f83b5bc64bc1719c5e115e0e3c6a645b to your computer and use it in GitHub Desktop.
Save chris-huffman/f83b5bc64bc1719c5e115e0e3c6a645b to your computer and use it in GitHub Desktop.
Bash script to rename images. (This example, append "_1".)
for i in *.png; do mv "$i" "${i/.png}"_1.png; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment