Todd Walton wrote:
I'll be darned.  Groovy.  But if you had, say, "dance hits.WMA" the
spaces wouldn't be underscored, would they?  You'd have to run the
script twice.

You would have to make sure to properly quote all of your shell variables so that the whole filename spaces and all get passed along. I probably wouldn't bother to change spaces to underscores etc. The original poster did not specify that they wanted to remove spaces and squash caps although if I were going to do so I would do it in just one for loop piping through a series of tr and sed commands to get the desired result.

--
Tracy R Reed                  Read my blog at http://ultraviolet.org
Key fingerprint = D4A8 4860 535C ABF8 BA97  25A6 F4F2 1829 9615 02AD
Non-GPG signed mail gets read only if I can find it among the spam.


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to