On Sun, May 24, 2009 at 9:54 AM, Michael Casey <michaelcasey73@gmail.com> wrote: > I used it for this: > > http://pastebin.ca/1432758 > > generating m3u files for each subfolder too > You don't need the initial '$' in $(cd "$FOLDERNAME"; find . -maxdepth 1 -name "*.mp3" -type f > "Playlist_${PWD##*/}".m3u;) The usual use of "$(...) is var=$(...)" where var get $(...) output. Regards,