DataLad-101/code/list_titles.sh
2019-06-18 16:13:00 +02:00

10 lines
270 B
Shell

for i in recordings/longnow/Long_Now*/*.mp3; do
# get the filename
base=$(basename "$i");
# strip the extension
base=${base%.mp3};
printf "${base%%__*}\t" | tr '_' '-';
# name and title without underscores
printf "${base#*__}\n" | tr '_' ' ';
done