Skip to content

Instantly share code, notes, and snippets.

@riza
Created December 22, 2017 17:13
Show Gist options
  • Save riza/1f8d8d97f08600bec8fca6525ae936e9 to your computer and use it in GitHub Desktop.
Save riza/1f8d8d97f08600bec8fca6525ae936e9 to your computer and use it in GitHub Desktop.
Shows the current bitcoin price for Bitcoins from Paribu.com
#!/bin/bash
# <bitbar.title>Paribu BitBar Plugin</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>rizasabuncu</bitbar.author>
# <bitbar.author.github>riza</bitbar.author.github>
# <bitbar.desc>Shows the current bitcoin price for Bitcoins from Paribu.com</bitbar.desc>
# <bitbar.image>https://rizasabuncu.com/paribu.png</bitbar.image>
# <bitbar.dependencies>none</bitbar.dependencies>
DATA=$(curl -s "https://www.paribu.com/ticker")
echo -n "BTC: "; echo "$DATA" | egrep -o '"last":[0-9]+' | sed 's/"last"://'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment