{"id":18084979,"url":"https://github.com/coderofsalvation/gspreadsheet-bash","last_synced_at":"2025-09-03T13:39:08.539Z","repository":{"id":20117438,"uuid":"23387262","full_name":"coderofsalvation/gspreadsheet-bash","owner":"coderofsalvation","description":"portable google spreadsheet bash client for easily piping/replacing data between spreadsheets","archived":false,"fork":false,"pushed_at":"2020-05-28T19:06:56.000Z","size":33,"stargazers_count":13,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T14:21:51.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2014-08-27T11:30:22.000Z","updated_at":"2024-04-17T11:32:08.000Z","dependencies_parsed_at":"2022-08-30T10:50:41.793Z","dependency_job_id":null,"html_url":"https://github.com/coderofsalvation/gspreadsheet-bash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fgspreadsheet-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fgspreadsheet-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fgspreadsheet-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fgspreadsheet-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/gspreadsheet-bash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T15:08:51.622Z","updated_at":"2025-04-12T20:10:38.102Z","avatar_url":"https://github.com/coderofsalvation.png","language":"Shell","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"readme":"gspreadsheet-bash\n=================\n\nportable google spreadsheet bash client which lets you combine your unix-fu with spreadsheets. Piping/replacing spreadsheet from the console for lazy developers :)\n\n# Usage \n       \n    gspreadsheet \u003cexport|import\u003e \u003cspreadsheetname\u003e \u003csheetgid\u003e \u003ctype\u003e\n\n    types: are 'xls' 'csv' 'pdf' 'ods' 'tsv' 'ods' or 'html'\n\n    $ user=my@email.com pass=googlepasswd gspreadsheet export 'My spreadsheet' 12323\n    $ echo \"foo\\tflop\" | user=my@email.com pass=googlepasswd gspreadsheet import 'My spreadsheet' 12323\n    $ echo '\"foo\",\"bar\"' | user=my@email.com pass=googlepasswd gspreadsheet import 'My spreadsheet' 12323 csv\n    $ ls -al | gspreadsheet ssvtotsv | user=my@email.com pass=googlepasswd gspreadsheet import 'My spreadsheet' 12323 csv\n\nThe sheetgid can be found in the googlespreadsheet browserurl.\nThese urls end with '#gid=123' (so 123 is the sheetgid).\nImport takes tabseperated (tsv) as input, not spaceseparated (ssv).\n\n# Example: Spreadsheet to console\n  \n    user=my@email.com pass=googlepasswd gspreadsheet export 'My spreadsheet' 12323\n    foo4   bar4\n    foo1   bar1\n    foo2   bar3\n\nNow you can go crazy with sed, awk and your shell-fu!\n\n# Example: Spreadsheet to .XXX\n  \n    user=my@email.com pass=googlepasswd gspreadsheet export 'My spreadsheet' 12323 pdf \u003e report.pdf\n    user=my@email.com pass=googlepasswd gspreadsheet export 'My spreadsheet' 12323 csv \u003e report.csv\n\nNow you can go crazy with cron and load data in your application.\n\n# Example: Search/Replace \n\n    $ export user=\"my@email.com\"\n    $ export pass=\"owerwer\"\n    $ gspreadsheet export \"My spreadsheet\" 123 | sed 's/flip/flop/g' | gspreadsheet import \"My spreadsheet\" 123\n\n# Example: Mysql-table to spreadsheet\n\n    $ export user=\"my@email.com\"\n    $ export pass=\"owerwer\"\n    $ echo \"select * from users\" | mysql -uusername -ppassword db_name | gspreadsheet import 'My spreadsheet' 123\n\n# Example: Import Console-fu\n\n    $ export user=\"my@email.com\"\n    $ export pass=\"owerwer\"\n    $ ls -la | gspreadsheet ssvtotsv | gspreadsheet import \"My spreadsheet\" 123\n\nImport takes tabseperated (tsv) as input, not spaceseparated (ssv).\n\n  \u003cimg alt=\"\" src=\".res/example.png\"/\u003e\n\n# Todos\n\n* add row function (import fully overwrites sheet)\n\nStrangely enough the gspreadsheet api v3 does not simply allow adding rows without knowing the columnnames. Quite a pity, because it makes thing much more complex to implement.\n\n# Requirements\n\n* any linux distro (bash+curl+gawk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fgspreadsheet-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fgspreadsheet-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fgspreadsheet-bash/lists"}