Moving files

Mark Komarinski mkomarinski at wayga.org
Mon Jan 6 10:42:10 EST 2003


On Mon, Jan 06, 2003 at 10:22:14AM -0500, 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`

  for i in *.mp3

> do
> cp $i `ls $i | sed s/\ /_/g`

  cp "$i" `ls "$i" | ...`

> done
> "
> 
> should do the trick. It didn't. It keeps complaining because it tries to
> copy each word. What am I missing?

I had the same problem a while ago with my MP3 collection, and I wound up
using tr instead of sed to do it, but the results were the same.

BTW, let me put in a plug for the SLIMP3.  This device ROCKS.  It's a
bit expensive as compared to regular MP3 players ($250), but it has
a lot of features.

www.slimdevices.com

-Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20030106/bcdf3ada/attachment.bin


More information about the gnhlug-discuss mailing list