list_titles.sh 270 B

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