Saturday, March 16, 2013

Renaming BT bills

BT pdf bills come with a filename in DDMMYYYY format, which is not good for sorting. One liner to rename in YYYYMMDD:
rename s/\([0-9][0-9]\)\([0-9][0-9]\)\([0-9][0-9][0-9][0-9]\)/\3\2\1/ *.pdf
Post a Comment