{"id":17882222,"url":"https://github.com/mackee/shellcut","last_synced_at":"2025-06-22T18:08:31.132Z","repository":{"id":144212421,"uuid":"255281408","full_name":"mackee/shellcut","owner":"mackee","description":"The command like cut(1) on the basis of shellwords","archived":false,"fork":false,"pushed_at":"2020-04-13T11:37:18.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T06:57:13.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mackee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-04-13T09:17:57.000Z","updated_at":"2020-04-13T11:37:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4856d69-c399-455a-bfa1-b4a21f4cf2d4","html_url":"https://github.com/mackee/shellcut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mackee/shellcut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2Fshellcut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2Fshellcut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2Fshellcut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2Fshellcut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mackee","download_url":"https://codeload.github.com/mackee/shellcut/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2Fshellcut/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261338979,"owners_count":23143896,"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-28T12:49:00.395Z","updated_at":"2025-06-22T18:08:26.118Z","avatar_url":"https://github.com/mackee.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shellcut\n\nThe command like cut(1) on the basis of shellwords.\n\n## Motivation\n\n* Find rows from access logs of load balancers\n  * That logs separated values by spaces but also has quoted values too\n\n## Installation\n\n```console\n$ go get github.com/mackee/shellcut\n```\n\n## Usage\n\n```console\n$ cat access_logs.txt | shellcut -f 1-10 -g 1=h2\n```\n\n* `-f` - indices on a field for output. 1-origin.\n  * `-f 1,2,3` output first to third field on row\n  * `-f 1-10` output first to 10th field on row\n  * `-f -` print all fields \n* `-g` - filter row by field value\n  * `-g 10=foobar` output matched rows that 10th field is foobar\n\n## See also\n\n* [mattn/go-shellwords](https://github.com/mattn/go-shellwords)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackee%2Fshellcut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmackee%2Fshellcut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackee%2Fshellcut/lists"}