identify SCCS keyword strings in files
pip install pnu-what
what - identify SCCS keyword strings in files
what [-qs] [--debug] [--help|-?] [--version] [--] [file ...]
The what utility searches each specified file for sequences of the form "@(#)" as inserted by the SCCS source code control system. It prints the remainder of the string following this marker, up to a NUL character, newline, double quote, ‘>’ character, or backslash.
The following options are available:
|-q||Only output the match text, rather than formatting it|
|-s||Stop searching each file after the first match|
|--debug||Enable debug mode|
|--help|-?||Print usage and a short help message and exit|
|--version||Print version and exit|
|--||Options processing terminator|
The WHAT_DEBUG environment variable can be set to any value to enable debug mode.
The FLAVOUR or WHAT_FLAVOUR environment variables can be set to one of the following values, to implement only the corresponding options and behaviours.
However, if the POSIXLY_CORRECT environment variable is set to any value, then the POSIX flavour will be selected.
Exit status is 0 if any matches were found, otherwise 1.
The what utility is a standard UNIX/POSIX command.
Tested OK under Windows.
This re-implementation was made for the PNU project.
It is available under the 3-clause BSD license.
This manual page is based on the one written for FreeBSD.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.