diff options
author | ben <ben@nagy.contact> | 2025-05-03 14:41:13 -0700 |
---|---|---|
committer | ben <ben@nagy.contact> | 2025-05-03 14:41:13 -0700 |
commit | ea687c769521b3139c8547a2d4a839842fa7b0fe (patch) | |
tree | f4805588bb59ca15e96d8b71124c4aafd5dd40cb /scripts/util/dic | |
parent | 16725b034eeb7122f4174f08221ab7f07b6abbf1 (diff) |
added scripts
Diffstat (limited to 'scripts/util/dic')
-rwxr-xr-x | scripts/util/dic | 5 |
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 |