Skip to content

Instantly share code, notes, and snippets.

@ruimarinho
ruimarinho / gist:7f3e13a5856eda0cdad1276d4c25b46d
Created August 4, 2016 10:52
Rename files using index sequence via the `rename` util
brew install rename
rename -g 's/\d{2}-/$N-/' -N 01 'dir/*.ext'

Keybase proof

I hereby claim:

  • I am ruimarinho on github.
  • I am ruimarinho (https://keybase.io/ruimarinho) on keybase.
  • I have a public key whose fingerprint is D94A 18E2 51F2 465B 1A5B 5CDD 7F06 1322 DA5F 62D1

To claim this, I am signing this object: