[Nulled] » Operation systems OS » Linux » Bitcoin price output using a terminal on Linux
January 25 2023

Bitcoin price output using a terminal on Linux

Bitcoin price output using a terminal on Linux

It is very easy to display the current Bitcoin price using Linux.

There are many ways to do this.

One of the ways is using curl.

Just use this command to get information about Bitcoin.

This is another way to find out the current price of bitcoin.

curl -s https://api-pub.bitfinex.com/v2/ticker/tBTCUSD | awk -F',' '{print "BTC\/USD: " $7}'
BTC/USD: 42642
A very useful one-line program.

Only what is needed is output, and no more.

Another example is a very long one–line sentence.

The same information is displayed here in US dollars.

It's been a while and probably can be improved, but it really works.

curl -s https://goldprice.org/cryptocurrency-price | grep -e 'views-field views-field-field-crypto-price-1 views-align-right' | awk 'NR==2 {print substr( $0, -1, length($0)-6 )}' | sed  's/<[^>]*>//g' | awk '{$1=$1};1'
$42,799.00
In fact, the output formatted this way is much better.

#!/bin/sh
 
curl -s https://goldprice.org/cryptocurrency-price | \
grep -e 'views-field views-field-field-crypto-price-1 views-align-right' \
| awk 'NR==2 {print substr( $0, -1, length($0)-6 )}' | sed  's/<[^>]*>//g' \
| awk '{$1=$1};1'
 

But it works fine.

Just call it bitcoin.sh and make it executable so that it works.

chmod +x bitcoin.sh


Information

Visitors who are in the group Guests they can't download files.
Log in to the site under your login and password or if you are a new user go through the process registrations on the website.

Comments:

This publication has no comments yet. You can be the first!

Information the publication:

  • Author of the publication: AdequateSchizo
  • Date of publication: 25 January 2023 16:03
  • Publication category(s): Operation systems OS / Linux
  • Number of views of the publication: 142
  • Number of comments to the publication: 0

Related News

13 March 2022
Cryptocurrency Blogs
VETERAN TRADER ADVISES

VETERAN TRADER ADVISES "GENERATION Z" TO PUT ASIDE BITCOIN SAVINGS AND HOLD ON It's time for a new and

Read more
30 December 2022
Bitcoin Blog
Ryan Selkis:

The founder and CEO of the analytical firm Messari said that both fundamental and technical analysis indicate the

Read more
30 December 2022
Mining Blogs
Canaan expects a

While the price of bitcoin has decreased by 70% since the beginning of the year, the turnover of Canaan is reduced

Read more
30 December 2022
Bitcoin Blog
In 2022, the bitcoin

The bitcoin exchange rate has declined significantly in the past year, but the position of Tesla shares is even

Read more
13 March 2022
Cryptocurrency Blogs / Altcoins Blog
CARDANO PRICE ANALYSIS

CARDANO PRICE ANALYSIS: ADA IS FACING A DOWNTREND, BUT THESE SIGNS ARE ENCOURAGING IN THE MEDIUM TERM Cardano, one

Read more

Information

Users of visitor are not allowed to comment this publication.

Site Search

Site Menu


☑ Scripts Software

Calendar

«    May 2024    »
MonTueWedThuFriSatSun
 12345
6789101112
13141516171819
20212223242526
2728293031 

Advertisement

Survey on the website

Evaluate the work of the site
 

Statistics

  • +8 Total articles 5578
  • +12 Comments 3149
  • +31 Users : 4132