filetest -op file –
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.
> filetest -m myfile
SYSLOW
if ( -m myfile == "SYSLOW" ) then
echo "myfile has seclabel of SYSLOW"
endif
tcsh