samintz
Scott Mintz
- May
- 1,590
- 27
In the following code I did not specify an extension in the REN command, but it still did the rename as if there was an implied ".*" added to end.
Is this WAD?
Code:
[C:\TC22]
$ >SmithAdj20180530.txt
[C:\TC22]
$ >SmithRcpt20180530.txt
[C:\TC22]
$ ren "::(Smith)(Adj|Rcpt)(\d\d\d\d)(\d\d)(\d\d)" ::\1_\2-\3-\4-\5
C:\TC22\SmithAdj20180530.txt -> C:\TC22\Smith_Adj-2018-05-30.txt
C:\TC22\SmithRcpt20180530.txt -> C:\TC22\Smith_Rcpt-2018-05-30.txt
2 files renamed
Is this WAD?