{"id":51706521,"url":"https://github.com/cwchentw/inplace","last_synced_at":"2026-07-16T16:06:23.425Z","repository":{"id":361030369,"uuid":"1252789029","full_name":"cwchentw/inplace","owner":"cwchentw","description":"A lightweight command-line tool to edit your text data efficiently in-place!","archived":false,"fork":false,"pushed_at":"2026-05-28T22:06:25.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-29T00:09:00.304Z","etag":null,"topics":["automation","cli","command-line-tool","data-cleaning","data-preprocessing","devops","lightweight","posix-sh","text-editing","text-processing","workflow"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/cwchentw.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T21:50:40.000Z","updated_at":"2026-05-28T22:06:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cwchentw/inplace","commit_stats":null,"previous_names":["cwchentw/inplace"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cwchentw/inplace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Finplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Finplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Finplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Finplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwchentw","download_url":"https://codeload.github.com/cwchentw/inplace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Finplace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35549780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"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":["automation","cli","command-line-tool","data-cleaning","data-preprocessing","devops","lightweight","posix-sh","text-editing","text-processing","workflow"],"created_at":"2026-07-16T16:06:22.516Z","updated_at":"2026-07-16T16:06:23.416Z","avatar_url":"https://github.com/cwchentw.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inplace 🚀\n\nA lightweight command-line tool to edit your text data efficiently in-place! Ideal for streamlined data cleaning and pre-processing pipelines.\n\n## ⚠️ Warning\n\n`inplace` permanently modifies your files **IN-PLACE**. Always back up your critical data before running execution commands.\n\n## Installation\n\nMake the script executable and copy it to your local environment path:\n\n```shell\nchmod +x inplace\ncp -p inplace ~/bin/\n```\n\n## Usage \u0026 Data Cleaning Workflow\n\nWhen dealing with complex CSV files, embedded commas within quotes (like dates or currency) often break standard column splitting. Here is how `inplace` helps you clean and extract data step-by-step.\n\n### 1. Back up your original dataset\n\n```shell\ncp VT.csv VT_orig.csv\n```\n\n### 2. Clean up embedded commas\n\nUse `inplace` alongside `perl` to pre-process messy columns before splitting:\n\n```shell\n# Convert date format inside quotes: \"May 28, 2026\" -\u003e May-28-2026\ninplace perl -pe 's/\"([A-Za-z]+) ([0-9]+), ([0-9]+)\"/$1-$2-$3/g' VT.csv\n\n# Remove thousands separators inside quotes: \"1,234,567\" -\u003e 1234567\ninplace perl -pe 's/\"([0-9]+),([0-9]+),([0-9]+)\"/$1$2$3/g' VT.csv\n```\n\n### 3. Extract final columns safely\n\nOnce the conflicting commas are removed, extract your target columns into a new clean dataset:\n\n```shell\nawk 'BEGIN { FS=\",\"; OFS=\",\" } { print $1, $5, $6 }' VT.csv \u003e VT_extracted.csv\n```\n\n## License\n\nCopyright (c) 2026 ByteBard. Licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwchentw%2Finplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwchentw%2Finplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwchentw%2Finplace/lists"}