Home » Scripts » Shell Script for LiteCoin Price

Shell Script for LiteCoin Price

Shell Script for LiteCoin PriceNeed a shell script to display the current LiteCoin Price?

Shell Script for LiteCoin Price

If you track cryptocurrencies, you’ll want to keep an eye on the current prices throughout the day.

Here is a quick and dirty script to pull the current LiteCoin price. This will allow for uses such as displaying the current LTC price in your XFCE taskbar using XFCE4 Generic Monitor applet?

LTC Price displayed on the XFCE4 Generic Monitor applet, on my taskbar

The Script:

LTC.sh
#!/bin/sh
curl -s https://api.kraken.com/0/public/Ticker?pair=LTCUSD |awk -F ‘”‘ ‘{printf(“%.2f\n”, $10)}’

Enjoy this script to grab the latest LiteCoin (LTC) price!


unixsamurai.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. Read our Privacy Policy for more info.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.