If no argument is given, the current working directory is used by default. The contents of all directories named in the argument list are displayed. while all other names (i.e. non-directories) are ignored. This feature allows one to use a shell's pattern matching abilities to generate the arguments without having to worry about non-directory names that might also be matched (e.g. .CQ "lc ~/*" would do an lc of all the non-hidden directories in one's home directory).
The special entries .Q . and .Q .. are normally not listed; the -a option causes them to be listed as well.
The -n option turns off all output; this is useful when only the exit status is wanted. (The exit status is 0 if something would have been printed, 1 otherwise.)
If any of the following option arguments are given, lc lists only those types of entries; otherwise, all entries are listed. The options and their meanings are:
f list ordinary files
d list directories
b list block special files
c list character special files
s list all special files
p list permanent pipes
Lc may be used with the substitution features of the Shell to select particular kinds of files (eg, directories) to take part in some processing, for example:
.CQ "ls -l \`lc -1d\`"
This lists the contents of all sub-directories of the current directory.
Waterloo, Ontario, Canada
http://www.math.uwaterloo.ca/mfcf/