commit 41410114732fc9e4d2991f7645a0173bb74d9460 parent 98b4800853bff64c6a97c78353ffbffd1365f442 Author: hhvn <dev@hhvn.uk> Date: Sat, 20 Nov 2021 13:05:16 +0000 b/dict: print dict link Diffstat:
M | bin/dict | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/bin/dict b/bin/dict @@ -1,5 +1,7 @@ #!/bin/sh -file=$(mktemp /var/gopher/paste/XXXXXXXX) -curl "dict://dict.org/d:$@" | tr -d '\r' | grep -v '^[0-9]' | head -n -1 > $file -echo "gopher://hlirc.net/0/paste/$(basename $file)" +# +# file=$(mktemp /var/gopher/paste/XXXXXXXX) +# curl "dict://dict.org/d:$@" | tr -d '\r' | grep -v '^[0-9]' | head -n -1 > $file +# echo "gopher://hlirc.net/0/paste/$(basename $file)" +echo "dict://dict.org/d:$*"