This package of files sets up four programs that do "compressed" ls-type
listings.  They only work on BSD 4.2 and 4.3 UNIX (also ULTRIX); you won't
need them on SysV, XENIX, or other systems which limit filenames to 14
characters or less.

I wrote them because the standard "ls" command automatically adjusts the
number of columns it displays to fit the longest filename.  So, a directory
listing of, say, 100 files, can scroll off the screen if a couple of the
filenames are very long.  The compressed ls programs limit filename length;
if a name is too long, they put a ">" character at the end of the filename.
See the program's comment block for more explanation.

Here's an example.
    
    % ls
    1test                           junque3
    2test                           long_exe_file_name,_etc._etc.
    3test                           long_text_file_name,_etc._etc.
    4test                           shortexe
    dir_short                       shorttext
    directory_with_long_name_too    test1
    junque1                         test2
    junque2
    % cls
    1test          dir_short      junque3        shorttext
    2test          directory_wit> long_exe_file> test1
    3test          junque1        long_text_fil> test2
    4test          junque2        shortexe
    % cls2
    1test          2test          3test          4test          dir_short
    directory_wit> junque1        junque2        junque3        long_exe_file>
    long_text_fil> shortexe       shorttext      test1          test2
    % ls -F
    1test                           junque3
    2test*                          long_exe_file_name,_etc._etc.*
    3test                           long_text_file_name,_etc._etc.
    4test                           shortexe*
    dir_short/                      shorttext
    directory_with_long_name_too/   test1
    junque1                         test2
    junque2
    % clf
    1test          dir_short/     junque3        shorttext
    2test*         directory_wi>/ long_exe_fil>* test1
    3test          junque1        long_text_fil> test2
    4test          junque2        shortexe*
    % clf2
    1test          2test*         3test          4test          dir_short/
    directory_wi>/ junque1        junque2        junque3        long_exe_fil>*
    long_text_fil> shortexe*      shorttext      test1          test2

The clx2 programs run faster because they don't have to count the number
of lines in the "ls" output.  But, the ordering is different.

All four programs actually run from the same code; the real source file is
"cls", and the others are symbolic links to it. I use symlinks instead of
hard links because I maintain the software with RCS.  The short makefile
I've sent along should set things up for you... just type "make".
Move the "cls.sed" program to whatever directory you'd like to keep it, then
edit the "sed=" line in the "cls" file -- to let it find the "cls.sed" file.

The programs are quick hacks, but they've been very very useful.
If anyone makes any fixes or improvements, please send them to me!

--Jerry Peek, Northeast Parallel Architectures Center, Syracuse, NY
  jerryp@amax.npac.syr.edu
  (315)423-1722
