{"id":22837367,"url":"https://github.com/hubtou/what","last_synced_at":"2026-04-24T12:34:16.505Z","repository":{"id":57453812,"uuid":"423152358","full_name":"HubTou/what","owner":"HubTou","description":"Identify SCCS keyword strings in files","archived":false,"fork":false,"pushed_at":"2021-10-31T14:04:38.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T21:48:48.403Z","etag":null,"topics":["command-line-tool","learning-python","learning-unix","pnu-project","python","shell","tools","unix","unix-command","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HubTou.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}},"created_at":"2021-10-31T13:14:37.000Z","updated_at":"2021-10-31T14:07:30.000Z","dependencies_parsed_at":"2022-08-29T06:51:41.828Z","dependency_job_id":null,"html_url":"https://github.com/HubTou/what","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubTou%2Fwhat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubTou%2Fwhat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubTou%2Fwhat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubTou%2Fwhat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HubTou","download_url":"https://codeload.github.com/HubTou/what/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246412587,"owners_count":20773049,"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-tool","learning-python","learning-unix","pnu-project","python","shell","tools","unix","unix-command","utility"],"created_at":"2024-12-12T23:16:35.016Z","updated_at":"2026-04-24T12:34:16.469Z","avatar_url":"https://github.com/HubTou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation\npip install [pnu-what](https://pypi.org/project/pnu-what/)\n\n# WHAT(1)\n\n## NAME\nwhat - identify SCCS keyword strings in files\n\n## SYNOPSIS\n**what**\n\\[-qs\\]\n\\[--debug\\]\n\\[--help|-?\\]\n\\[--version\\]\n\\[--\\]\n\\[file ...\\]\n\n## DESCRIPTION\nThe **what** utility searches each specified file for sequences of the form \"@(#)\" as inserted by the SCCS source code control system.\nIt prints the remainder of the string following this marker, up to a NUL character, newline, double quote, ‘\u003e’ character, or backslash.\n\n### OPTIONS\nThe following options are available:\n\nOptions | Use\n------- | ---\n-q|Only output the match text, rather than formatting it\n-s|Stop searching each file after the first match\n--debug|Enable debug mode\n--help\\|-?|Print usage and a short help message and exit\n--version|Print version and exit\n--|Options processing terminator\n\n## ENVIRONMENT\nThe *WHAT_DEBUG* environment variable can be set to any value to enable debug mode.\n\nThe *FLAVOUR* or *WHAT_FLAVOUR* environment variables can be set to one of the following values, to implement only the corresponding options and behaviours.\n* posix : POSIX [what](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/what.html)\n* bsd | bsd:freebsd : FreeBSD [what(1)](https://www.freebsd.org/cgi/man.cgi?query=what)\n* linux : Linux [what(1P)](https://man7.org/linux/man-pages/man1/what.1p.html)\n\nHowever, if the *POSIXLY_CORRECT* environment variable is set to any value, then the POSIX flavour will be selected.\n\n## EXIT STATUS\nExit status is 0 if any matches were found, otherwise 1.\n\n## SEE ALSO\n[ident(1)](https://github.com/HubTou/ident/blob/main/README.md),\n[strings(1)](https://github.com/HubTou/strings/blob/main/STRINGS.1.md)\n\n## STANDARDS\nThe **what** utility is a standard UNIX/POSIX command.\n\nIt conforms to IEEE Std 1003.1-2001 (“[POSIX.1](https://en.wikipedia.org/wiki/POSIX)”).\nThe *-q* option is a non-standard [FreeBSD](https://www.freebsd.org/) extension which may not be available on other operating systems.\n\nThis re-implementation tries to follow the [PEP 8](https://www.python.org/dev/peps/pep-0008/) style guide for [Python](https://www.python.org/) code.\n\n## PORTABILITY\nTested OK under Windows.\n\n## HISTORY\nThe **what** command appeared in [UNIX Programmer's Workbench (PWB/UNIX)](https://en.wikipedia.org/wiki/PWB/UNIX) 1.0 in 1977,\nand was probably written by [Marc J. Rochkind](https://en.wikipedia.org/wiki/Marc_Rochkind) along with the rest of the [Source Code Control System (SCCS)](https://en.wikipedia.org/wiki/Source_Code_Control_System).\n\nThe [BSD](https://en.wikipedia.org/wiki/Berkeley_Software_Distribution) version appeared in [4.0BSD](https://en.wikipedia.org/wiki/History_of_the_Berkeley_Software_Distribution#4BSD) in October 1980 and was rewritten because SCCS was not licensed with [Version 32V AT\u0026T UNIX](https://en.wikipedia.org/wiki/UNIX/32V).\n\nThis re-implementation was made for the [PNU project](https://github.com/HubTou/PNU).\n\n## LICENSE\nIt is available under the [3-clause BSD license](https://opensource.org/licenses/BSD-3-Clause).\n\n## AUTHORS\n[Hubert Tournier](https://github.com/HubTou)\n\nThis manual page is based on the one written for [FreeBSD](https://www.freebsd.org/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubtou%2Fwhat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubtou%2Fwhat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubtou%2Fwhat/lists"}