Skip to main content

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.

Release files for pnu-what 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pnu-what 1.0.0
File Size Uploaded
pnu_what-1.0.0.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pnu-what 1.0.0
File Interpreter ABI Platform
pnu_what-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / pnu_what-1.0.0.tar.gz

Download URL pnu_what-1.0.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7c5f64ef9787c2abb125d7ec26d8272c2c10df1c848a81ffd0008b58d8106bfa
BLAKE2b-256 checksum
How to use checksums
7459354e6cb58666c4c2eaeb1d83ed0aeab23805a5c979eab08650cf7819c8a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / pnu_what-1.0.0-py3-none-any.whl

Download URL pnu_what-1.0.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b3c59f5c7bf988c15c03a778ac1a0c5cafe2d6c75034bd0103a344064f53fdb
BLAKE2b-256 checksum
How to use checksums
f6b39bdc1118b61ee9adf323ff70997a29b1b55c506c72c1239609b5fb11a92c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page