1sccs-prt(1) User Commands sccs-prt(1)
2
3
4
6 sccs-prt, prt - display delta table information from an SCCS file
7
9 prt [-abdefistu] [-cdate-time] [-rdate-time]
10 [-ysid] s.filename...
11
12
14 prt prints selected portions of an SCCS file. By default, it prints
15 the delta table (version log).
16
17
18 If a directory name is used in place of the s.filename argument, the
19 prt command applies to all s.files in that directory. Unreadable
20 s.files produce an error; processing continues with the next file (if
21 any). The use of `−' as the s.filename argument indicates that the
22 names of files are to be read from the standard input, one s.file per
23 line.
24
26 If any option other than -y, -c, or -r is supplied, the name of each
27 file being processed (preceded by one NEWLINE and followed by two NEW‐
28 LINE characters) appears above its contents.
29
30
31 If none of the -u, -f, -t, or -b options are used, -d is assumed. -s,
32 -i are mutually exclusive, as are -c and -r.
33
34 -a Display log entries for all deltas, including those
35 marked as removed.
36
37
38 -b Print the body of the s.file.
39
40
41 -d Print delta table entries. This is the default.
42
43
44 -e Everything. This option implies -d, -i, -u, -f, and -t.
45
46
47 -f Print the flags of each named s.file.
48
49
50 -i Print the serial numbers of included, excluded, and
51 ignored deltas.
52
53
54 -s Print only the first line of the delta table entries;
55 that is, only up to the statistics.
56
57
58 -t Print the descriptive text contained in the s.file.
59
60
61 -u Print the user-names and/or numerical group IDs of users
62 allowed to make deltas.
63
64
65 -cdate-time Exclude delta table entries that are specified cutoff
66 date and time. Each entry is printed as a single line,
67 preceded by the name of the SCCS file. This format
68 (also produced by -r , and -y) makes it easy to sort
69 multiple delta tables in chronological order. When both
70 -y and -c, or -y and -r are supplied, prt stops printing
71 when the first of the two conditions is met.
72
73
74 -rdate-time Exclude delta table entries that are newer than the
75 specified cutoff date and time.
76
77
78 -ysid Exclude delta table entries made prior to the SID speci‐
79 fied. If no delta in the table has the specified SID,
80 the entire table is printed. If no SID is specified,
81 the most recent delta is printed.
82
83
85 Output Format
86 The following format is used to print those portions of the s.file that
87 are specified by the various options.
88
89 o NEWLINE
90
91 o Type of delta (D or R)
92
93 o SPACE
94
95 o SCCS delta ID (SID)
96
97 o TAB
98
99 o Date and time of creation in the form: yy/mm/dd hh/mm/ss
100
101 o SPACE
102
103 o Username the delta's creator
104
105 o TAB
106
107 o Serial number of the delta
108
109 o SPACE
110
111 o Predecessor delta's serial number
112
113 o TAB
114
115 o Line-by-line change statistics in the form:
116 inserted/deleted/unchanged
117
118 o NEWLINE
119
120 o List of included deltas, followed by a NEWLINE (only if
121 there were any such deltas and the -i options was used)
122
123 o List of excluded deltas, followed by a NEWLINE (only if
124 there were any such deltas and the -i options was used)
125
126 o List of ignored deltas, followed by a NEWLINE (only if there
127 were any such deltas and the -i options was used)
128
129 o List of modification requests (MRs), followed by a NEWLINE
130 (only if any MR numbers were supplied).
131
132 o Lines of the delta commentary (if any), followed by a NEW‐
133 LINE.
134
136 Example 1 Producing a Display of the Delta Table
137
138
139 The following command produces a one-line display of the delta table
140 entry for the most recent version:
141
142
143 example% prt -y program.c
144 s.program.c: D 1.6 88/07/06 21:39:39 username 5 4 00159/00080/00636
145
146
147
149 See attributes(5) for descriptions of the following attributes:
150
151
152
153
154 ┌─────────────────────────────┬─────────────────────────────┐
155 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
156 ├─────────────────────────────┼─────────────────────────────┤
157 │Availability │SUNWsprot │
158 └─────────────────────────────┴─────────────────────────────┘
159
161 sccs(1), sccs-cdc(1), sccs-delta(1), sccs-get(1), sccs-help(1), sccs-
162 prs(1), sccs-sact(1), sccs-sccsdiff(1), what(1), sccsfile(4),
163 attributes(5)
164
166 Use the SCCS help command for explanations (see sccs-help(1)).
167
168
169
170SunOS 5.11 2 Jul 2007 sccs-prt(1)