{"id":23473058,"url":"https://github.com/caltechlibrary/library-shell-curl-and-api","last_synced_at":"2026-02-02T20:01:46.368Z","repository":{"id":111429260,"uuid":"60282009","full_name":"caltechlibrary/library-shell-curl-and-api","owner":"caltechlibrary","description":"An intermediate exploration of Bash, curl and working with content from web API","archived":false,"fork":false,"pushed_at":"2016-06-02T23:26:40.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-13T08:55:33.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caltechlibrary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-06-02T16:59:47.000Z","updated_at":"2019-06-02T14:53:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"face72c5-dd63-48c2-bdd3-ba5d44d61c64","html_url":"https://github.com/caltechlibrary/library-shell-curl-and-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/caltechlibrary/library-shell-curl-and-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Flibrary-shell-curl-and-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Flibrary-shell-curl-and-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Flibrary-shell-curl-and-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Flibrary-shell-curl-and-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caltechlibrary","download_url":"https://codeload.github.com/caltechlibrary/library-shell-curl-and-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Flibrary-shell-curl-and-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263385737,"owners_count":23458744,"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-12-24T17:14:59.158Z","updated_at":"2026-02-02T20:01:41.333Z","avatar_url":"https://github.com/caltechlibrary.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Bash, curl and working with web API\n\n## Overview\n\nOne of the benefits of the Bash shell (and other Unix shells) is it provides a great deal\nof capability right out of the box. When you combine that with other Unix tools you have\na powerful environment for text processing and manipulation. The web provides a massive\nammount on content. In this lesson will be combining the two.\n\n## What is covered\n\nIn this tutorial we assume you have some knowledge of [Unix/Bash basics](http://programminghistorian.org/lessons/intro-to-bash)\n\n+ How to start the Bash shell (e.g. 'Terminal' on Mac OS X)\n+ How to list, view, copy, move and delete files and directories\n\nWe'll be expanding on that basic knowledge with a discussion of\n\n+ Commannd history and command line editing\n+ Working environment variable\n    + remembering things for later\n    + simple text manipulation\n+ Building complex pipe lines\n+ Making decisions\n+ Repeating things\n+ Simple templated text output with Bash (advanced uses of redirection and cat)\n\nAdditionally we will be using two new programs you may not be familiar with\n\n+ sed - a automated editor (stream editor) for manipulating text\n+ curl - for retrieving and interacting with content from the web\n+ find - walking the content you've fetched from the web\n+ cut - a tool for working with column oriented data\n+ paste - a tool for putting text side by side\n+ join - a tool for combining things\n+ jq - a tool for working with JSON data\n\n## Some data sources for the examples\n\n## References\n\n- James Baker, \"Preserving Your Research Data\", (April 2014),\n[http://programminghistorian.org/lessons/preserving-your-research-data](http://programminghistorian.org/lessons/preserving-your-research-data)\n- Ian Milligan and James Baker, \"Introduction to the Bash Command Line\", (September 2014)\n[http://programminghistorian.org/lessons/intro-to-bash](http://programminghistorian.org/lessons/intro-to-bash)\n- Billy Wideling \u003calien@koping.net\u003e, \"Alien's Bash Tutorial\", (in circulation before 2004, this version apprears to be from circa 2006)\n[http://www.subsignal.org/doc/AliensBashTutorial.html](http://www.subsignal.org/doc/AliensBashTutorial.html)\n- William J Turkel, \"Basic Text Analysis with Command Line Tools in Linux\", (June 2013),\n[https://williamjturkel.net/2013/06/15/basic-text-analysis-with-command-line-tools-in-linux/](https://williamjturkel.net/2013/06/15/basic-text-analysis-with-command-line-tools-in-linux/)\n- William J Turkel, \"Pattern Matching and Permuted Term Indexing with Command Line Tools in Linux\", (June 2013)\n[https://williamjturkel.net/2013/06/20/pattern-matching-and-permuted-term-indexing-with-command-line-tools-in-linux/](https://williamjturkel.net/2013/06/20/pattern-matching-and-permuted-term-indexing-with-command-line-tools-in-linux/)\n- Brad Yoes, \"Introduction to text manipulation on Unix-based systems\" (March 2012)\n[https://www.ibm.com/developerworks/aix/library/au-unixtext/](https://www.ibm.com/developerworks/aix/library/au-unixtext/)\n- Geert Jansen, \"Thoughts on RESTful API Design\" (November 2012)\n[https://restful-api-design.readthedocs.io/en/latest/](https://restful-api-design.readthedocs.io/en/latest/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaltechlibrary%2Flibrary-shell-curl-and-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaltechlibrary%2Flibrary-shell-curl-and-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaltechlibrary%2Flibrary-shell-curl-and-api/lists"}