3 Oct 2013 sness   » (Journeyer)

command line - How to use regex quantifiers to rename multiple files with zmv? - Super User

command line - How to use regex quantifiers to rename multiple files with zmv? - Super User: "This should work for you:

zmv '1-([0-9])( *)' '1-0$1$2'
or

zmv '1-([0-9])([^0-9]*)' '1-0$1$2'
You just need to make the match include only one digit followed by a space or non-digit. With the way you had it, it was matching one digit followed by anything."

'via Blog this'

Syndicated 2013-10-03 05:11:00 from sness

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!