Check the current price of Bitcoin in USD

echo "1 BTC = $(curl -s https://api.coindesk.com/v1/bpi/currentprice/usd.json | grep -o 'rate":"[^"]*' | cut -d\" -f3) USD"
Sample Output
1 BTC = 232.7678 USD

5
2015-09-19 00:17:02

2 Alternatives + Submit Alt

What Others Think

Could probably be done a lot better using jq
benjabean1 · 291 weeks and 2 days ago
Sure but then you have to install jq :P
cadejscroggins · 291 weeks and 2 days ago
can we use the same principle for XRP?
f3ck4r · 40 weeks and 4 days ago
I found a few alternative variants but this should work too. I would recommend checking https://primexbt.com/ for price changing too. Interesting, what code does this platform use?
fiction99 · 37 weeks and 4 days ago
I found a few alternative variants but this should work too. I would recommend checking https://primexbt.com/ for price changing too. Interesting, what code does this platform use?
fiction99 · 37 weeks and 4 days ago
Bitcoin is the most in-demand and required currency nowadays. When this currency started its way, no one was thinking that it would get so much importance. Also they offer btc software to help and maintain your sales. Command Line EFU forum has been working very well along with spreading awareness.
HaydenGipps · 21 weeks and 3 days ago
I have tried to check the complete information about cryptocurrency through the article which is the best platform for learning as well. Most of the students preffer to go to the website which provides the writing service platform. Students can easily get details about the writing service options online as well.
term67 · 11 weeks and 3 days ago
any new recent updates with the forum?? https://boudoirphotographyportland.com
Killersmile · 2 weeks and 5 days ago
Those that are after deals at all I don't understand. It's obviously a ploy for marketing. You had best bring something else into that moment. I placed the time for cryptocurrency investments, for example. I'm now trading with coinigy alternative and they are linked to 36 different markets and so traders can do their job really easily.
illianna · 1 week and 3 days 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: