I have a Win2k3 server that has a whole bunch of filenames that need renamed. Basically, I just need all - (dashes) replaced with _ (underscores), no matter where they are in the string. Assume that there are no duplicates. I can do this on my mac with a little script but the files are too large and crazy to transfer to my mac, rename, then go back to the server. Would love to do this in a command shell and not have to download a renamer or any add'l software. Thanks!
feedback
|
|
From the command prompt - assuming that all of your files are in the same directory: ONE-LINER
Keep in mind that this is a one shot per command prompt window. That means if you cancel this for any reason, then you'll need to open another command prompt and run again. | |||||||||||
feedback
|
|
Found it on stackoverflow:
| |||||||
feedback
|
|
12noon has a FREE utility to do mass file renaming with full regular expression support, which is pretty cool. Rename Reg Ex info page with links to download I haven't used this one in anger, but have used other apps of theirs (especially display changer) and been really happy. | |||
|
feedback
|