Tuesday, December 17, 2013

rename command in Arch

I couldn't figure out why my rename command wasn't working in Arch, and it slowly dawned on me that the rename command in Arch doesn't support regular expressions... making it almost completely useless.
After some searching I found this blog entry that confirmed my suspicions and pointed me to an AUR package that basically implements rename with regular expressions.

$ packer -S rename
$ renamexm -s/\ /_/g *

Replace spaces with underscores in all files.

No comments:

Post a Comment