{"id":18053928,"url":"https://github.com/hymkor/richcsv","last_synced_at":"2026-03-19T03:03:38.069Z","repository":{"id":82954836,"uuid":"460910627","full_name":"hymkor/richcsv","owner":"hymkor","description":"Pure gawk template for reading CSV files containing line breaks in elements","archived":false,"fork":false,"pushed_at":"2022-02-18T16:30:30.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T08:26:05.342Z","etag":null,"topics":["awk","gawk"],"latest_commit_sha":null,"homepage":"","language":"Awk","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/hymkor.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}},"created_at":"2022-02-18T15:44:45.000Z","updated_at":"2022-05-13T22:51:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"9dcce81f-9680-4968-b6e1-cd12ac6fc1bf","html_url":"https://github.com/hymkor/richcsv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hymkor/richcsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hymkor%2Frichcsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hymkor%2Frichcsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hymkor%2Frichcsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hymkor%2Frichcsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hymkor","download_url":"https://codeload.github.com/hymkor/richcsv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hymkor%2Frichcsv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276165905,"owners_count":25596314,"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-20T02:00:10.207Z","response_time":63,"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","gawk"],"created_at":"2024-10-31T00:08:34.428Z","updated_at":"2025-09-20T22:13:29.440Z","avatar_url":"https://github.com/hymkor.png","language":"Awk","funding_links":[],"categories":[],"sub_categories":[],"readme":"richcsv.awk\r\n===========\r\n\r\nPure gawk Template for reading CSV files containing line breaks in elements.\r\n(Test on gawk 5.1.1)\r\n\r\n```awk\r\nBEGIN{\r\n    FPAT=\"([^,]+)|(\\\"[^\\\"]+\\\")\"\r\n}\r\n\r\n{\r\n    last = last $0\r\n    if ( last != \"\" \u0026\u0026 split(last,trash,\"\\\"\") % 2 == 0 ){\r\n        last = last RS\r\n        next\r\n    }\r\n    $0 = last ; last = \"\"\r\n}\r\n\r\n# test\r\n{\r\n    for(i = 1 ; i \u003c= NF ; i++ ){\r\n        printf \"\u003c%s\u003e\",gensub(\"\\\"\",\"\",\"g\",$i)\r\n    }\r\n    print \"\"\r\n}\r\n```\r\n\r\n```\r\n$ type sample.csv\r\n0001,=1+1,03,-4,5/2\r\n\"hogeohg  2\",5555,3,\"1st TEXT\r\n2nd\r\n3rd\r\n4th\"\r\n$ gawk -f richcsv.awk sample.csv\r\n\u003c0001\u003e\u003c=1+1\u003e\u003c03\u003e\u003c-4\u003e\u003c5/2\u003e\r\n\u003chogeohg  2\u003e\u003c5555\u003e\u003c3\u003e\u003c1st TEXT\r\n2nd\r\n3rd\r\n4th\u003e\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhymkor%2Frichcsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhymkor%2Frichcsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhymkor%2Frichcsv/lists"}