source: buchla-68k/orig/doc/Utilities/FIND.MAN@ 0170798

Last change on this file since 0170798 was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Imported original source code.

  • Property mode set to 100755
File size: 2.0 KB
RevLine 
[3ae31e9]1
2
3FIND(1) USER COMMANDS FIND(1)
4
5
6
7NAME
8 find - find files
9
10SYNOPSIS
11 find pathname-list expression
12
13DESCRIPTION
14 Find recursively descends the directory hierarchy for each
15 pathname in the pathname-list (that is, one or more path-
16 names) seeking files that match a boolean expression written
17 in the primaries given below.
18
19 -name filename
20 True if the filename argument matches the current
21 file name. Normal Shell argument syntax may be
22 used if escaped (watch out for `[', `?' and `*').
23
24 -exec command
25 True if the executed command returns a zero value
26 as exit status. The end of the command must be
27 punctuated by an escaped semicolon. A command
28 argument `{}' is replaced by the current pathname.
29
30 -ok command
31 Like -exec except that the generated command is
32 written on the standard output, then the standard
33 input is read and the command executed only upon
34 response y.
35
36 -print Always true; the current pathname is printed.
37
38 -newer True if the current file has been modified more
39 recently than the argument file.
40
41EXAMPLE
42 To find all the files called readme.doc starting from the
43 current directory:
44 % find . -name readme.doc -print
45 .\man\assembler\readme.doc
46 .\man\core\readme.doc
47 .\man\drivers\tut\readme.doc
48 .\man\manager\impl\readme.doc
49 .\suppl\general\unix\readme.doc
50 .\suppl\tools\sccs\readme.doc
51 %
52
53 To recursively print all files names in the current direc-
54 tory and below:
55 % find . -print
56 %
57
58 To remove all files named `*.o':
59 % find \ -name '*.o' -exec rm '{}' ';'
60 %
61
62 The quotes are necessary when using Micro C-Shell.
Note: See TracBrowser for help on using the repository browser.