1what(1) User Commands what(1)
2
3
4
6 what - extract SCCS version information from a file
7
9 what [-s] filename...
10
11
13 The what utility searches each filename for occurrences of the pattern
14 @(#) that the SCCS get command (see sccs-get(1)) substitutes for the
15 @(#) ID keyword, and prints what follows up to a ", >, NEWLINE, \, or
16 NULL character.
17
19 The following option is supported:
20
21 -s Stops after the first occurrence of the pattern.
22
23
25 Example 1 Extracting SCCS version information
26
27
28 If a C program in file program.c contains
29
30
31 char sccsid[] = "@(#)identification information";
32
33
34
35
36 and program.c is compiled to yield program.o and a.out, the command:
37
38
39 example% what program.c program.o a.out
40
41
42
43
44 produces:
45
46
47 program.c: identification information
48
49
50 program.o: identification information
51
52
53 a.out: identification information
54
55
57 The following exit values are returned:
58
59 0 Any matches were found.
60
61
62 1 No matches found.
63
64
66 See environ(5) for descriptions of the following environment variables
67 that affect the execution of what: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES,
68 and NLSPATH.
69
71 See attributes(5) for descriptions of the following attributes:
72
73
74
75
76 ┌─────────────────────────────┬─────────────────────────────┐
77 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
78 ├─────────────────────────────┼─────────────────────────────┤
79 │Availability │SUNWsprot │
80 ├─────────────────────────────┼─────────────────────────────┤
81 │Interface Stability │Standard │
82 └─────────────────────────────┴─────────────────────────────┘
83
85 sccs(1), sccs-admin(1), sccs-cdc(1), sccs-comb(1), sccs-delta(1), sccs-
86 get(1), sccs-help(1), sccs-prs(1), sccs-prt(1), sccs-rmdel(1), sccs-
87 sact(1), sccs-sccsdiff(1), sccs-unget(1), sccs-val(1), sccsfile(4),
88 attributes(5), environ(5), standards(5)
89
91 Use the SCCS help command for explanations (see sccs-help(1)).
92
94 There is a remote possibility that a spurious occurrence of the `@(#)'
95 pattern could be found by what.
96
97
98
99SunOS 5.11 30 Sep 2002 what(1)