aboutsummaryrefslogtreecommitdiff
path: root/scripts/util/dic
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/util/dic')
-rwxr-xr-xscripts/util/dic5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/util/dic b/scripts/util/dic
new file mode 100755
index 0000000..58755a8
--- /dev/null
+++ b/scripts/util/dic
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Online CLI dictionary
+
+curl -s https://www.wordnik.com/words/"$1" | awk '/id="define/{p=1}p' | awk '/div/{p++}p==2' | sed -e 's/<[^>]*>//g' | sed 's/^ *$//g' | expand --tabs=1 | less