Tosheets, utility to send stdin to Google sheets
1–10 of 30 posts
Re: Tosheets, utility to send stdin to Google sheets
#2Re: Tosheets, utility to send stdin to Google sheets
#3Re: Tosheets, utility to send stdin to Google sheets
#4 curl https://www.bitstamp.net/api/v2/ticker/btcusd \
| grep 'last": *"\d*\.\d*' -o | grep '\d*\.\d*' -o \
| tosheets -c A1 --spreadsheet=foo
^ That will append the last BTC price to column A of sheet 'foo'Re: Tosheets, utility to send stdin to Google sheets
#5Nope, it sends stdout to sheets. Getting input from sheets would be cool, too.
Re: Tosheets, utility to send stdin to Google sheets
#6Nope, it sends stdout to sheets. Getting input from sheets would be cool, too.
tosheets --spreadsheet=ABC
In this example, stdin is what goes to the spreadsheet. stdout is (I assume) nothing.Re: Tosheets, utility to send stdin to Google sheets
#7Nope, it sends stdout to sheets. Getting input from sheets would be cool, too.
Re: Tosheets, utility to send stdin to Google sheets
#8Nope, it sends stdout to sheets. Getting input from sheets would be cool, too.
It looks to me like you're being downvoted, but what you're saying looks correct to me. $PROGRAM sends to stdout what google sheets reads from "stdin"
Should you pipeline stdout from somewhere else to this utility, the contents of that stdout will be forwarded to Google Sheets.
It is correct to say either that you are forwarding stdin or that you are forwarding stdout. It is therefore not correct to say that it does not forward stdin, because the source code explicitly refers to stdin. That's likely the reason for the [Fight Club]s the GP is receiving.
Re: Tosheets, utility to send stdin to Google sheets
#9This is pretty great. It looks like it automatically writes to the next logical empty cell. curl https://www.bitstamp.net/api/v2/ticker/btcusd \ | grep 'last": *"\d*\.\d*' -o | grep '\d*\.\d*' -o \ | tosheets -c A1 --spreadsheet=foo ^ That will append the last BTC price to column A of sheet 'foo'
That's basically a mini JSON parser in 48 characters.