From 88ce44d52cb2d9f11f621434709583ff0fec1cec Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 27 Apr 2022 23:41:57 -0400 Subject: has.sh: Shorthand --- has.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 has.sh diff --git a/has.sh b/has.sh new file mode 100755 index 0000000..1a19a5f --- /dev/null +++ b/has.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# Has "$1", not in the "$2"th position +cat - | grep "$1" | grep -v "$(echo "12345" | tr "$2" "$1" | tr [:digit:] .)" -- cgit 1.4.1