#!/usr/bin/env zsh export PERL5LIB=lib checks="AVV Ponttor, AC BART San Francisco International Airport, San Mateo BLS Bern BVG 900003104 DB Berlin Jannowitzbrücke IE Dublin KVB 900000802 NAHSH Flensburg NASA Wernigerode Hbf NVV Kassel Hauptbahnhof ÖBB Wien Meidling VBB S+U Jannowitzbrücke (Berlin) VBN Diepholz" echo $checks | while read service stop; do echo -n "${service} ... " if bin/hafas-m -s $service $stop > /dev/null; then echo OK fi done