Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? Use regular expression with REN?

Oct
31
0
I read on page 522 of the userguide that REN supports regular expression. The syntax is: REN ::filename ::target.

Question: Can you give me syntax examples how to use regular expression with REN?

Thanks
 
Code:
v:\new\old> ren ::f(o)o.txt ::\1.txt
V:\new\old\foo.txt -> V:\new\old\o.txt
     1 file renamed
 
Here's another.

Code:
v:\new\old> ren ::(a)b(c)d(e).txt ::\1\2\3.txt
V:\new\old\abcde.txt -> V:\new\old\ace.txt
     1 file renamed
 

Similar threads

Back
Top