X-Git-Url: https://git.phdru.name/?p=audio-cdr-video.git;a=blobdiff_plain;f=audio%2Fcat-playlists;fp=audio%2Fcat-playlists;h=cd18eacb11198d7a5a23e2b542b338fa26ce1202;hp=0000000000000000000000000000000000000000;hb=3882ac7a8cf46f05b6d046beda607a9099a56a21;hpb=626fd0a28d91d721f330a7467cbab9117bda0059 diff --git a/audio/cat-playlists b/audio/cat-playlists new file mode 100755 index 0000000..cd18eac --- /dev/null +++ b/audio/cat-playlists @@ -0,0 +1,7 @@ +#! /bin/sh +set -e + +find . -mindepth 1 -type d -printf '"%P"\n' | sort | sed 's/`/\\`/' | +xargs -I% -n1 sh -c \ + 'test -f "%"/PlayList.m3u && cat "%"/PlayList.m3u | sed -e "s\^\%/\\"' \ +> PlayList.m3u