Scripting question reg. filenames with spaces
I want to recurse through a directory structure under G:\MP3 and move all of the .wma files to G:\WMA with the same directory structure. In 4NT this "move /e /s G:\MP3\*.wma G:\WMA\". It would take "G:\MP3\B\Beatles\Abbey Road\The Beatles - Abbey Road - 01 - Come Together.wma" and move it to "G:\WMA\B\Beatles\Abbey Road \The Beatles - Abbey Road - 01 - Come Together.wma".
In cygwin/bash this does not appear to be easy at all, largely because of spaces in the filenames.
I could use 4NT but I only get into linux/perl every other month or so and am constantly having to relearn things. Switching to cygwin is an attempt to stay in *nixish environment enough to actually get good at it.
Anyway, I've tried some things with find and for and I've read about using null rather than whitespace as a delimiter. I've learned quite a bit but none of it has actually moved the files.
Any help would be appreciated.
Last edited by Awfki; 05-16-2004 at 09:39 AM.