diff options
author | ben <ben@nagy.contact> | 2025-01-10 11:14:29 -0800 |
---|---|---|
committer | ben <ben@nagy.contact> | 2025-01-10 11:14:29 -0800 |
commit | fb4f206e21cc2853e904e8e548b3d4450b208c8d (patch) | |
tree | 92044e436174b598bbb831473412ee4382a05396 /scripts/util/dic | |
parent | 7339a5dae5f48ba37d44094f8aaa9915695f86e5 (diff) |
added scriptsmain
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 |