grep BTC last trading price from BTC-E, but u can change it.. they got em all

wget -q -O- http://bitinfocharts.com/markets/btc-e/btc-usd.html |grep -o -P 'lastTrade">([0-9]{1,})(.){0,1}[0-9]{0,}' |grep -o -P '(\d)+(\.){0,1}(\d)*' |head -n 1
Sample Output
719.00

0
By: peter1337
2014-01-25 23:40:00

What Others Think

If you are fond of trading, then I advise you to visit one of the best cryptocurrency exchange sites, you will definitely be delighted with their conditions. Here it is https://cex.io/buy-ripple, I hope you don’t lose it, or even better, save it for yourself right away. Trading has become a salvation for me and I am very glad that I am doing it.
Treff · 26 weeks and 1 day ago
I am also a fan of forex trading and used to invest my money in it. It is necessary to get secured for our life and believe in some online trading services like bitorex. Now I am looking for tips that how to trade forex online efficiently. Will you please help me to find this?
MarceloFLewis · 22 weeks and 6 days ago
I am also a fan of forex trading and used to invest my money in it. It is necessary to get secured for our life and believe in some online trading services like bitorex. Now I am looking for tips that how to trade forex online efficiently. Will you please help me to find this?
MarceloFLewis · 22 weeks and 6 days ago
Interesting
Keziaza · 13 weeks and 5 days ago
A positional trade works like this: you buy the currency of a country that offers a high interest rate and sell the currency of a country that offers a low interest rate. Positional trades are profitable because the investor can make money on the difference in interest rates (spread) between the two currencies as you can see at https://justforex.com/education/forex-articles/best-forex-trading-strategies. They work because there is a constant movement of capital between countries. Interest rates are an important reason why some countries attract much more investment than others, these are countries with better growth prospects and therefore can afford to pay a higher interest rate.
kevingoldman9090 · 13 weeks and 1 day ago
A positional trade works like this: you buy the currency of a country that offers a high interest rate and sell the currency of a country that offers a low interest rate. Positional trades are profitable because the investor can make money on the difference in interest rates (spread) between the two currencies as you can see at https://justforex.com/education/forex-articles/best-forex-trading-strategies. They work because there is a constant movement of capital between countries. Interest rates are an important reason why some countries attract much more investment than others, these are countries with better growth prospects and therefore can afford to pay a higher interest rate.
kevingoldman9090 · 13 weeks and 1 day ago
A positional trade works like this: you buy the currency of a country that offers a high interest rate and sell the currency of a country that offers a low interest rate. Positional trades are profitable because the investor can make money on the difference in interest rates (spread) between the two currencies as you can see at https://justforex.com/education/forex-articles/best-forex-trading-strategies. They work because there is a constant movement of capital between countries. Interest rates are an important reason why some countries attract much more investment than others, these are countries with better growth prospects and therefore can afford to pay a higher interest rate.
kevingoldman9090 · 13 weeks and 1 day ago
The exchanging websites are worthy enough to visit. They have shared enough knowledge with us in the best way as well as offers essay reviews at affordable rates to enhance our work quality. I truly admire them for the work they have done to inform us with the best knowledge and information.
retaho9084 · 2 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: