{"id":37125871,"url":"https://github.com/tacahiroy/csvv","last_synced_at":"2026-01-14T14:32:58.152Z","repository":{"id":66790317,"uuid":"54974092","full_name":"tacahiroy/csvv","owner":"tacahiroy","description":"A simple CSV extractor that allows you to get columns you want","archived":false,"fork":false,"pushed_at":"2021-01-16T16:38:02.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-19T04:17:55.828Z","etag":null,"topics":["csv","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tacahiroy.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":"2016-03-29T12:31:10.000Z","updated_at":"2021-01-16T16:38:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"d21b6497-16ec-4556-a8f0-807c5a1c32f9","html_url":"https://github.com/tacahiroy/csvv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tacahiroy/csvv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacahiroy%2Fcsvv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacahiroy%2Fcsvv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacahiroy%2Fcsvv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacahiroy%2Fcsvv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tacahiroy","download_url":"https://codeload.github.com/tacahiroy/csvv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacahiroy%2Fcsvv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28423424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csv","golang"],"created_at":"2026-01-14T14:32:57.390Z","updated_at":"2026-01-14T14:32:58.139Z","avatar_url":"https://github.com/tacahiroy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"csvv\n=====\nA simple CSV extractor.\n\nMotivation\n==========\nSometimes, I need to process too large CSV files from command-line. Needless to say, we have great tools such as `cat`, `sed`, `grep` and `awk`.\n```console\ncat /path/to/csv-file | awk -F ',' '{ print $2 \",\" $1 }'\n```\nHowever, how I can specify columns by column name, instead of column number like `$1` or `$2`?\nAlthough I didn't google it, I didn't have clear answer(s) to achieve.\nSo I created csvv.\n\nInstallation\n============\n```console\ngo get github.com/tacahiroy/csvv\n```\n\nBuild\n=====\n```console\ngo build csvv.go\n```\n\nRun\n===\n```console\ncsvv /path/to/csv column1,column2[,column3...]\n```\n\nExample\n=======\nHere's a CSV file, say `users.csv`.\n```console\nid,name,email,github,twitter\n1,Bob,bob@aaa.xyz,bobaaa,bob123\n2,Jake,jake@aaa.xyz,jakeaaa,jake123\n```\n\nIf you want to get fields named `id` and `email`, you may run like this:\n```console\ncsvv users.csv id,email\n```\n\nThen you get:\n```console\nid,email\n1,bob@aaa.xyz\n2,jake@aaa.xyz\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacahiroy%2Fcsvv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftacahiroy%2Fcsvv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacahiroy%2Fcsvv/lists"}