1
0
Fork 0
mirror of https://github.com/kastdeur/pipeband-music.git synced 2024-12-22 00:13:30 +01:00
pipeband-music/tuneoverview
Eric Teunis de Boone 8d9eb4eba2 Cleaned root a bit
2018-01-27 10:33:16 +01:00

41 lines
671 B
Bash
Executable file

#!/bin/bash
LEAVEOUT=" sets/ template/ standards/ "
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ECHO_COUNT=":"
INDENT="$(echo -e '\t')"
i=0
j=0
k=0
tot=0
for d in $DIR/*/
do
if [[ "$LEAVOUT" =~ "${d//$DIR\/}" ]]; then
echo "Leaving out"
break
fi
i=$(($i+1))
echo "${d//$DIR\/}"
for t in $d/*/
do
if [ "$t" = "$d/*/" ]; then
break
fi
j=$(($j+1))
echo "$INDENT${t//$d\/}"
for inst in $t/*.ly
do
if [ "$inst" = "$t/*.ly" ]; then
break
fi
k=$(($k+1))
tot=$(($tot+1))
echo "$INDENT$INDENT${inst//$t\/}"
done
$ECHO_COUNT "$INDENT$k files"
k=0
done
$ECHO_COUNT "$j tunes"
echo ""
done
$ECHO_COUNT "${tot} Files"