Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
git diff --name-only origin/master | grep '\.png$' | xargs -I xxx -P 10 -t pngbai xxx xxx2
echo "Replacing files"
find . -iname *.png2 -exec bash -c 'echo {} `dirname {}`/`basename {} .png2`.png' \;
find . -iname *.png2 -exec bash -c 'mv {} `dirname {}`/`basename {} .png2`.png' \;
echo "Removing leftovers"
find . -iname *.png2.png -exec bash -c 'echo {}' \;
find . -iname *.png2.png -exec bash -c 'rm {}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.