16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

If arg is baud, cols, lines, meta or tabs, echotc prints the value of that capability<br />

(either yes or no, which indicates that the terminal does or does not have that<br />

capability). You might use this to make the output from a shell script less verbose<br />

on slow terminals, or limit command output to the number of lines on the screen:<br />

> set history=`echotc lines`<br />

> @ history--<br />

Termcap strings may contain wildcards which will not echo correctly. One should<br />

use double quotes when setting a shell variable to a terminal capability string, as in<br />

the following example that places the date in the status line:<br />

> set standout=`echotc sò<br />

> set end_standout=`echotc sè<br />

> echo -n "$standout"; date; echo -n "$end_standout"<br />

Mon Oct 25 10:06:48 EDT 1999<br />

><br />

Note: The date, as indicated, is printed out in standard output.<br />

The infocmp command can be used to print the current terminal description in<br />

termcap format (instead of terminfo format).<br />

Options<br />

-s Nonexistent capabilities return the empty string instead of causing an error.<br />

-v Messages are verbose.<br />

Related information<br />

tcsh<br />

filetest built-in command for tcsh: Apply the op file inquiry operator to<br />

a file<br />

Format<br />

filetest -op file –<br />

Description<br />

filetest applies op (which is a file inquiry operator) to each file and returns the<br />

results as a space-separated list. For more information on file inquiry operators, see<br />

“File inquiry operators” on page 648.<br />

Examples<br />

1. To use the filetest command to retrieve the seclabel:<br />

> filetest -m myfile<br />

SYSLOW<br />

2. To test for a specific seclabel using an if statement:<br />

if ( -m myfile == "SYSLOW" ) then<br />

echo "myfile has seclabel of SYSLOW"<br />

endif<br />

Related information<br />

tcsh<br />

glob built-in command for tcsh: Write each word to standard output<br />

Format<br />

glob wordlist<br />

tcsh: echotc<br />

Chapter 2. Shell command descriptions 681

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

Saved successfully!

Ooh no, something went wrong!