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

Another regex-in-RENAME question

$
0
0
Code:
[D:\TMP] dir /b /a-d *-*
a-b
a-b--c---d
a--b-c
a-b-c-d
If I want to convert all those dashes to underscores in the filenames, I can use this command: ren ::- ::_ But what if I want to convert the dashes to spaces?

I haven't figured out how to include a space character that is recognized as other than an empty string (or, literally. the characters I've typed in). I've tried space, quoted space, \x20, \040, \o{40}.

I'm using Perl REs.

Hmm. I did find a way to do it. Pretty...

Read more

Viewing all articles
Browse latest Browse all 1793

Latest Images

Trending Articles



Latest Images