Browse Source

Add short script to write a list of podcast speakers and titles

Elena Piscopia 4 years ago
parent
commit
b599e05201
1 changed files with 10 additions and 0 deletions
  1. 10 0
      code/list_titles.sh

+ 10 - 0
code/list_titles.sh

@@ -0,0 +1,10 @@
+for i in recordings/longnow/Long_Now__Seminars*/*.mp3; do
+   # get the filename
+   base=$(basename "$i");
+   # strip the extension
+   base=${base%.mp3};
+   # date as yyyy-mm-dd
+   printf "${base%%__*}\t" | tr '_' '-';
+   # name and title without underscores
+   printf "${base#*__}\n" | tr '_' ' ';
+done