{"id":26255539,"url":"https://github.com/vegarsti/slice","last_synced_at":"2025-07-20T11:31:45.682Z","repository":{"id":117608371,"uuid":"348838249","full_name":"vegarsti/slice","owner":"vegarsti","description":"command line utility for slicing lines, alternative to cut","archived":false,"fork":false,"pushed_at":"2021-03-23T10:33:58.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-19T19:37:29.957Z","etag":null,"topics":["command-line","golang","unix"],"latest_commit_sha":null,"homepage":"","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/vegarsti.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}},"created_at":"2021-03-17T20:07:35.000Z","updated_at":"2021-05-07T18:26:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"27f65ef2-9a62-4724-b472-724364ca7df8","html_url":"https://github.com/vegarsti/slice","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vegarsti/slice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegarsti%2Fslice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegarsti%2Fslice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegarsti%2Fslice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegarsti%2Fslice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vegarsti","download_url":"https://codeload.github.com/vegarsti/slice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegarsti%2Fslice/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266117123,"owners_count":23879015,"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","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":["command-line","golang","unix"],"created_at":"2025-03-13T19:19:33.897Z","updated_at":"2025-07-20T11:31:45.676Z","avatar_url":"https://github.com/vegarsti.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slice\n\n\u003cp\u003e\n    \u003ca href=\"https://github.com/vegarsti/slice/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/vegarsti/slice.svg\" alt=\"Latest Release\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/vegarsti/slice/actions\"\u003e\u003cimg src=\"https://github.com/vegarsti/slice/workflows/test/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n    \u003ca href=\"http://goreportcard.com/report/github.com/vegarsti/slice\"\u003e\u003cimg src=\"http://goreportcard.com/badge/vegarsti/slice\" alt=\"Go ReportCard\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nLike [`cut`](https://en.wikipedia.org/wiki/Cut_(Unix)), but with the negative slicing we know and love.\n\n## Installation\n\n```sh\n$ go get \"github.com/vegarsti/slice\"\n```\n\n\n## Usage\n\n```sh\n$ echo \"hello world\" | slice 1:-1\nello worl\n\n$ echo \"hello\\nyou\" | slice 1:-1\nell\no\n\n$ echo \"hello\\nyou\" | slice 1:\nello\nou\n\n$ echo \"hello\\nyou\" | slice :2\nhe\nyo\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvegarsti%2Fslice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvegarsti%2Fslice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvegarsti%2Fslice/lists"}