All pastes #763384 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-11-06 12:20 UTC
rendered paste body

#!/bin/bash
m3u="${1##*/%%/}.m3u"

LONG="${1##*/}"
SHORT="${1%%$LONG}"

echo "Path= $1"
echo "Long= $LONG"
echo "Short= $SHORT"
echo "m3u= $m3u"

for x in "$1"/*/*.mp3; do echo "$x"; done
#for x in $1/*.mp3; do echo "$1$x"; done
#for x in $1/*/*.mp3; do echo "$x" >> "${1##*/}.m3u"; done