{"id":13445990,"url":"https://github.com/nickolasburr/rng","last_synced_at":"2026-02-07T19:19:43.294Z","repository":{"id":105459281,"uuid":"137551006","full_name":"nickolasburr/rng","owner":"nickolasburr","description":"Print range of lines to stdout.","archived":false,"fork":false,"pushed_at":"2025-04-10T04:50:09.000Z","size":82,"stargazers_count":32,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T05:36:11.903Z","etag":null,"topics":["sed","stderr","stdin","stdout"],"latest_commit_sha":null,"homepage":"","language":"C","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/nickolasburr.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2018-06-16T03:50:00.000Z","updated_at":"2025-04-10T05:09:14.000Z","dependencies_parsed_at":"2024-01-03T04:12:21.863Z","dependency_job_id":"848d7756-ee13-47cf-8173-117c2d937897","html_url":"https://github.com/nickolasburr/rng","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nickolasburr/rng","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickolasburr%2Frng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickolasburr%2Frng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickolasburr%2Frng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickolasburr%2Frng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickolasburr","download_url":"https://codeload.github.com/nickolasburr/rng/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickolasburr%2Frng/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29205244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["sed","stderr","stdin","stdout"],"created_at":"2024-07-31T05:00:43.161Z","updated_at":"2026-02-07T19:19:43.278Z","avatar_url":"https://github.com/nickolasburr.png","language":"C","readme":"rng\n===\n\n.. contents::\n   :local:\n\nDescription\n-----------\n\n``rng`` streams input from a file or ``stdin`` to ``stdout``.\n\nIt is the love child of ``sed -n '\u003cSTART\u003e,\u003cEND\u003ep'`` and ``tail -n``.\n\nInstallation\n------------\n\nYou can install ``rng`` via Homebrew or manually.\n\nHomebrew\n^^^^^^^^\n\n.. code-block:: sh\n\n   brew tap nickolasburr/pfa\n   brew install rng\n\nSource\n^^^^^^\n\n.. code-block:: sh\n\n   git clone https://github.com/nickolasburr/rng.git\n   cd rng\n   make\n   make install\n\nBy default, files are installed to ``/usr/local`` You can install elsewhere by passing ``PREFIX`` to ``make install``.\n\n.. code-block:: sh\n\n   make install PREFIX=/opt\n\nNotes\n-----\n\nCertain range values can be omitted if they can be properly implied. To get multiple ranges, use the colon (``:``) operator.\n\nExamples\n--------\n\nGet lines 7-15 in ``Makefile``.\n\n.. code-block:: sh\n\n   rng 7,15 Makefile\n\nSkip the first 4 lines of input from a pipe.\n\n.. code-block:: sh\n\n   echo -e \"First\\nSecond\\nThird\\nFourth\\nFifth\" | rng 5\n\nOutput lines 1-25 in ``Makefile``.\n\n.. code-block:: sh\n\n   rng ,25 Makefile\n\nGet lines 5-10 and 17-22 in ``main.c``.\n\n.. code-block:: sh\n\n   rng 5,10:17,22 main.c\n\nOutput all lines except 11-19 in main.c\n\n.. code-block:: sh\n\n   rng ,10:20, main.c\n\nGet lines 16-27 of a text document from the web.\n\n.. code-block:: sh\n\n   curl -fsL https://www.w3.org/TR/2003/REC-PNG-20031110/iso_8859-1.txt | rng 16,27\n","funding_links":[],"categories":["C","System Utilities"],"sub_categories":["Directory Navigation"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickolasburr%2Frng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickolasburr%2Frng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickolasburr%2Frng/lists"}