match.sh 288 B

123456789101112131415161718
  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 -F ' name="DC.description"' "${bc}" \
  9. | grep -iF 'Ellis Kaut' \
  10. | grep -iF 'Hans Clarin' \
  11. > /dev/null \
  12. && exit $YES
  13. exit $NO