What can I add to the below script so that it fetches the stock data and brings it back WITHOUT any commas and spaces? For example GOOG Outstanding shares is 675,000,000.
I desire the output of 675000000 for my txt file. (no spaces or commas or punctuation). I need decimal functionality however for share prices though).
cd desktop/quoteUpdate
while true
do
curl -o quotes.txt -s "http://ift.tt/1ykOznq"
sed -i '.bak' 's/,/ /g' quotes.txt # replace commas with spaces
echo UPDATED:
date
sleep 10
done
Aucun commentaire:
Enregistrer un commentaire