diff options
Diffstat (limited to 'shtrains.sh')
-rwxr-xr-x | shtrains.sh | 4 |
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 |