home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


val

val [options ] files

Validate that the SCCS files meet the characteristics specified in the options. val produces messages on the standard output for each file and returns an 8-bit code upon exit. The codes are described in "Return Value Bits"; bits are counted left to right.

Options

-

Read standard input and interpret each line as a val command-line argument. Exit with an EOF . This option is used by itself.

-m name

Compare name with %M% keyword in file .

-r sid

Check whether the SCCS ID is ambiguous or invalid.

-s

Silence any error message.

-y type

Compare type with %Y% keyword in file .

Return Value Bits

Bit Meaning
0

Missing file argument.

1

Unknown or duplicate option.

2

Corrupted SCCS file.

3

Cannot open file, or file is not an SCCS file.

4

SID is invalid or ambiguous.

5

Nonexistent SID.

6

Mismatch between type and -y argument.

7

Mismatch between filename and -m argument.


Previous: Reference: unget UNIX in a Nutshell: System V Edition Next: Reference: what
Reference: unget Book Index Reference: what

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System