rconn%brl@sri-unix.UUCP (09/14/83)
From: Rick Conn <rconn@brl> I have completed DIR.C for UNIX SYSTEM III. It is similar to XDIR under ZCPR2, and it has been tested on SYSTEM III and BRL (-3 option). The files are /d/rconn/.src/dir.c and /d/rconn/.man/dir.1 ... for users of UC, dir is invoked from UC as a subprocess for directory display purposes from command mode. The mans (uc.1) explain. DIR.C and DIR.1 will be available from SIMTEL20 in a day or two. A partial man entry follows: DDDDIIIIRRRR((((1111)))) BBBBRRRRLLLL UUUUNNNNIIIIXXXX DDDDIIIIRRRR((((1111)))) NNNNAAAAMMMMEEEE DIR - Version 1.0 by Richard Conn SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS Usage: dir path <-- List Files Along Path dir -a path <-- List Files Along Path with Attributes dir -h path <-- List Files Along Path, Including Hidden dir -ah path <-- -a and -h Combined DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN DIR is designed to provide a "clean" directory display to the user. It lists the matching files in a double column format, alphabetizing the entries down the columns. File names and sizes are included in the listing, as well as a total at the bottom of the screen. If a file is a directory, it is preceeded by the letter "D". If the -a option is used, the attributes (read, write, and execute) are listed as well. If the -h option is used, hidden files (those whose names start with a dot) are listed in addition to the other files. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS The following directory displays illustrate the various options of DIR. Comments are included in these displays, and they are denoted by "<--" and extend from this symbol to the end of the line. $ dir $HOME/.src <-- Display non-hidden files in $HOME/.src -- Filename -- - Size - -- Filename -- - Size - c.c 921 menu.c 10421 chario.c 1498 setek.c 637 comhex.c 2067 type.c 2611 cpmunix.c 2490 uc.c 30629 cpmutl7.c 32032 umodem.c 42252 crc.c 1752 unixcpm.c 1264 crck.c 1254 unixcpm.lbr 139904 dir.c 7485 unixcpm.txt 1361 dirtest.c 1325 xsq107.c 21521 lar.c 13787 xtype107.c 6292 lss.c 711 xusq107.c 6281 mcheck.c 3186 -- 23 Entries Displayed, 331681 Bytes --