match.sh 321 B

1234567891011121314151617181920
  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 'Zündfunk.+ name="DC\.title"' \
  9. "${bc}" > /dev/null \
  10. && exit $YES
  11. grep -E 'Nachtmix.+ name="DC\.title"' \
  12. "${bc}" > /dev/null \
  13. && exit $YES
  14. exit $NO