home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
553.lha
/
listcom_v1.0
/
listcom.doc.pp
/
listcom.doc
Wrap
Text File
|
1991-09-09
|
2KB
|
49 lines
ListCom Version 1.0 Release 8.11
ListCom is my first ever C program (besides the usual Hello World
program). I have copyrighted the source but you can change it and
improve it if you wish.
ListCom stands for List Comment. The comment is a standard AmigaDOS
file comment also referred to as a file note.
I wrote ListCom because all of the DIR and LIST replacements did not
give you the choice of listing by the comment. Now granted, many
normal people probably don't need this feature, but I am not one of
those people.
I have 20+ disks filled with all of the downloads I have done in the
last 4 years. The best way to find what some "foo.lzh" file is without
listing the archive (ie:lharc l foo.lzh) is to place a comment about
the archive, what it does, rating the performance, does it have source,
etc.
ListCom simply lists files by comment. There is no extensive pattern
matching, nor are there any switches. If you type ListCom with a
pathname, you get a list of all file entries in that dircetory with
a comment attached. If you type a path and comment, all files with
comments begining with the same characters will be listed. This is
case in-sensative, ie: joe = JOE.
Examples:
ListCom "" ;Lists current directory all files with comments
ListCom t: "docs for" ;Lists t: directory - all files with comments
beginning with "docs for" (ignore quotes)
ListCom "" Utility ;Lists current directory all files with comments
beginning with "utility".
Hope this is helpful.
If anyone does have code parts to help write better patternmatching
and simple switch argument parsing, please let me know where I can
find source.
Enjoy! :D
John Bianchi
Send Bug Reports to:
CIS: 76256,3436