Skip to content

Instantly share code, notes, and snippets.

@shoorick
Created December 19, 2019 20:38
Show Gist options
  • Select an option

  • Save shoorick/25173835f45614061db48948675f6d2e to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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