{"id":28507181,"url":"https://github.com/juan-leon/pipe-cutter","last_synced_at":"2026-04-29T01:01:23.493Z","repository":{"id":70252310,"uuid":"365523172","full_name":"juan-leon/pipe-cutter","owner":"juan-leon","description":"Command line tool to filter out some of the data piped in","archived":false,"fork":false,"pushed_at":"2023-12-01T09:34:53.000Z","size":61,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T06:38:35.160Z","etag":null,"topics":["scripts","shell","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juan-leon.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-05-08T13:36:40.000Z","updated_at":"2025-04-10T06:45:57.000Z","dependencies_parsed_at":"2025-07-05T06:31:23.804Z","dependency_job_id":"9c646360-e805-4e3f-98cf-7534d9b3bb97","html_url":"https://github.com/juan-leon/pipe-cutter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/juan-leon/pipe-cutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-leon%2Fpipe-cutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-leon%2Fpipe-cutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-leon%2Fpipe-cutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-leon%2Fpipe-cutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juan-leon","download_url":"https://codeload.github.com/juan-leon/pipe-cutter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-leon%2Fpipe-cutter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["scripts","shell","shell-script"],"created_at":"2025-06-08T20:07:08.657Z","updated_at":"2026-04-29T01:01:23.485Z","avatar_url":"https://github.com/juan-leon.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pipe-cutter\nCommand line tool to filter out some of the data piped in\n\n[![Rust](https://github.com/juan-leon/pipe-cutter/actions/workflows/test.yml/badge.svg)](https://github.com/juan-leon/pipe-cutter/actions/workflows/test.yml)\n[![dependency status](https://deps.rs/repo/github/juan-leon/pipe-cutter/status.svg)](https://deps.rs/repo/github/juan-leon/pipe-cutter)\n\n## What does pipe-cutter?\n\npipe-cutter is a tool to use as pipe to limit what is read from stdin (in time\nor size).\n\nExample: `pipe-cutter --tail nginx.log --seconds 10 \u003e 10-secs.log`\n\nExample: `tail -f nginx.log gnunicorn.log | pipe-cutter --bytes 3000`\n\n```\nUSAGE:\n    pipe-cutter [OPTIONS]\n\nFLAGS:\n    -h, --help\n            Prints help information\n\n    -V, --version\n            Prints version information\n\n\nOPTIONS:\n        --bytes \u003cbytes\u003e\n            Stop after reading that many bytes.  If reading from stdin, try to honor newlines\n\n        --seconds \u003cseconds\u003e\n            Stop reading after that many seconds\n\n        --tail \u003ctail\u003e\n            Read changes in this file (\"tail -f\" style), as opposed to using stdin\n```\n\nI sometimes use it along [lowcharts](https://github.com/juan-leon/lowcharts) to\nvisualize chunks of information coming from a logfile/strace/tcpdump/etc.\n\n## Is it really needed?\n\nYou can get pipe-cutter functionality by using standard unix tools.  For\nexample, `pipe-cutter --tail FILE --seconds 60 --bytes 10000` could be mimicked\nby doing `timeout 60 tail -f FILE | head -c 10000`.\n\n### Installation\n\n#### Via release\n\nGo over https://github.com/juan-leon/pipe-cutter/releases/ and download the binary\nyou want.  Decompress the file and copy the binary to your path.\n\n#### Via local compilation\n\n```\n$ git clone https://github.com/juan-leon/pipe-cutter\n$ cd pipe-cutter\n$ cargo install --path .\n```\n\n### Contributing\n\nFeedback, ideas and pull requests are welcomed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuan-leon%2Fpipe-cutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuan-leon%2Fpipe-cutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuan-leon%2Fpipe-cutter/lists"}