Current Supported Releases: Sablime® v6.0 & v5.2
NAME
nwhat - look for what strings in any UNIX file
SYNOPSIS
nwhat [-s] file ...
DESCRIPTION
nwhat searches the given files for all occurrences of the
pattern @(#) and prints out the text that follows, up to the
first ~, >, \n, \, ", or \0 character. What strings are
commonly inserted into executables for later identification.
For example, if the C program in the file f.c contains
char ident[] = "@(#)identification information";
and f.c is compiled into f.o and a.out, then the command
what f.c f.o a.out
will print
f.c: <identification information>
f.o: <identification information>
a.out:
<identification information>
nwhat works well in conjunction with the nget(1) and get(1)
commands, which automatically expand ID keywords like @(#)
to what strings, but it can also be used wherever such
strings have been inserted, by whatever means.
OPTION
-s Quit after finding the first occurrence of a pattern in
each file.
CAVEAT
Accidental occurrences of the pattern @(#) are possible.
DIAGNOSTICS
The exit status is 0 if any match is found, otherwise 1.
Note that this may be the opposite of the what(1) command
found on some systems.
SEE ALSO
nadmin(1), ncdc(1), ndelta(1), nget(1), nprs(1), nsact(1),
nwhat(1).
SBCS Release 1.2 Last change: 1 April 1994 1
Return to SBCS Commands manpage index
Copyright © 2003
Lucent Technologies