Skip to content

Instantly share code, notes, and snippets.

@smilingkylan
Created December 17, 2015 22:28
Show Gist options
  • Save smilingkylan/0f98ae990975f025e2ee to your computer and use it in GitHub Desktop.
Save smilingkylan/0f98ae990975f025e2ee to your computer and use it in GitHub Desktop.
I=0
for F in *; do
echo "$F" `printf CMP1092-%03d.json $I+1`
//mv "$F" `printf CMP1092-%03d.json $I+1` 2>/dev/null || true
I=$((I + 1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment