unixy scripts to help you solve that famous word puzzle game
has.sh: Shorthand
Zach DeCook 2022-04-27
parent 5c9e712 · commit 88ce44d
-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:] .)"