#!/bin/sh
#
# radio - 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}.*$"
