summaryrefslogtreecommitdiff
path: root/Inventur
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-15 21:08:43 +0200
committerErich Eckner <git@eckner.net>2019-10-15 21:08:43 +0200
commit93b24d6e64f5fe51ce9dd078fa0347b0855b7af7 (patch)
tree577339a99458cf72d816e2607cb09d9e2dc0908c /Inventur
parent91b8b08add3f214a7721ece96bf7e86e0545dab9 (diff)
downloadSchraubendatenbank-93b24d6e64f5fe51ce9dd078fa0347b0855b7af7.tar.xz
Inventur: bevorzuge exakte Antwort
Diffstat (limited to 'Inventur')
-rwxr-xr-xInventur7
1 files changed, 7 insertions, 0 deletions
diff --git a/Inventur b/Inventur
index c2b4b8d..794efa1 100755
--- a/Inventur
+++ b/Inventur
@@ -30,6 +30,13 @@ frag_ab() {
| grep -F "${Antwort}"
return
fi
+ if printf '%s\n' "$@" \
+ | grep -cxF "${Antwort}" \
+ | grep -qxF '1'; then
+ printf '%s\n' "$@" \
+ | grep -xF "${Antwort}"
+ return
+ fi
printf '\n' >&2
done
}