Skip to content

Instantly share code, notes, and snippets.

View lbalmaceda's full-sized avatar

Luciano Balmaceda lbalmaceda

  • Barcelona, Spain
View GitHub Profile
@lbalmaceda
lbalmaceda / dollar.sh
Created April 10, 2019 14:25 — forked from miguelangelgonzalez/dollar.sh
Get the quote of the dollar in the main Argentine banks
while true;do clear;echo "Cotizacion $(date)";echo -e "Dolar (Santander) : \t" $(curl -Ls "https://bit.ly/2O9Mvvm"|grep '[0-9]{2},[0-9]{2}' -Eo|head -n2);echo -e "Dolar (Nacion) : \t" $(curl -Ls "https://bit.ly/2NvKhcM"|tr -d ' '|grep DolarU\.S\.A -A2|grep -oE '[0-9]{2},[0-9]{2}'|tr '\n' ' ');echo -e "Dolar (Galicia) : \t" $(curl -Ls "https://bit.ly/2wWvApx"|jq -r '.buy + "0", .sell + "0"'|tr '\n' ' ');echo -e "Dolar (BBVA-Frances) : \t" $(curl -Ls "https://bit.ly/2O0wxUt"|iconv -f iso-8859-1 -t utf-8|sed -n "s,detalles,\n,gp"|grep -oE '[0-9]{2},[0-9]{2}'|head -n2|tr '\n' ' ');sleep 600;done