home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
CMDS
/
find_1_1_5.lzh
/
find.man
< prev
next >
Wrap
Text File
|
1993-09-21
|
3KB
|
131 lines
FIND OS9 FIND
NAME:
FIND - Find files
SYNTAX:
find startdir option match action
DESCRIPTION:
Find will start searching in startdir, and continue until all dirs
have been searched. option is one of:
-name filename filename can be a wildcard pattern (see Pattern
Matching below)
-user xxx where xxx is a user id or user name
specified in the password file
-type c where c is 'd' for directory or 'f' for file
-segs n specify number of segments to search for
-size n[c] size in sectors (or characters if c is specified)
-links n number of links
-group xxx where xxx is a group number or name
-atime days file last accessed (modified) in days
-ctime days file created in days
-mtime days file last modified in days
-perm ugo ugo stands for user-group-other. You must specify
permissions in UNIX style (644 is owner r/w, other r)
n and days may be modified with a leading - or +. -days will search
for less than days and +days will search for more than days, and days
means exactly days.
The only action currently supported is -print
Pattern Matching:
Patterns must be enclosed in quotes so that the shell does not
expand them.
* will match any string (just like OSK shell)
? will match any character (just like OSK shell)
[] specify a set. [A-Z] will match upper-case letters. [a-z0-9] will
match lower-case or digit. ^ will invert the set. [^A-Z] match
everything but upper-case letter. (just like UNIX sh)
EXAMPLES:
Search for all files ending in .c:
find /h0 -name '*.c' -print
Search current directory for all files modified since yesterday:
find . -mtime -1 -print
Search oldfiles directory for all files over 7 days old:
find /h0/OLDFILES -ctime +7 -print
LAST PRINTED: 05/29/93 Page: 01
FIND OS9 FIND
Search for all files with more than 1 link:
find /h0 -links +1 -print
FILES:
/dd/sys/passwd
/dd/sys/group
CAVEATS:
Doesn't completely support all UNIX options, yet.
Also is a little slow. Searches a hard drive of 269 directories,
3870 files, taking 58,408,704 bytes in 9 min 34 sec.
AUTHOR:
David George
310 State Street
Albany, NY 12210-2040
CIS: 72240,134
DELPHI: DAVGEORGE
LAST PRINTED: 05/29/93 Page: 02