Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1682

Using Regular Expressions with the REN commanc

$
0
0
I have a folder containing files generated by screen captures. The files are named ImageN.jpg and imageNN.jpg, where N is of course a digit. I want to rename all the ImageN.jpg files to Image0N.jpg and leave the ImageNN.jpg files alone. I have tried and tried to do this with no success. However I structure the regexes, I either get no rename or I get all the files renamed. Here are examples.

Code:
> ren "::image(\d).jpg" ::"image0\1.jpg"
Image1.jpg -> Image1.jpg
Image2.jpg ->...

Read more

Viewing all articles
Browse latest Browse all 1682

Trending Articles