Skip to main content

identify SCCS keyword strings in files

Project description

Installation

pip install pnu-what

WHAT(1)

NAME

what - identify SCCS keyword strings in files

SYNOPSIS

what [-qs] [--debug] [--help|-?] [--version] [--] [file ...]

DESCRIPTION

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.

OPTIONS

The following options are available:

Options Use
-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

ENVIRONMENT

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

Exit status is 0 if any matches were found, otherwise 1.

SEE ALSO

ident(1), strings(1)

STANDARDS

The what utility is a standard UNIX/POSIX command.

It conforms to IEEE Std 1003.1-2001 (“POSIX.1”). The -q option is a non-standard FreeBSD extension which may not be available on other operating systems.

This re-implementation tries to follow the PEP 8 style guide for Python code.

PORTABILITY

Tested OK under Windows.

HISTORY

The what command appeared in UNIX Programmer's Workbench (PWB/UNIX) 1.0 in 1977, and was probably written by Marc J. Rochkind along with the rest of the Source Code Control System (SCCS).

The BSD version appeared in 4.0BSD in October 1980 and was rewritten because SCCS was not licensed with Version 32V AT&T UNIX.

This re-implementation was made for the PNU project.

LICENSE

It is available under the 3-clause BSD license.

AUTHORS

Hubert Tournier

This manual page is based on the one written for FreeBSD.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pnu_what-1.0.0.tar.gz (8.7 kB view hashes)

Uploaded source

Built Distribution

pnu_what-1.0.0-py3-none-any.whl (8.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page