Moving files
Rodent of Unusual Size
Ken.Coar at Golux.Com
Tue Jan 7 10:27:12 EST 2003
Kenneth E. Lussier wrote:
> Hi All,
>
> I have been trying to organize my MP3's, but I ran into a little
> trouble. Apparently, one of the rippers that I used wasn't configured
> correctly, and evey albumn and song name has spaces. I can go through
> and rename each song one at a time, but that will take forever to do.
> So, I figured a quick little script like
>
> "
> for i in `ls`
> do
> cp $i `ls $i | sed s/\ /_/g`
> done
> "
find . -name \*\ \* | (while read foo ; do mv "$foo" `echo $foo | sed -e 's/ /_/g;'` ; done)
should do it. :-)
--
#ken P-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, opinionist http://Apache-Server.Com/
"Millennium hand and shrimp!"
More information about the gnhlug-discuss
mailing list