Skip to content

Instantly share code, notes, and snippets.

@shoorick
Created December 19, 2019 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shoorick/25173835f45614061db48948675f6d2e to your computer and use it in GitHub Desktop.
Save shoorick/25173835f45614061db48948675f6d2e to your computer and use it in GitHub Desktop.
Renumber file sequence
perl -e 'while (<prefix*png>) { printf("mv $_ %03d.png\n", $1 + 42) if /(\d+)/ }'
@shoorick
Copy link
Author

Just print shell commands, no actual renumbering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment