tim@CSVAX.CALTECH.EDU (Timothy L. Kay) (02/17/89)
Now available from Simtel20: Filename Type Bytes CRC Directory PD1:<MSDOS.DIRUTL> TK_LS.ARC BINARY 21566 38C6H This is my version of ls. It combines some of the features of Unix ls with some of my ideas of what Unix find should be able do. Copyright 1989 Timothy L. Kay -- non-commercial use permitted Please feel free to use this program, but only for non-commercial use. I am interested in receiving suggestions as well as modified source code. I will try to keep an up-to-date version of the code available to all interested users. If you type "ls -?" you will see the following. Usage: ls [-c] [?] [--] [-?] [-1FRabltv] [-f[abis[#]]] [file ...] where -,? print this message c print copyright message 1 print files in single column with path prepended F enable inverse video for directories (or SET TERM=ansi) R recursively list contents of subdirectories a list all (including hidden and system) files b# print files in single column preceded with %i, i=1..# f find files that match particular criteria a# find files that contain > #% ASCII text (default 90%) b find files with extension .bak i find files with archive bit on s# find files smaller than # bytes (default 10000 bytes) l long format includes file date, time, size, attributes t list files in time order rather than alphabetic v verbose details of find decisions examples ls list files in current directory ls -Rfas1000 / lists all ASCII files smaller than 1000 bytes ls -vRfas1000 / same but explains why some files do not qualify ls -Rfas / | zoo aI /backup backs up all ASCII files of reasonable size ls -b2 *.c > temp.bat ; temp cc -DMSDOS compile all .c files Timothy L. Kay Caltech, 256-80 Pasadena, CA 91125 tim@csvax.caltech.edu