{"id":17925937,"url":"https://github.com/shoenig/fields","last_synced_at":"2026-02-26T02:43:56.950Z","repository":{"id":22617775,"uuid":"96846684","full_name":"shoenig/fields","owner":"shoenig","description":"fields extracts columns of text (replace awk/cut)","archived":false,"fork":false,"pushed_at":"2023-06-01T10:58:37.000Z","size":53,"stargazers_count":10,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-17T05:38:23.487Z","etag":null,"topics":["awk","cli","cut","fields","go","golang","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://sethops1.net/post/extract-columns-with-fields/","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/shoenig.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":"2017-07-11T03:28:04.000Z","updated_at":"2023-11-07T05:20:11.000Z","dependencies_parsed_at":"2024-06-19T16:25:48.394Z","dependency_job_id":"7df1086e-5f1e-40e1-be65-89a329761950","html_url":"https://github.com/shoenig/fields","commit_stats":{"total_commits":48,"total_committers":4,"mean_commits":12.0,"dds":0.6041666666666667,"last_synced_commit":"6ad4e6e9dac711d27d5c3ae77febfe2fe3e2e422"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/shoenig/fields","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoenig%2Ffields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoenig%2Ffields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoenig%2Ffields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoenig%2Ffields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shoenig","download_url":"https://codeload.github.com/shoenig/fields/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoenig%2Ffields/sbom","scorecard":{"id":820287,"data":{"date":"2025-08-11","repo":{"name":"github.com/shoenig/fields","commit":"52fbc2894b5dc66269defbde4de29a97687a08c7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/shoenig/fields/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/shoenig/fields/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/shoenig/fields/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/shoenig/fields/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/shoenig/fields/ci.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.2.1 not signed: https://api.github.com/repos/shoenig/fields/releases/93713001","Warn: release artifact v0.2.1 does not have provenance: https://api.github.com/repos/shoenig/fields/releases/93713001"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T15:20:15.417Z","repository_id":22617775,"created_at":"2025-08-23T15:20:15.417Z","updated_at":"2025-08-23T15:20:15.417Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273947742,"owners_count":25196391,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["awk","cli","cut","fields","go","golang","hacktoberfest"],"created_at":"2024-10-28T20:58:28.445Z","updated_at":"2026-02-26T02:43:51.913Z","avatar_url":"https://github.com/shoenig.png","language":"Go","readme":"fields\n======\n\nUse the `fields` CLI command as a modern replacement for `awk` + `cut`.\nWith fields you specify which columns of text you want, in a flexible format.\n\n![GitHub](https://img.shields.io/github/license/shoenig/fields.svg)\n[![run-ci](https://github.com/shoenig/fields/actions/workflows/ci.yml/badge.svg)](https://github.com/shoenig/fields/actions/workflows/ci.yml)\n\n# Getting Started\n\n#### Build from source\n\nThe `fields` command can be installed via Go by running\n```bash\n$ go install github.com/shoenig/fields/cmd/fields@latest\n```\n\n# Example Usages\n\n#### select a single column (from left)\n```bash\n$ fields 3 \u003c\u003c\u003c \"a b c d e f g\"\nc\n```\n\n#### select a single column (from right)\n```bash\n$ fields -- -3 \u003c\u003c\u003c \"a b c d e f g\"\ne\n```\n\n#### select multiple columns\n```bash\n$ fields 1,-1,2,-2 \u003c\u003c\u003c \"a b c d e f g\"\na g b f\n```\n\n#### select columns to the right of N (from left)\n```bash\n$ fields 4: \u003c\u003c\u003c \"a b c d e f g\"\nd e f g\n```\n\n#### select columns to the right of N (from right)\n```bash\n$ fields -- -2: \u003c\u003c\u003c \"a b c d e f g\"\nf g\n```\n\n#### select columns to the left of N (from left)\n```bash\n$ fields :2 \u003c\u003c\u003c \"a b c d e f g\"\na b\n```\n\n#### select columns to the left of N (from right)\n```bash\n$ fields :-2 \u003c\u003c\u003c \"a b c d e f g\"\na b c d e f\n```\n\n#### select range of columns\n```bash\n$ fields 2:5 \u003c\u003c\u003c \"a b c d e f g\"\nb c d e\n```\n\n#### any combination of the above, all together\n```bash\n$ fields 1,2,-2,3:5,2:,:-3 \u003c\u003c\u003c \"a b c d e f g\"\na b f c d e b c d e f g a b c d e\n```\n\n# Contributing\n\nThe `github.com/shoenig/fields` module is always improving with new features\nand error corrections. For contributing bug fixes and new features please file an issue.\n\n# License\n\nThe `github.com/shoenig/fields` module is open source under the [MIT](LICENSE) license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoenig%2Ffields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshoenig%2Ffields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoenig%2Ffields/lists"}