@edsu
The output doesn't look like it's meant for humans, so I always pipe it into a markdown reader.
wotsa ()
{
def="$(curl -s dict://dict.org/define:$1: | grep -vP '^\d\d\d ')";
if [ "$def" = "" ]; then
echo no definition;
else
echo "$def" | mdcat -p;
fi
}
@malin I like it! And I didn't know about mdcat -- now I'm doing the same.
I dropped the -P for the grep since that's not available on MacOS with installing GNU grep. It still seems to work ok?