dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

radio-stations.sh (397B)


      1 #!/bin/sh
      2 r="$HOME/.local/share/radio-stations.txt"
      3 o="$HOME/.local/share/radio-stations.html"
      4 
      5 cat > "$o" <<__EOF__
      6 <!DOCTYPE html>
      7 <html>
      8 <head>
      9 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     10 </head>
     11 <body>
     12 __EOF__
     13 
     14 awk -F'\t' '{print "<a href=\""$2"\">"$1"</a><br>"}'  "$r" | sed 's,radio://,http://,' >> "$o"
     15 
     16 cat >> "$o" <<__EOF__
     17 </body>
     18 </html>
     19 __EOF__
     20 
     21 upload "$o"