Quote:
Originally Posted by michael.glenn.williams
I have a similar need that cannot be solved by using only bash. I need to update a cell on a Google sheet from bash. I also need to fetch/wget/curl a cell from a sheet into a bash variable. Is the only way to do this with the clasp command line tool from bash? If someone could provide a command within bash that sets a bash variable to the value of a cell in a sheet that would be perfect. Thank you!
|
I think it would be best if you started your won thread with a useful problem description. Read the first 2 non-covid links in my signature for hints.
Generally speaking: Google Docs is full on javascript, command line downloaders like curl or wget won't help you get at the actual document.
Command line javascript engines exist, been a while for me, phantomjs comes to mind, or just your browser in headless mode.
So that's just for the fetching.
How to massage the doc with bash, no idea. Same answer as rtmistler's still applies I guess.
Bash does not have a command line tool named clasp. Could be some 3rd party CLI utility?
edit: searching my package manager for "google docs" gives a few results, one of them looks useful: gdatafs