<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 10pt; color: #000000'>Sorry,<br><br>The script I attached was a variant of the original one. This is the original script:<br><br>#!/bin/bash<br><br>ls | while read -r FILE<br>do<br> mv -v $FILE `echo $FILE | tr ' ' '_' | tr '[A-Z]' '[a-z]'`<br>done<br><br><br>Thanks,<br>Mat<br><br><br><hr id="zwchr"><b>From: </b>"Mathew May" <mathewmay1@wowway.com><br><b>To: </b>mdlug-newbie@mdlug.org<br><b>Sent: </b>Thursday, January 5, 2012 4:23:40 PM<br><b>Subject: </b>[mdlug-newbie] question about scripting<br><br><style>p { margin: 0; }</style><div style="font-family: Times New Roman; font-size: 10pt; color: #000000">I am trying to write a script that will go through my current mp3 directory and change any space in a file name to an under score as well as change all upper case characters to lower case. I am new to scripting and I have done pretty good so far, but now I am trying to make my script recursive.<br><br>Here is what I have so far:<br><br>#!/bin/bash<br><br>#ls -R | while read -r FILE<br>for FILE in `find /home/mmay3/Music/tori_amos *.mp3 -type f`<br>do<br> mv -v $FILE `echo $FILE | tr ' ' '_' | tr '[A-Z]' '[a-z]'`<br>done<br><br>Any help would be greatly appreciated<br>Mat<br></div><br>_______________________________________________<br>mdlug-newbie mailing list<br>mdlug-newbie@mdlug.org<br>http://mdlug.org/mailman/listinfo/mdlug-newbie</div></body></html>