what(1) General Commands Manual what(1)Name
what - display ID keywords from SCCS file
Syntax
what [-s] files
Description
The command searches the given files for all occurrences of the pattern that substitutes for %Z% (this is @(#) at this printing) and prints
out what follows until the first ", >, new-line, , or null character. For example, if the C program in file f.c contains
char ident[] = "@(#)identification information";
and f.c is compiled to yield 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
Use in conjunction with the SCCS command which automatically inserts identifying information, but information can also be inserted manu-
ally.
Restrictions
It is possible that an unintended occurrence of the pattern @(#) could be found. This causes no harm in nearly all cases.
Diagnostics
Use for explanations.
Options-s Quit after finding the first occurrence of the pattern in the file.
See Alsoget(1), sccshelp(1), sccs(1)
Guide to the Source Code Control System
what(1)
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)