filetest built-in command for tcsh: Apply the op file inquiry operator to a file
Format
filetest -op file –
Description
filetest applies op (which is a file inquiry operator) to each file and returns the results as a space-separated list. For more information about file inquiry operators, see File inquiry operators.
Examples
- To use the filetest command to retrieve the security
label: :
> filetest -m myfile SYSLOW
- To test for a specific security label using an if statement:
if ( -m myfile == "SYSLOW" ) then echo "myfile has seclabel of SYSLOW" endif
Related information
tcsh