summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdomain-search10
1 files changed, 10 insertions, 0 deletions
diff --git a/domain-search b/domain-search
new file mode 100755
index 0000000..622ba19
--- /dev/null
+++ b/domain-search
@@ -0,0 +1,10 @@
+#!/usr/bin/env nix-shell
+#! nix-shell -i bash -p hunspellDicts.en-us
+#
+# for some reason, this env var is available?
+#
+dict=$buildInputs/share/hunspell/en_US.dic
+#
+# grep the dictionary, strip weird '/SMY', then pass to my domain script
+#
+grep $1 $dict | sed "s|\/.*$||g" | xargs -I % domain %.com