home *** CD-ROM | disk | FTP | other *** search
-
- @(#) README 1.1 91/01/27
-
- Written 1991 by Christian Schlichtherle
- (chris@attron.ruhr.sub.org)
- No copyright unless you remove this header. The author
- disclaims any warranty.
-
- README - Documentation file for list(C).
-
- NAME
-
- list - Prints documented listings.
-
- SYNTAX
-
- list [-A] [<pathname> ...]
- list -u [<directory> ...]
-
- DESCRIPTION
-
- list(C) prints a documented listing on standard output. The
- output is formated. The first field contains the filename,
- the second field the size of the file in bytes. The rest of
- the line contains the description for the file. The lines
- are sorted in increasing ASCII collating sequence (like
- ls(C)). The "-A" option indicates that files beginning with
- a period are listed for non-super users too (like ls(C)).
-
- The description for the files is held in the file ".list"
- in the directory where the file reside. This file is
- formatted as follows: The first field contains the filename
- and the rest of the line contains the description for the
- file. The lines are sorted in increasing ASCII collating
- sequence.
-
- The second form of the command 'list -u [<directory> ...]'
- updates the ".list" file. The lines are sorted, descriptions
- for nonexistent files are thrown away and the output is
- formatted.
-
- FILES
-
- .list Description file for listing
-
- SEE ALSO
-
- ls(C), sort(C), join(C), awk(C)
-
- NOTES
-
- Whitespace in the description field of the ".list" file is
- replaced by a single space character.
-
- Filenames must not contain escape sequences for printf().
-
- If your awk bails out you will have to substitute the line
- "print substr($0, i + 2);" with "print substr($0, i + 2,
- 255);" or "print substr($0, i + 2, length($1) - i - 1);". I
- used this because it shows better performance (need not
- process length($1)).
-