{"id":20330562,"url":"https://github.com/mle86/hi","last_synced_at":"2026-04-22T03:33:16.601Z","repository":{"id":161260183,"uuid":"168999872","full_name":"mle86/hi","owner":"mle86","description":"Highlights lines that contain keywords.","archived":false,"fork":false,"pushed_at":"2019-05-19T15:02:24.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T12:32:32.416Z","etag":null,"topics":["ansi-colors","c","command-line-tool","grep-like","highlight","keyword-detection","linux"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mle86.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"COPYING","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":"2019-02-03T22:16:22.000Z","updated_at":"2022-02-26T10:46:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b5273d6-9232-4ef1-af90-66e0812ec57c","html_url":"https://github.com/mle86/hi","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mle86/hi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fhi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fhi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fhi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fhi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mle86","download_url":"https://codeload.github.com/mle86/hi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fhi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32119901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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":["ansi-colors","c","command-line-tool","grep-like","highlight","keyword-detection","linux"],"created_at":"2024-11-14T20:16:42.116Z","updated_at":"2026-04-22T03:33:16.587Z","avatar_url":"https://github.com/mle86.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[//]: # (This file was autogenerated from the man page with 'make README.md')\n\n# hi(1) - highlights lines containing keywords\n\n[![Build Status](https://travis-ci.org/mle86/hi.svg?branch=master)](https://travis-ci.org/mle86/hi)\n[![GPLv3 License](https://img.shields.io/badge/license-GPL%20v3-498e7f.svg?style=flat)](/COPYING)\n\n\nVersion 2.1.0, February 2019\n\n\u003cpre\u003e\u003ccode\u003e\u003cb\u003ehi\u003c/b\u003e [\u003cb\u003e-l\u003c/b\u003e|\u003cb\u003e-w\u003c/b\u003e|\u003cb\u003e-p\u003c/b\u003e] [\u003ci\u003eOPTIONS\u003c/i\u003e] [\u003cb\u003e--\u003c/b\u003e] \u003ci\u003eKEYWORD\u003c/i\u003e...\n\u003cb\u003ehi\u003c/b\u003e \u003cb\u003e-L\u003c/b\u003e [\u003ci\u003eOPTIONS\u003c/i\u003e] [\u003cb\u003e--\u003c/b\u003e] \u003ci\u003eRANGE\u003c/i\u003e...\u003c/code\u003e\u003c/pre\u003e\n\n# Description\n\n**hi** reads text from the standard input\nand prints its input on the standard output.\nLines containing at least one of the given keywords\nwill be colorized\nwith ANSI escape codes.\n\n# Installation\n\n```\n$ make\n# make install\n```\n\nThis will compile the binary and copy it to /usr/local/bin/**hi**.\nThe man page will be copied to /usr/local/share/man/man.1/**hi.1.gz**.\n\n\n\n# Modes\n\nThe program operates in one of several\n**output modes.**  \nThe default output mode is **-l**.\n\n* **-l, --lines**  \n  Highlight lines:\n  All lines containing at least one of the *KEYWORD*s\n  will be highlighted in the output.\n* **-p, --paragraphs**  \n  Highlight paragraphs:\n  All paragraphs containing at least one of the *KEYWORD*s\n  will be highlighted in the output.\n* **-w, --words**  \n  Highlight words:\n  Only the *KEYWORD*s themselves\n  will be colorized in the output.\n* **-L, --explicit, --ranges**  \n  Explicit mode:\n  In this mode, there are no *KEYWORD*s.\n  Instead,\n  the program takes one or more line number *RANGE*s\n  which will be colorized.\n  For example, the invocation\n  “**hi -L 3 8-10 5**”\n  will highlight lines 3, 5, 8, 9, and 10\n  but nothing else.\n  Line numbers start at 1.\n\n# Options\n\n\n* **-i**, **--ignore-case**  \n  Enable case-insensitive matching.\n  This is the default.\n  Note that the program is unaware of locales\n  and can only compare plain ASCII letters (**A**..**Z**)\n  case-insensitively; all other characters will be compared byte-for-byte.\n* **-I**, **--case-sensitive**  \n  Enable case-sensitive matching.\n  The opposite of **-i**.\n* **-c**, **--color** *COLOR*  \n  Select the output highlighting color.\n  Recognized colors are:\n    * **yellow**/**ye**/**yw**\n      (default),\n    * **red**/**re**/**rd**,\n    * **blue**/**bl**,\n    * **green**/**gr**/**gn**,\n    * **cyan**/**cy**/**cn**,\n    * **white**/**wh**.\n* **-h**, **--help**  \n  Show program help.\n* **-V**, **--version**  \n  Show program version information.\n\n# License\n\nThis program is released under the\n[GPLv3\u0026nbsp;license](https://www.gnu.org/licenses/gpl.html).\n\nIt includes the \"nstr\" module\nfrom the\n[csv-parser project](https://github.com/mle86/csv-parser)\nwhich is released under the\n[MIT\u0026nbsp;license](https://opensource.org/licenses/MIT).\n\n# Author\n\nMaximilian Eul \u0026lt;[maximilian@eul.cc](mailto:maximilian@eul.cc)\u0026gt;\n(https://github.com/mle86)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmle86%2Fhi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmle86%2Fhi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmle86%2Fhi/lists"}