diff options
author | Erich Eckner <git@eckner.net> | 2019-10-15 21:08:43 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-15 21:08:43 +0200 |
commit | 93b24d6e64f5fe51ce9dd078fa0347b0855b7af7 (patch) | |
tree | 577339a99458cf72d816e2607cb09d9e2dc0908c /Inventur | |
parent | 91b8b08add3f214a7721ece96bf7e86e0545dab9 (diff) | |
download | Schraubendatenbank-93b24d6e64f5fe51ce9dd078fa0347b0855b7af7.tar.xz |
Inventur: bevorzuge exakte Antwort
Diffstat (limited to 'Inventur')
-rwxr-xr-x | Inventur | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 } |