match.sh 249 B

12345678910111213141516
  1. #!/bin/sh
  2. # https://mro.name/radio-privatkopie
  3. #
  4. cd "$(dirname "${0}")/.." || exit 1
  5. readonly bc="../../stations/${1}.xml"
  6. readonly YES=0
  7. readonly NO=1
  8. grep -E 'radioMitschnitt.+ name="DC\.title"' \
  9. "${bc}" > /dev/null \
  10. && exit $YES
  11. exit $NO