about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-04-27 23:41:57 -0400
committerZach DeCook <zachdecook@librem.one>2022-04-27 23:41:57 -0400
commit88ce44d52cb2d9f11f621434709583ff0fec1cec (patch)
treefa1cf0122e5f2648c025eb20ba33a12b03f2628c
parent5c9e7124f968cc381843dba285d4081231a9325d (diff)
downloadgurglesolver-88ce44d52cb2d9f11f621434709583ff0fec1cec.tar.gz
has.sh: Shorthand
-rwxr-xr-xhas.sh3
1 files changed, 3 insertions, 0 deletions
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:] .)"