summaryrefslogtreecommitdiff
path: root/shtrains.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shtrains.sh')
-rwxr-xr-xshtrains.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/shtrains.sh b/shtrains.sh
index 0d9739a..2f1936f 100755
--- a/shtrains.sh
+++ b/shtrains.sh
@@ -9,6 +9,10 @@ do
read STATION || break
read UGUU || break
[[ $PATTERN =~ \ *[A-Z]{4}\ *(.*) ]] && PATTERN=${BASH_REMATCH[1]}
+ if [[ $UGUU =~ Supprime ]]; then
+ read UGUU || break
+ continue
+ fi
if [ -n "$*" ]; then
[[ $STATION =~ $@ ]] && echo "$PATTERN $STATION"
else