Quote:
Originally Posted by syg00
Veryyyy carefully.
I might be inclined to echo that mv command before committing the deed ...
|
Yes! I've screwed up in the past. For something like this, I run it with echo first to see what it looks like. I would also use 'mv -n' to make sure I didn't overwrite anything. Maybe I'd make the target another, empty, directory to look at the results first.
Note that the programs I recommend to extract the name have leading spaces, which would leave the target name with a lot of leading _ if you convert spaces to _s. I do this a lot and have a renaming routine that strips leading spaces, punctuation marks, metacharacters (such as ()*?/\), uppercases the first letter of each word, leaving a space-less, punctuation-less, camel-case target name. It also converts UTF and HTML metacharacters to ASCII-closest so all file names are ASCII. (I have classical music and use diacritical marks in tags but not file names.)