home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / lisp / dired / find-dired.elc < prev    next >
Emacs Compiled Lisp  |  1993-04-01  |  4.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 77 7a 40 74 68 61 |piled by| jwz@tha|
|00000020| 6c 69 64 6f 6d 69 64 65 | 20 6f 6e 20 4d 6f 6e 20 |lidomide| on Mon |
|00000030| 46 65 62 20 20 31 20 31 | 38 3a 34 32 3a 31 36 20 |Feb 1 1|8:42:16 |
|00000040| 31 39 39 33 0a 3b 3b 3b | 20 66 72 6f 6d 20 66 69 |1993.;;;| from fi|
|00000050| 6c 65 20 2f 63 61 64 69 | 6c 6c 61 63 31 2f 63 6f |le /cadi|llac1/co|
|00000060| 64 65 2f 62 75 69 6c 64 | 2f 6c 65 6d 61 63 73 2f |de/build|/lemacs/|
|00000070| 6c 69 73 70 2f 64 69 72 | 65 64 2f 66 69 6e 64 2d |lisp/dir|ed/find-|
|00000080| 64 69 72 65 64 2e 65 6c | 0a 3b 3b 3b 20 65 6d 61 |dired.el|.;;; ema|
|00000090| 63 73 20 76 65 72 73 69 | 6f 6e 20 31 39 2e 34 2e |cs versi|on 19.4.|
|000000a0| 31 33 20 4c 75 63 69 64 | 2e 0a 3b 3b 3b 20 62 79 |13 Lucid|..;;; by|
|000000b0| 74 65 63 6f 6d 70 20 76 | 65 72 73 69 6f 6e 20 32 |tecomp v|ersion 2|
|000000c0| 2e 31 30 3b 20 20 31 2d | 66 65 62 2d 39 33 2e 0a |.10; 1-|feb-93..|
|000000d0| 3b 3b 3b 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e |;;; opti|mization|
|000000e0| 20 69 73 20 6f 6e 2e 0a | 3b 3b 3b 20 74 68 69 73 | is on..|;;; this|
|000000f0| 20 66 69 6c 65 20 75 73 | 65 73 20 6f 70 63 6f 64 | file us|es opcod|
|00000100| 65 73 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |es which| do not |
|00000110| 65 78 69 73 74 20 69 6e | 20 45 6d 61 63 73 31 38 |exist in| Emacs18|
|00000120| 2e 0a 0a 28 69 66 20 28 | 61 6e 64 20 28 62 6f 75 |...(if (|and (bou|
|00000130| 6e 64 70 20 27 65 6d 61 | 63 73 2d 76 65 72 73 69 |ndp 'ema|cs-versi|
|00000140| 6f 6e 29 0a 09 20 28 6f | 72 20 28 61 6e 64 20 28 |on).. (o|r (and (|
|00000150| 62 6f 75 6e 64 70 20 27 | 65 70 6f 63 68 3a 3a 76 |boundp '|epoch::v|
|00000160| 65 72 73 69 6f 6e 29 20 | 65 70 6f 63 68 3a 3a 76 |ersion) |epoch::v|
|00000170| 65 72 73 69 6f 6e 29 0a | 09 20 20 20 20 20 28 73 |ersion).|. (s|
|00000180| 74 72 69 6e 67 2d 6c 65 | 73 73 70 20 65 6d 61 63 |tring-le|ssp emac|
|00000190| 73 2d 76 65 72 73 69 6f | 6e 20 22 31 39 22 29 29 |s-versio|n "19"))|
|000001a0| 29 0a 20 20 20 20 28 65 | 72 72 6f 72 20 22 54 68 |). (e|rror "Th|
|000001b0| 69 73 20 66 69 6c 65 20 | 77 61 73 20 63 6f 6d 70 |is file |was comp|
|000001c0| 69 6c 65 64 20 66 6f 72 | 20 45 6d 61 63 73 31 39 |iled for| Emacs19|
|000001d0| 2e 22 29 29 0a 0a 28 64 | 65 66 63 6f 6e 73 74 20 |."))..(d|efconst |
|000001e0| 66 69 6e 64 2d 64 69 72 | 65 64 2d 76 65 72 73 69 |find-dir|ed-versi|
|000001f0| 6f 6e 20 28 73 75 62 73 | 74 72 69 6e 67 20 22 21 |on (subs|tring "!|
|00000200| 52 65 76 69 73 69 6f 6e | 3a 20 31 2e 31 34 20 21 |Revision|: 1.14 !|
|00000210| 22 20 31 31 20 2d 32 29 | 20 22 5c 0a 49 64 3a 20 |" 11 -2)| "\.Id: |
|00000220| 66 69 6e 64 2d 64 69 72 | 65 64 2e 65 6c 2c 76 20 |find-dir|ed.el,v |
|00000230| 31 2e 31 34 20 31 39 39 | 32 2f 30 34 2f 31 36 20 |1.14 199|2/04/16 |
|00000240| 31 34 3a 32 32 3a 30 37 | 20 73 6b 20 52 65 6c 42 |14:22:07| sk RelB|
|00000250| 65 74 61 20 22 29 0a 28 | 62 79 74 65 2d 63 6f 64 |eta ").(|byte-cod|
|00000260| 65 20 22 c0 c1 21 88 c2 | c3 21 87 22 20 5b 72 65 |e "..!..|.!." [re|
|00000270| 71 75 69 72 65 20 64 69 | 72 65 64 20 70 72 6f 76 |quire di|red prov|
|00000280| 69 64 65 20 66 69 6e 64 | 2d 64 69 72 65 64 5d 20 |ide find|-dired] |
|00000290| 32 29 0a 28 64 65 66 76 | 61 72 20 66 69 6e 64 2d |2).(defv|ar find-|
|000002a0| 6c 73 2d 6f 70 74 69 6f | 6e 20 28 62 79 74 65 2d |ls-optio|n (byte-|
|000002b0| 63 6f 64 65 20 22 08 c1 | 3d ab 82 c2 87 c3 87 22 |code "..|=......"|
|000002c0| 20 5b 73 79 73 74 65 6d | 2d 74 79 70 65 20 62 65 | [system|-type be|
|000002d0| 72 6b 65 6c 65 79 2d 75 | 6e 69 78 20 22 2d 6c 73 |rkeley-u|nix "-ls|
|000002e0| 22 20 22 2d 65 78 65 63 | 20 6c 73 20 2d 6c 64 69 |" "-exec| ls -ldi|
|000002f0| 20 7b 7d 20 5c 5c 3b 22 | 5d 20 32 29 20 22 5c 0a | {} \\;"|] 2) "\.|
|00000300| 2a 4f 70 74 69 6f 6e 20 | 74 6f 20 60 66 69 6e 64 |*Option |to `find|
|00000310| 27 20 74 6f 20 70 72 6f | 64 75 63 65 20 61 6e 20 |' to pro|duce an |
|00000320| 60 6c 73 20 2d 6c 27 2d | 74 79 70 65 20 6c 69 73 |`ls -l'-|type lis|
|00000330| 74 69 6e 67 2e 22 29 0a | 28 64 65 66 76 61 72 20 |ting.").|(defvar |
|00000340| 66 69 6e 64 2d 67 72 65 | 70 2d 6f 70 74 69 6f 6e |find-gre|p-option|
|00000350| 73 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 08 c1 |s (byte-|code "..|
|00000360| 3d ab 82 c2 87 c3 87 22 | 20 5b 73 79 73 74 65 6d |=......"| [system|
|00000370| 2d 74 79 70 65 20 62 65 | 72 6b 65 6c 65 79 2d 75 |-type be|rkeley-u|
|00000380| 6e 69 78 20 22 2d 73 22 | 20 22 2d 6c 22 5d 20 32 |nix "-s"| "-l"] 2|
|00000390| 29 20 22 5c 0a 2a 4f 70 | 74 69 6f 6e 20 74 6f 20 |) "\.*Op|tion to |
|000003a0| 67 72 65 70 20 74 6f 20 | 62 65 20 61 73 20 73 69 |grep to |be as si|
|000003b0| 6c 65 6e 74 20 61 73 20 | 70 6f 73 73 69 62 6c 65 |lent as |possible|
|000003c0| 2e 0a 4f 6e 20 42 65 72 | 6b 65 6c 65 79 20 73 79 |..On Ber|keley sy|
|000003d0| 73 74 65 6d 73 2c 20 74 | 68 69 73 20 69 73 20 60 |stems, t|his is `|
|000003e0| 2d 73 27 2c 20 66 6f 72 | 20 6f 74 68 65 72 73 20 |-s', for| others |
|000003f0| 69 74 20 73 65 65 6d 73 | 20 69 6d 70 6f 73 73 69 |it seems| impossi|
|00000400| 62 6c 65 20 74 6f 0a 73 | 75 70 70 72 65 73 73 20 |ble to.s|uppress |
|00000410| 61 6c 6c 20 6f 75 74 70 | 75 74 2c 20 73 6f 20 60 |all outp|ut, so `|
|00000420| 2d 6c 27 20 69 73 20 75 | 73 65 64 20 74 6f 20 70 |-l' is u|sed to p|
|00000430| 72 69 6e 74 20 6e 6f 74 | 68 69 6e 67 20 6d 6f 72 |rint not|hing mor|
|00000440| 65 20 74 68 61 6e 20 74 | 68 65 0a 66 69 6c 65 20 |e than t|he.file |
|00000450| 6e 61 6d 65 2e 22 29 0a | 28 64 65 66 76 61 72 20 |name.").|(defvar |
|00000460| 66 69 6e 64 2d 61 72 67 | 73 20 6e 69 6c 20 22 5c |find-arg|s nil "\|
|00000470| 0a 4c 61 73 74 20 61 72 | 67 75 6d 65 6e 74 73 20 |.Last ar|guments |
|00000480| 67 69 76 65 6e 20 74 6f | 20 60 66 69 6e 64 27 20 |given to| `find' |
|00000490| 62 79 20 5c 5c 5b 66 69 | 6e 64 2d 64 69 72 65 64 |by \\[fi|nd-dired|
|000004a0| 5d 2e 22 29 0a 28 66 73 | 65 74 20 27 66 69 6e 64 |].").(fs|et 'find|
|000004b0| 2d 64 69 72 65 64 20 23 | 5b 28 64 69 72 20 61 72 |-dired #|[(dir ar|
|000004c0| 67 73 29 20 22 c0 c1 5c | 6e 21 21 12 c3 5c 6e 21 |gs) "..\|n!!..\n!|
|000004d0| ac 85 c4 c5 5c 6e 5c 22 | 88 c6 c7 c8 21 21 88 7e |....\n\"|....!!.~|
|000004e0| 88 c9 20 88 ca 16 0b cc | 20 88 5c 6e 16 0d 0e 0e |.. .....| .\n....|
|000004f0| 16 0f d0 0e 0e d1 98 ab | 83 d1 aa 85 d2 0e 0e d3 |........|........|
|00000500| 51 0e 14 51 16 0e d5 5c | 6e d6 5c 22 88 d7 d8 21 |Q..Q...\|n.\"...!|
|00000510| ab 85 d8 20 88 aa 8b d9 | da 21 0e 0d db 20 42 43 |... ....|.!... BC|
|00000520| 4c 88 ca 16 0b dc 5c 6e | dd b1 03 88 dc 0e 0e de |L.....\n|........|
|00000530| b1 03 88 df e0 e1 70 0e | 0e 23 e2 5c 22 88 e3 e4 |......p.|.#.\"...|
|00000540| 70 21 e5 5c 22 88 e6 89 | 16 27 87 22 20 5b 66 69 |p!.\"...|.'." [fi|
|00000550| 6c 65 2d 6e 61 6d 65 2d | 61 73 2d 64 69 72 65 63 |le-name-|as-direc|
|00000560| 74 6f 72 79 20 65 78 70 | 61 6e 64 2d 66 69 6c 65 |tory exp|and-file|
|00000570| 2d 6e 61 6d 65 20 64 69 | 72 20 66 69 6c 65 2d 64 |-name di|r file-d|
|00000580| 69 72 65 63 74 6f 72 79 | 2d 70 20 65 72 72 6f 72 |irectory|-p error|
|00000590| 20 22 66 69 6e 64 2d 64 | 69 72 65 64 20 6e 65 65 | "find-d|ired nee|
|000005a0| 64 73 20 61 20 64 69 72 | 65 63 74 6f 72 79 3a 20 |ds a dir|ectory: |
|000005b0| 25 73 22 20 73 77 69 74 | 63 68 2d 74 6f 2d 62 75 |%s" swit|ch-to-bu|
|000005c0| 66 66 65 72 20 67 65 74 | 2d 62 75 66 66 65 72 2d |ffer get|-buffer-|
|000005d0| 63 72 65 61 74 65 20 22 | 2a 46 69 6e 64 2a 22 20 |create "|*Find*" |
|000005e0| 6b 69 6c 6c 2d 61 6c 6c | 2d 6c 6f 63 61 6c 2d 76 |kill-all|-local-v|
|000005f0| 61 72 69 61 62 6c 65 73 | 20 6e 69 6c 20 62 75 66 |ariables| nil buf|
|00000600| 66 65 72 2d 72 65 61 64 | 2d 6f 6e 6c 79 20 65 72 |fer-read|-only er|
|00000610| 61 73 65 2d 62 75 66 66 | 65 72 20 64 65 66 61 75 |ase-buff|er defau|
|00000620| 6c 74 2d 64 69 72 65 63 | 74 6f 72 79 20 61 72 67 |lt-direc|tory arg|
|00000630| 73 20 66 69 6e 64 2d 61 | 72 67 73 20 22 66 69 6e |s find-a|rgs "fin|
|00000640| 64 20 2e 20 22 20 22 22 | 20 22 5c 5c 28 20 22 20 |d . " ""| "\\( " |
|00000650| 22 20 5c 5c 29 20 22 20 | 66 69 6e 64 2d 6c 73 2d |" \\) " |find-ls-|
|00000660| 6f 70 74 69 6f 6e 20 64 | 69 72 65 64 2d 6d 6f 64 |option d|ired-mod|
|00000670| 65 20 22 2d 67 69 6c 73 | 62 22 20 66 62 6f 75 6e |e "-gils|b" fboun|
|00000680| 64 70 20 64 69 72 65 64 | 2d 73 69 6d 70 6c 65 2d |dp dired|-simple-|
|00000690| 73 75 62 64 69 72 2d 61 | 6c 69 73 74 20 6d 61 6b |subdir-a|list mak|
|000006a0| 65 2d 6c 6f 63 61 6c 2d | 76 61 72 69 61 62 6c 65 |e-local-|variable|
|000006b0| 20 64 69 72 65 64 2d 73 | 75 62 64 69 72 2d 61 6c | dired-s|ubdir-al|
|000006c0| 69 73 74 20 70 6f 69 6e | 74 2d 6d 69 6e 2d 6d 61 |ist poin|t-min-ma|
|000006d0| 72 6b 65 72 20 22 20 20 | 22 20 22 3a 5c 6e 22 20 |rker " |" ":\n" |
|000006e0| 22 5c 6e 22 20 73 65 74 | 2d 70 72 6f 63 65 73 73 |"\n" set|-process|
|000006f0| 2d 66 69 6c 74 65 72 20 | 73 74 61 72 74 2d 70 72 |-filter |start-pr|
|00000700| 6f 63 65 73 73 2d 73 68 | 65 6c 6c 2d 63 6f 6d 6d |ocess-sh|ell-comm|
|00000710| 61 6e 64 20 22 66 69 6e | 64 22 20 66 69 6e 64 2d |and "fin|d" find-|
|00000720| 64 69 72 65 64 2d 66 69 | 6c 74 65 72 20 73 65 74 |dired-fi|lter set|
|00000730| 2d 70 72 6f 63 65 73 73 | 2d 73 65 6e 74 69 6e 65 |-process|-sentine|
|00000740| 6c 20 67 65 74 2d 62 75 | 66 66 65 72 2d 70 72 6f |l get-bu|ffer-pro|
|00000750| 63 65 73 73 20 66 69 6e | 64 2d 64 69 72 65 64 2d |cess fin|d-dired-|
|00000760| 73 65 6e 74 69 6e 65 6c | 20 28 22 3a 20 25 73 22 |sentinel| (": %s"|
|00000770| 29 20 6d 6f 64 65 2d 6c | 69 6e 65 2d 70 72 6f 63 |) mode-l|ine-proc|
|00000780| 65 73 73 5d 20 35 20 22 | 5c 0a 52 75 6e 20 60 66 |ess] 5 "|\.Run `f|
|00000790| 69 6e 64 27 20 61 6e 64 | 20 67 6f 20 69 6e 74 6f |ind' and| go into|
|000007a0| 20 64 69 72 65 64 2d 6d | 6f 64 65 20 6f 6e 20 61 | dired-m|ode on a|
|000007b0| 20 62 75 66 66 65 72 20 | 6f 66 20 74 68 65 20 6f | buffer |of the o|
|000007c0| 75 74 70 75 74 2e 0a 54 | 68 65 20 63 6f 6d 6d 61 |utput..T|he comma|
|000007d0| 6e 64 20 72 75 6e 20 28 | 61 66 74 65 72 20 63 68 |nd run (|after ch|
|000007e0| 61 6e 67 69 6e 67 20 69 | 6e 74 6f 20 44 49 52 29 |anging i|nto DIR)|
|000007f0| 20 69 73 0a 0a 20 20 20 | 20 66 69 6e 64 20 2e 20 | is.. | find . |
|00000800| 5c 5c 28 20 41 52 47 53 | 20 5c 5c 29 20 2d 6c 73 |\\( ARGS| \\) -ls|
|00000810| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |" (byte-|code "..|
|00000820| c2 c3 c4 24 c5 c6 21 ab | 86 c7 c8 c9 5c 22 aa 85 |...$..!.|....\"..|
|00000830| ca c9 0e 0b 5c 22 44 87 | 22 20 5b 72 65 61 64 2d |....\"D.|" [read-|
|00000840| 66 69 6c 65 2d 6e 61 6d | 65 20 22 52 75 6e 20 66 |file-nam|e "Run f|
|00000850| 69 6e 64 20 69 6e 20 64 | 69 72 65 63 74 6f 72 79 |ind in d|irectory|
|00000860| 3a 20 22 20 6e 69 6c 20 | 22 22 20 74 20 66 65 61 |: " nil |"" t fea|
|00000870| 74 75 72 65 70 20 67 6d | 68 69 73 74 20 72 65 61 |turep gm|hist rea|
|00000880| 64 2d 77 69 74 68 2d 68 | 69 73 74 6f 72 79 2d 69 |d-with-h|istory-i|
|00000890| 6e 20 66 69 6e 64 2d 61 | 72 67 73 2d 68 69 73 74 |n find-a|rgs-hist|
|000008a0| 6f 72 79 20 22 52 75 6e | 20 66 69 6e 64 20 28 77 |ory "Run| find (w|
|000008b0| 69 74 68 20 61 72 67 73 | 29 3a 20 22 20 72 65 61 |ith args|): " rea|
|000008c0| 64 2d 73 74 72 69 6e 67 | 20 66 69 6e 64 2d 61 72 |d-string| find-ar|
|000008d0| 67 73 5d 20 35 29 5d 29 | 0a 28 66 73 65 74 20 27 |gs] 5)])|.(fset '|
|000008e0| 66 69 6e 64 2d 6e 61 6d | 65 2d 64 69 72 65 64 20 |find-nam|e-dired |
|000008f0| 23 5b 28 64 69 72 20 70 | 61 74 74 65 72 6e 29 20 |#[(dir p|attern) |
|00000900| 22 c0 09 c2 0b c4 51 5c | 22 87 22 20 5b 66 69 6e |".....Q\|"." [fin|
|00000910| 64 2d 64 69 72 65 64 20 | 64 69 72 20 22 2d 6e 61 |d-dired |dir "-na|
|00000920| 6d 65 20 27 22 20 70 61 | 74 74 65 72 6e 20 22 27 |me '" pa|ttern "'|
|00000930| 22 5d 20 35 20 22 5c 0a | 53 65 61 72 63 68 20 44 |"] 5 "\.|Search D|
|00000940| 49 52 20 72 65 63 75 72 | 73 69 76 65 6c 79 20 66 |IR recur|sively f|
|00000950| 6f 72 20 66 69 6c 65 73 | 20 6d 61 74 63 68 69 6e |or files| matchin|
|00000960| 67 20 74 68 65 20 67 6c | 6f 62 62 69 6e 67 20 70 |g the gl|obbing p|
|00000970| 61 74 74 65 72 6e 20 50 | 41 54 54 45 52 4e 2c 0a |attern P|ATTERN,.|
|00000980| 61 6e 64 20 72 75 6e 20 | 64 69 72 65 64 20 6f 6e |and run |dired on|
|00000990| 20 74 68 6f 73 65 20 66 | 69 6c 65 73 2e 0a 50 41 | those f|iles..PA|
|000009a0| 54 54 45 52 4e 20 69 73 | 20 61 20 73 68 65 6c 6c |TTERN is| a shell|
|000009b0| 20 77 69 6c 64 63 61 72 | 64 20 28 6e 6f 74 20 61 | wildcar|d (not a|
|000009c0| 6e 20 45 6d 61 63 73 20 | 72 65 67 65 78 70 29 20 |n Emacs |regexp) |
|000009d0| 61 6e 64 20 6e 65 65 64 | 20 6e 6f 74 20 62 65 20 |and need| not be |
|000009e0| 71 75 6f 74 65 64 2e 0a | 54 68 65 20 63 6f 6d 6d |quoted..|The comm|
|000009f0| 61 6e 64 20 72 75 6e 20 | 28 61 66 74 65 72 20 63 |and run |(after c|
|00000a00| 68 61 6e 67 69 6e 67 20 | 69 6e 74 6f 20 44 49 52 |hanging |into DIR|
|00000a10| 29 20 69 73 0a 0a 20 20 | 20 20 66 69 6e 64 20 2e |) is.. | find .|
|00000a20| 20 2d 6e 61 6d 65 20 27 | 50 41 54 54 45 52 4e 27 | -name '|PATTERN'|
|00000a30| 20 2d 6c 73 22 20 22 44 | 46 69 6e 64 2d 6e 61 6d | -ls" "D|Find-nam|
|00000a40| 65 20 28 64 69 72 65 63 | 74 6f 72 79 29 3a 20 5c |e (direc|tory): \|
|00000a50| 6e 73 46 69 6e 64 2d 6e | 61 6d 65 20 28 66 69 6c |nsFind-n|ame (fil|
|00000a60| 65 6e 61 6d 65 20 77 69 | 6c 64 63 61 72 64 29 3a |ename wi|ldcard):|
|00000a70| 20 22 5d 29 0a 28 66 73 | 65 74 20 27 6c 6f 6f 6b | "]).(fs|et 'look|
|00000a80| 66 6f 72 2d 64 69 72 65 | 64 20 27 66 69 6e 64 2d |for-dire|d 'find-|
|00000a90| 67 72 65 70 2d 64 69 72 | 65 64 29 0a 28 66 73 65 |grep-dir|ed).(fse|
|00000aa0| 74 20 27 66 69 6e 64 2d | 67 72 65 70 2d 64 69 72 |t 'find-|grep-dir|
|00000ab0| 65 64 20 23 5b 28 64 69 | 72 20 61 72 67 73 29 20 |ed #[(di|r args) |
|00000ac0| 22 c0 09 c2 0b c4 0d c6 | b0 05 5c 22 87 22 20 5b |".......|..\"." [|
|00000ad0| 66 69 6e 64 2d 64 69 72 | 65 64 20 64 69 72 20 22 |find-dir|ed dir "|
|00000ae0| 2d 65 78 65 63 20 67 72 | 65 70 20 22 20 66 69 6e |-exec gr|ep " fin|
|00000af0| 64 2d 67 72 65 70 2d 6f | 70 74 69 6f 6e 73 20 22 |d-grep-o|ptions "|
|00000b00| 20 22 20 61 72 67 73 20 | 22 20 7b 7d 20 5c 5c 3b | " args |" {} \\;|
|00000b10| 20 22 5d 20 37 20 22 5c | 0a 46 69 6e 64 20 66 69 | "] 7 "\|.Find fi|
|00000b20| 6c 65 73 20 69 6e 20 44 | 49 52 20 63 6f 6e 74 61 |les in D|IR conta|
|00000b30| 69 6e 69 6e 67 20 61 20 | 72 65 67 65 78 70 20 41 |ining a |regexp A|
|00000b40| 52 47 20 61 6e 64 20 73 | 74 61 72 74 20 44 69 72 |RG and s|tart Dir|
|00000b50| 65 64 20 6f 6e 20 6f 75 | 74 70 75 74 2e 0a 54 68 |ed on ou|tput..Th|
|00000b60| 65 20 63 6f 6d 6d 61 6e | 64 20 72 75 6e 20 28 61 |e comman|d run (a|
|00000b70| 66 74 65 72 20 63 68 61 | 6e 67 69 6e 67 20 69 6e |fter cha|nging in|
|00000b80| 74 6f 20 44 49 52 29 20 | 69 73 0a 0a 20 20 20 20 |to DIR) |is.. |
|00000b90| 66 69 6e 64 20 2e 20 2d | 65 78 65 63 20 67 72 65 |find . -|exec gre|
|00000ba0| 70 20 2d 73 20 41 52 47 | 20 7b 7d 20 5c 5c 3b 20 |p -s ARG| {} \\; |
|00000bb0| 2d 6c 73 0a 0a 54 68 75 | 73 20 41 52 47 20 63 61 |-ls..Thu|s ARG ca|
|00000bc0| 6e 20 61 6c 73 6f 20 63 | 6f 6e 74 61 69 6e 20 61 |n also c|ontain a|
|00000bd0| 64 64 69 74 69 6f 6e 61 | 6c 20 67 72 65 70 20 6f |dditiona|l grep o|
|00000be0| 70 74 69 6f 6e 73 2e 22 | 20 22 44 46 69 6e 64 2d |ptions."| "DFind-|
|00000bf0| 67 72 65 70 20 28 64 69 | 72 65 63 74 6f 72 79 29 |grep (di|rectory)|
|00000c00| 3a 20 5c 6e 73 46 69 6e | 64 2d 67 72 65 70 20 28 |: \nsFin|d-grep (|
|00000c10| 67 72 65 70 20 61 72 67 | 73 29 3a 20 22 5d 29 0a |grep arg|s): "]).|
|00000c20| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 4d 88 |(byte-co|de "..M.|
|00000c30| c2 c3 4d 88 c4 c5 21 ac | 84 c5 c6 4d 88 c0 87 22 |..M...!.|...M..."|
|00000c40| 20 5b 66 69 6e 64 2d 64 | 69 72 65 64 2d 66 69 6c | [find-d|ired-fil|
|00000c50| 74 65 72 20 23 5b 28 70 | 72 6f 63 20 73 74 72 69 |ter #[(p|roc stri|
|00000c60| 6e 67 29 20 22 c0 09 21 | 1a c3 5c 6e 21 ab c3 8a |ng) "..!|..\n!...|
|00000c70| 5c 6e 71 88 8c 7e 88 8a | c4 64 1d 1e 06 0d 62 88 |\nq..~..|.d....b.|
|00000c80| 0e 07 63 88 0d 62 88 c8 | c9 21 ac 83 ca 79 88 c8 |..c..b..|.!...y..|
|00000c90| c9 21 ab 88 cb 63 88 ca | 79 88 aa 73 0d cc 5a 62 |.!...c..|y..s..Zb|
|00000ca0| 88 cd ce c4 cf 23 ad 88 | 60 60 d0 5a 7c 88 aa 71 |.....#..|``.Z|..q|
|00000cb0| 2d aa 83 d1 09 21 29 87 | 22 20 5b 70 72 6f 63 65 |-....!).|" [proce|
|00000cc0| 73 73 2d 62 75 66 66 65 | 72 20 70 72 6f 63 20 62 |ss-buffe|r proc b|
|00000cd0| 75 66 20 62 75 66 66 65 | 72 2d 6e 61 6d 65 20 6e |uf buffe|r-name n|
|00000ce0| 69 6c 20 65 6e 64 20 62 | 75 66 66 65 72 2d 72 65 |il end b|uffer-re|
|00000cf0| 61 64 2d 6f 6e 6c 79 20 | 73 74 72 69 6e 67 20 6c |ad-only |string l|
|00000d00| 6f 6f 6b 69 6e 67 2d 61 | 74 20 22 5e 22 20 31 20 |ooking-a|t "^" 1 |
|00000d10| 22 20 20 22 20 33 20 73 | 65 61 72 63 68 2d 66 6f |" " 3 s|earch-fo|
|00000d20| 72 77 61 72 64 20 22 20 | 2e 2f 22 20 74 20 32 20 |rward " |./" t 2 |
|00000d30| 64 65 6c 65 74 65 2d 70 | 72 6f 63 65 73 73 5d 20 |delete-p|rocess] |
|00000d40| 34 5d 20 66 69 6e 64 2d | 64 69 72 65 64 2d 73 65 |4] find-|dired-se|
|00000d50| 6e 74 69 6e 65 6c 20 23 | 5b 28 70 72 6f 63 20 73 |ntinel #|[(proc s|
|00000d60| 74 61 74 65 29 20 22 c0 | 09 21 1a c3 5c 6e 21 ad |tate) ".|.!..\n!.|
|00000d70| 8b 8a 5c 6e 71 88 c4 15 | c6 c7 70 5c 22 29 29 87 |..\nq...|..p\")).|
|00000d80| 22 20 5b 70 72 6f 63 65 | 73 73 2d 62 75 66 66 65 |" [proce|ss-buffe|
|00000d90| 72 20 70 72 6f 63 20 62 | 75 66 20 62 75 66 66 65 |r proc b|uf buffe|
|00000da0| 72 2d 6e 61 6d 65 20 6e | 69 6c 20 6d 6f 64 65 2d |r-name n|il mode-|
|00000db0| 6c 69 6e 65 2d 70 72 6f | 63 65 73 73 20 6d 65 73 |line-pro|cess mes|
|00000dc0| 73 61 67 65 20 22 66 69 | 6e 64 2d 64 69 72 65 64 |sage "fi|nd-dired|
|00000dd0| 20 25 73 20 66 69 6e 69 | 73 68 65 64 2e 22 5d 20 | %s fini|shed."] |
|00000de0| 33 5d 20 66 62 6f 75 6e | 64 70 20 73 74 61 72 74 |3] fboun|dp start|
|00000df0| 2d 70 72 6f 63 65 73 73 | 2d 73 68 65 6c 6c 2d 63 |-process|-shell-c|
|00000e00| 6f 6d 6d 61 6e 64 20 23 | 5b 28 6e 61 6d 65 20 62 |ommand #|[(name b|
|00000e10| 75 66 66 65 72 20 26 72 | 65 73 74 20 61 72 67 73 |uffer &r|est args|
|00000e20| 29 20 22 08 c1 3d ab 88 | c2 c3 0c 0d 0e 06 24 87 |) "..=..|......$.|
|00000e30| c3 0c 0d 0e 07 c8 c9 ca | cb 0e 06 cc 23 50 25 87 |........|....#P%.|
|00000e40| 22 20 5b 73 79 73 74 65 | 6d 2d 74 79 70 65 20 76 |" [syste|m-type v|
|00000e50| 61 78 2d 76 6d 73 20 61 | 70 70 6c 79 20 73 74 61 |ax-vms a|pply sta|
|00000e60| 72 74 2d 70 72 6f 63 65 | 73 73 20 6e 61 6d 65 20 |rt-proce|ss name |
|00000e70| 62 75 66 66 65 72 20 61 | 72 67 73 20 73 68 65 6c |buffer a|rgs shel|
|00000e80| 6c 2d 66 69 6c 65 2d 6e | 61 6d 65 20 22 2d 63 22 |l-file-n|ame "-c"|
|00000e90| 20 22 65 78 65 63 20 22 | 20 6d 61 70 63 6f 6e 63 | "exec "| mapconc|
|00000ea0| 61 74 20 69 64 65 6e 74 | 69 74 79 20 22 20 22 5d |at ident|ity " "]|
|00000eb0| 20 31 30 20 22 53 74 61 | 72 74 20 61 20 70 72 6f | 10 "Sta|rt a pro|
|00000ec0| 67 72 61 6d 20 69 6e 20 | 61 20 73 75 62 70 72 6f |gram in |a subpro|
|00000ed0| 63 65 73 73 2e 20 20 52 | 65 74 75 72 6e 20 74 68 |cess. R|eturn th|
|00000ee0| 65 20 70 72 6f 63 65 73 | 73 20 6f 62 6a 65 63 74 |e proces|s object|
|00000ef0| 20 66 6f 72 20 69 74 2e | 5c 6e 41 72 67 73 20 61 | for it.|\nArgs a|
|00000f00| 72 65 20 4e 41 4d 45 20 | 42 55 46 46 45 52 20 43 |re NAME |BUFFER C|
|00000f10| 4f 4d 4d 41 4e 44 20 26 | 72 65 73 74 20 43 4f 4d |OMMAND &|rest COM|
|00000f20| 4d 41 4e 44 2d 41 52 47 | 53 2e 5c 6e 4e 41 4d 45 |MAND-ARG|S.\nNAME|
|00000f30| 20 69 73 20 6e 61 6d 65 | 20 66 6f 72 20 70 72 6f | is name| for pro|
|00000f40| 63 65 73 73 2e 20 20 49 | 74 20 69 73 20 6d 6f 64 |cess. I|t is mod|
|00000f50| 69 66 69 65 64 20 69 66 | 20 6e 65 63 65 73 73 61 |ified if| necessa|
|00000f60| 72 79 20 74 6f 20 6d 61 | 6b 65 20 69 74 20 75 6e |ry to ma|ke it un|
|00000f70| 69 71 75 65 2e 5c 6e 42 | 55 46 46 45 52 20 69 73 |ique.\nB|UFFER is|
|00000f80| 20 74 68 65 20 62 75 66 | 66 65 72 20 6f 72 20 28 | the buf|fer or (|
|00000f90| 62 75 66 66 65 72 2d 6e | 61 6d 65 29 20 74 6f 20 |buffer-n|ame) to |
|00000fa0| 61 73 73 6f 63 69 61 74 | 65 20 77 69 74 68 20 74 |associat|e with t|
|00000fb0| 68 65 20 70 72 6f 63 65 | 73 73 2e 5c 6e 20 50 72 |he proce|ss.\n Pr|
|00000fc0| 6f 63 65 73 73 20 6f 75 | 74 70 75 74 20 67 6f 65 |ocess ou|tput goe|
|00000fd0| 73 20 61 74 20 65 6e 64 | 20 6f 66 20 74 68 61 74 |s at end| of that|
|00000fe0| 20 62 75 66 66 65 72 2c | 20 75 6e 6c 65 73 73 20 | buffer,| unless |
|00000ff0| 79 6f 75 20 73 70 65 63 | 69 66 79 5c 6e 20 61 6e |you spec|ify\n an|
|00001000| 20 6f 75 74 70 75 74 20 | 73 74 72 65 61 6d 20 6f | output |stream o|
|00001010| 72 20 66 69 6c 74 65 72 | 20 66 75 6e 63 74 69 6f |r filter| functio|
|00001020| 6e 20 74 6f 20 68 61 6e | 64 6c 65 20 74 68 65 20 |n to han|dle the |
|00001030| 6f 75 74 70 75 74 2e 5c | 6e 20 42 55 46 46 45 52 |output.\|n BUFFER|
|00001040| 20 6d 61 79 20 62 65 20 | 61 6c 73 6f 20 6e 69 6c | may be |also nil|
|00001050| 2c 20 6d 65 61 6e 69 6e | 67 20 74 68 61 74 20 74 |, meanin|g that t|
|00001060| 68 69 73 20 70 72 6f 63 | 65 73 73 20 69 73 20 6e |his proc|ess is n|
|00001070| 6f 74 20 61 73 73 6f 63 | 69 61 74 65 64 5c 6e 20 |ot assoc|iated\n |
|00001080| 77 69 74 68 20 61 6e 79 | 20 62 75 66 66 65 72 5c |with any| buffer\|
|00001090| 6e 54 68 69 72 64 20 61 | 72 67 20 69 73 20 63 6f |nThird a|rg is co|
|000010a0| 6d 6d 61 6e 64 20 6e 61 | 6d 65 2c 20 74 68 65 20 |mmand na|me, the |
|000010b0| 6e 61 6d 65 20 6f 66 20 | 61 20 73 68 65 6c 6c 20 |name of |a shell |
|000010c0| 63 6f 6d 6d 61 6e 64 2e | 5c 6e 52 65 6d 61 69 6e |command.|\nRemain|
|000010d0| 69 6e 67 20 61 72 67 75 | 6d 65 6e 74 73 20 61 72 |ing argu|ments ar|
|000010e0| 65 20 74 68 65 20 61 72 | 67 75 6d 65 6e 74 73 20 |e the ar|guments |
|000010f0| 66 6f 72 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 2e |for the |command.|
|00001100| 5c 6e 57 69 6c 64 63 61 | 72 64 73 20 61 6e 64 20 |\nWildca|rds and |
|00001110| 72 65 64 69 72 65 63 74 | 69 6f 6e 20 61 72 65 20 |redirect|ion are |
|00001120| 68 61 6e 64 6c 65 20 61 | 73 20 75 73 75 61 6c 20 |handle a|s usual |
|00001130| 69 6e 20 74 68 65 20 73 | 68 65 6c 6c 2e 22 5d 5d |in the s|hell."]]|
|00001140| 20 32 29 0a | | 2). | |
+--------+-------------------------+-------------------------+--------+--------+