+ Moved rateUSD.sh to .local/bin (To save up even more word count)

This commit is contained in:
ziro 2020-05-19 06:05:36 +07:00
parent db0be00c2a
commit cda9be2bf2
5 changed files with 8 additions and 12 deletions

View file

@ -1,4 +0,0 @@
# get rate value from cnbcindonesia.com
[ ! -f /tmp/rateUSD.txt ] && curl -s "https://www.cnbcindonesia.com/market-data/currencies/IDR=/USD-IDR" | grep -A1 'class="mark_val"' | cut -d'"' -f2 | cut -d'<' -f2 | cut -d'>' -f2 > /tmp/rateUSD.txt
# if rateUSD.txt exist then display it while replace mark_val with Kurs USD -> IDR:
[ -f /tmp/rateUSD.txt ] && sed 's/mark_val/Kurs USD -> IDR:/' /tmp/rateUSD.txt; echo "Sumber: CNBC Indonesia"