From 30a898e1040ec91cea1ceeb2180bdcf7265f2407 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 1 Jul 2024 16:07:29 +0200 Subject: checkpoint --- bin/extra/wd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/extra') diff --git a/bin/extra/wd b/bin/extra/wd index 1b56aa6..b0e91a0 100755 --- a/bin/extra/wd +++ b/bin/extra/wd @@ -1,6 +1,7 @@ #!/bin/sh -[ "$1" ] || exit 1 -dict "$1" | +[ "$1" ] && word="$1" || exit 1 +shift +dict "$word" $@ | sed -e '/^ /!d;s/^ //' | sed -e '/^$/d;s/^[^ ].*$/\o033[1;4;34m&\o033[0m/' | -- cgit v1.2.3