home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
dirutl
/
tk_ls.arc
/
TK_LS.DOC
< prev
Wrap
Text File
|
1989-01-14
|
2KB
|
45 lines
From: tim@csvax.caltech.edu (Timothy L. Kay)
Re: TK_LS.ARC - Timonthy Kay's "ls" for MS-DOS w/source v1.0
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