WHAT(1) BSD General Commands Manual WHAT(1)NAME
what -- search files for SCCS identifiers
SYNOPSIS
what [-s] file ...
DESCRIPTION
The what utility reads each file operand and searches for sequences of the form ``@(#)'' as inserted by the source code control system. It
prints the remainder of the string following this marker, up to a null character, newline, double quote, backslash, or ``>'' character.
If the -s option is specified, only the first occurrence of an identification string in each file is printed.
EXIT STATUS
The what utility exits 0 if any matches were found, and 1 otherwise.
STANDARDS
The what utility conforms to X/Open Portability Guide Issue 4, Version 2 (``XPG4.2'').
HISTORY
The what command appeared in 4.0BSD.
BUGS
As BSD is not licensed to distribute SCCS this is a rewrite of the what command which is part of SCCS, and may not behave exactly the same as
that command does.
BSD February 22, 1999 BSD
Check Out this Related Man Page
what(1) User Commands what(1)NAME
what - extract SCCS version information from a file
SYNOPSIS
what [-s] filename...
DESCRIPTION
The what utility searches each filename for occurrences of the pattern @(#) that the SCCS get command (see sccs-get(1)) substitutes for the
%Z% ID keyword, and prints what follows up to a ", >, NEWLINE, , or NULL character.
OPTIONS
The following option is supported:
-s Stops after the first occurrence of the pattern.
EXAMPLES
Example 1: Extracting SCCS version information
If a C program in file program.c contains
char sccsid[] = "@(#)identification information";
and program.c is compiled to yield program.o and a.out, the command:
example% what program.c program.o a.out
produces:
program.c: identification information
program.o: identification information
a.out: identification information
EXIT STATUS
The following exit values are returned:
0 Any matches were found.
1 No matches found.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of what: LANG, LC_ALL, LC_CTYPE, LC_MES-
SAGES, and NLSPATH.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsprot |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO sccs(1), sccs-admin(1), sccs-cdc(1), sccs-comb(1), sccs-delta(1), sccs-get(1), sccs-help(1), sccs-prs(1), sccs-prt(1), sccs-rmdel(1), sccs-
sact(1), sccs-sccsdiff(1), sccs-unget(1), sccs-val(1), sccsfile(4), attributes(5), environ(5), standards(5)DIAGNOSTICS
Use the SCCS help command for explanations (see sccs-help(1)).
BUGS
There is a remote possibility that a spurious occurrence of the `@(#)' pattern could be found by what.
SunOS 5.10 30 Sep 2002 what(1)
Looking at the member list, there are alot of interesting names, some unique, some bizarre, and some that are just plain. How did you come by your name? Why did you choose your label?
Me? Well, I wish I could change mine. I chose Google because thats how I stumbled upon this site. I wasn't sure... (66 Replies)
Since Neo has a thread going on what everyone likes to eat, I thought I'd start one on what everyone likes to drink on an evening out.
Post details for your choice if you can.
I go for beer - Beck's if I can get it. Foster's back in India.
If I am breaking any rules, please delete the... (65 Replies)
OK, please vote on your favorite web browser and comment why!
Only currently supported browers please!
Thanks.
PS: I am a big FireFox fan. FireFox add-ons rock! (61 Replies)
What is your favorite Linux distro?
and possibly why?
Personally, I have Fedora 3 on my computer. I have used Ubuntu and Slackware, too. But I think I liked Ubuntu more, maybe because of its speed and easy installation of packages. (192 Replies)
I was looking through the topics and I wasn't sure if this was the best place to post this question:
I was wondering, out of curiosity, which software everyone was using to code their scripts in. I do mostly sh/ksh and my favorite has always been EditPlus because it is small, fast, yet powerful.... (409 Replies)