scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit 10672ab4c9d7ac9e298290713d8128ecda278cbf
parent 54c56adbccdd652684632fd00238cfdbe2e9bc7c
Author: lostd <lostd@2f30.org>
Date:   Thu Dec 12 16:36:07 +0200

Print my radio stations silly

Diffstat:
radio | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/radio b/radio @@ -0,0 +1,12 @@ +#!/bin/sh + +# prints a list of matching stations from a "name;url" csv file +# suitable for piping to mpc add + +STATIONS=$(test -n "$STATIONS" && echo "$STATIONS" \ + || echo $HOME/.stations.csv) + +NAME=$1 + +# just print matches +awk -F';' '{ print $2" # "$1; }' $STATIONS | grep "# .*${NAME}.*$"