09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>XENIX</strong> Programming SCCS: Source Code Control System<br />

Searching for Strings<br />

You can search for strings in files created from an s-file by using the what command.<br />

The com mand searches for the symbol "#(@)" (the current value of the 96Z96 keyword) in<br />

the given file and prints on the standard output all text immediately following the<br />

symbol up to the next double quote ("), greater than ( > ), backslash {\), newline, or<br />

(nonprinting) NULL character. For example, if the s-file s.demo.c contains the line<br />

char id[] = "%Z%%M%: %1% " ;<br />

and the command<br />

get -r3.4 s.prog.c<br />

is executed, then the command<br />

displays<br />

what prog.c<br />

prog.c:<br />

prog.c:3.4<br />

You may also use what to search files not created by SCCS commands.<br />

Comparing SCCS Files<br />

You can compare two versions from a given s-file by using the sccsdiff command. This<br />

command prints on the standard output the differences between two versions of the sfile.<br />

The command has the form<br />

sccsdiff -rS/01 -rS/02 s. filename<br />

where -rSID1 and -rSID2 give the SIDs of the versions to be compared, and s.filename is<br />

the name of the s-file containing the versions. The version SIDs must be given in the<br />

order in which they were created. For example, the command<br />

sccsdiff -r3.4 -r5.6 s.demo.c<br />

displays the differences between versions 3.4 and 5.6. The differences are displayed in a<br />

form similar to the <strong>XENIX</strong> diff command.<br />

5-31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!