here is the script, tested on my system
for file in *jpg
do
ARTIST1=${file#*- }
ARTIST=${ARTIST1%.*}
ALBUM=${file% -*}
echo "###"$ARTIST/$ALBUM
if [[ -d ../$ARTIST/$ALBUM/ ]]
then
mv "$file" ../$ARTIST/$ALBUM/cover.jpg
else
echo $file" could not be moved" >> error.log
fi
done
just open up the terminal as instructed in the link above, the shell is
/bin/bash
cd to your pictures directory, then copy and paste each line by line
into the terminal. it should work. it may be wise to make a copy of
your directory first ;)
--
wilgartw
------------------------------------------------------------------------
wilgartw's Profile: http://forums.slimdevices.com/member.php?userid=19007
View this thread: http://forums.slimdevices.com/showthread.php?t=51628
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss