lc

list file system elements in categories

Command


SYNOPSIS

lc [-adfn1] [directory ...]


DESCRIPTION

lc is an alternative to the UNIX ls command. It distinguishes its output by type -- generally files or directories. device-special files are also shown separately. lc displays names in columns, sorted horizontally.

Options

-a

displays all files and directories including those whose names begin with ".". File and directory names beginning with . are not usually shown.

-d

displays directories only.

-f

displays files only.

-n

suppresses all output. This is useful when you only want to use the exit status.

-1

displays one file per line.


DIAGNOSTICS

Possible exit status values are:
0

lc successfully found files under the specified directory and displayed their names.

1
directory

contains no files or subdirectories. For example, you can use the option combination -nd to determine if a directory has any subdirectories.

2

Failure because of an invalid command line option or insufficient memory.

Under rare conditions, lc cannot identify the type of a file. Such files are listed under the category **GOK**.


PORTABILITY

A frequent add-on to UNIX systems.


SEE ALSO

Commands:
ls


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]