FireFly Media Server (formerly mt-daapd) › Firefly Media Server Forums › Firefly Media Server › General Discussion › Separate playlist folder? › Reply To: Separate playlist folder?
15th December 2006 at 5:43 pm
#7933
Participant
locate *.m3u > myplaylists.txt
cat myplaylists.txt | while read line; do mv “${line}” “${line%.m3u}.pls”; done
Ouch thats complicated and requires findutils and wont work with busybox,
What about
rm `find /music -name “*.m3u”`
And if that gives a line too long error you can still do a man find and look for the -exec command of find. With the -exec you can also construct a mv then but as you said most werent needed anyway.