Define a word from Linux Terminal

function define() { curl -s https://www.vocabulary.com/dictionary/$1 | grep 'og:description' | sed 's/&#[0-9][0-9][0-9]//g' | awk -F "\"" '{print $4}' }; define welcome
The link gets the definition from vocabulary.com. In case you are behind firewall, use --proxy URL in the curl option.
Sample Output
A welcome is a greeting that usually comes when you first arrive. Although you aren;t fond of Aunt Martha, you always manage to give her a warm welcome when she comes to visit.

0
2019-06-11 11:57:15

What Others Think

You can do many things from here. These are some new codes so that it will be very easy for you to know about new programs and codes to make it better for you. http://affordableloosediamonds.com">affordableloosediamonds.com Thank you so much for sharing.
zaiyamariya · 28 weeks ago
wadew2122 · 11 weeks ago
If you need help and are looking for a reliable provider to always stay in touch with, then it is with great pleasure that I tell you about the Assignment Help Online service, which boasts the highest quality help rate services.
wadew2122 · 11 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: