Processing files by element type

Suppose that a coding-standards program named check_var_names executes on each C-language source file. If all such files have element type c_src, a single cleartool command runs the program.

On Linux and the UNIX system:

cleartool find –avobs –visible –element 'eltype(c_src)' \
   –exec 'check_var_names $CLEARCASE_PN' 

On Windows® systems:

cleartool find –avobs –visible –element 'eltype(c_src)' ^
   –exec 'check_var_names %CLEARCASE_PN%'