{"id":20119879,"url":"https://github.com/shellshape/ssplit","last_synced_at":"2025-08-25T07:33:07.039Z","repository":{"id":196240013,"uuid":"695251175","full_name":"shellshape/ssplit","owner":"shellshape","description":"An extremely simple CLI tool to split string contents.","archived":false,"fork":false,"pushed_at":"2023-09-23T16:47:03.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T20:15:21.267Z","etag":null,"topics":["cli","cli-tool","rust","string-manipulation","strings"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/shellshape.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}},"created_at":"2023-09-22T17:30:12.000Z","updated_at":"2023-09-22T19:28:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"209d616a-ba04-4880-b8d9-004b4e9dde93","html_url":"https://github.com/shellshape/ssplit","commit_stats":null,"previous_names":["shellshape/ssplit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shellshape/ssplit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellshape%2Fssplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellshape%2Fssplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellshape%2Fssplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellshape%2Fssplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellshape","download_url":"https://codeload.github.com/shellshape/ssplit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellshape%2Fssplit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272024561,"owners_count":24860528,"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-08-25T02:00:12.092Z","response_time":1107,"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":["cli","cli-tool","rust","string-manipulation","strings"],"created_at":"2024-11-13T19:17:35.955Z","updated_at":"2025-08-25T07:33:07.012Z","avatar_url":"https://github.com/shellshape.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssplit\n\nAn extremely simple CLI tool to split string contents.\n\n## Install\n\nYou can either download the latest release builds form the [Releases page](https://github.com/shellshape/ssplit/releases) or you can install it using cargo install.\n\n```\ncargo install ssplit\n```\n\n## Usage\n\n```\n❯ ssplit --help\nSimple CLI tool to split string contents\n\nUsage: ssplit [OPTIONS] --split \u003cSPLIT\u003e [FILE]\n\nArguments:\n  [FILE]  A file to be read as input; If not provided, StdIn is used as input\n\nOptions:\n  -s, --split \u003cSPLIT\u003e          The string on which the input is split\n  -d, --delimiter \u003cDELIMITER\u003e  The delimiter for the split elements [default: \"\\n\"]\n  -i, --idx \u003cIDX\u003e              Only select a given index, indices or index ranges (separated by ','); Ranges are defined in the form of {start}-{end} (.i.e. 3-7)\n  -h, --help                   Print help\n  -V, --version                Print version\n```\n\nBy default, all splitted elements are printed to StdOut delimited by the given delimiter (new line by default).\n\nIf you pass the `-i` or `--idx` parameter, you can define a specific index, indices or index ranges to be returned. For example:\n\n```\nssplit mydata.txt -s '/' -i '1,3,6-9'\n```\n\nThe example above will split the input and only print elements at index 1, 3, 6, 7, 8 and 9.\n\n## Performance\n\nBecause the tool reads the input in chunks and directly prints the split output to StdOut, the runtime should be linear to the size of the input and the memory consumption should be constant.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellshape%2Fssplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellshape%2Fssplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellshape%2Fssplit/lists"}