home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume21 / mmv / part01 next >
SHell self-extracting ARchive  |  1990-04-08  |  31.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 32 31 69 30 38 |Subject:| v21i08|
|00000010| 37 3a 20 20 53 61 66 65 | 6c 79 20 72 65 6e 61 6d |7: Safe|ly renam|
|00000020| 65 20 77 69 6c 64 63 61 | 72 64 65 64 20 66 69 6c |e wildca|rded fil|
|00000030| 65 73 2c 20 50 61 72 74 | 30 31 2f 30 32 0a 4e 65 |es, Part|01/02.Ne|
|00000040| 77 73 67 72 6f 75 70 73 | 3a 20 63 6f 6d 70 2e 73 |wsgroups|: comp.s|
|00000050| 6f 75 72 63 65 73 2e 75 | 6e 69 78 0a 41 70 70 72 |ources.u|nix.Appr|
|00000060| 6f 76 65 64 3a 20 72 73 | 61 6c 7a 40 75 75 6e 65 |oved: rs|alz@uune|
|00000070| 74 2e 55 55 2e 4e 45 54 | 0a 58 2d 43 68 65 63 6b |t.UU.NET|.X-Check|
|00000080| 73 75 6d 2d 53 6e 65 66 | 72 75 3a 20 31 37 39 34 |sum-Snef|ru: 1794|
|00000090| 35 31 63 61 20 62 61 65 | 39 37 65 32 31 20 65 62 |51ca bae|97e21 eb|
|000000a0| 63 61 39 35 33 64 20 31 | 30 66 65 61 65 63 33 0a |ca953d 1|0feaec3.|
|000000b0| 0a 53 75 62 6d 69 74 74 | 65 64 2d 62 79 3a 20 56 |.Submitt|ed-by: V|
|000000c0| 6c 61 64 69 6d 69 72 20 | 4c 61 6e 69 6e 20 3c 6c |ladimir |Lanin <l|
|000000d0| 61 6e 69 6e 40 63 73 64 | 34 2e 63 73 2e 6e 79 75 |anin@csd|4.cs.nyu|
|000000e0| 2e 65 64 75 3e 0a 50 6f | 73 74 69 6e 67 2d 6e 75 |.edu>.Po|sting-nu|
|000000f0| 6d 62 65 72 3a 20 56 6f | 6c 75 6d 65 20 32 31 2c |mber: Vo|lume 21,|
|00000100| 20 49 73 73 75 65 20 38 | 37 0a 41 72 63 68 69 76 | Issue 8|7.Archiv|
|00000110| 65 2d 6e 61 6d 65 3a 20 | 6d 6d 76 2f 70 61 72 74 |e-name: |mmv/part|
|00000120| 30 31 0a 0a 5b 20 20 49 | 20 75 73 65 20 72 65 6e |01..[ I| use ren|
|00000130| 2c 20 74 68 65 20 70 72 | 65 64 65 63 65 73 73 6f |, the pr|edecesso|
|00000140| 72 20 74 6f 20 6d 6d 76 | 2c 20 61 6c 6c 20 74 68 |r to mmv|, all th|
|00000150| 65 20 74 69 6d 65 2e 20 | 20 54 68 69 73 20 69 73 |e time. | This is|
|00000160| 20 65 76 65 6e 0a 20 20 | 20 62 65 74 74 65 72 21 | even. | better!|
|00000170| 20 20 2d 2d 72 24 20 20 | 5d 0a 0a 54 68 69 73 20 | --r$ |]..This |
|00000180| 69 73 20 6d 6d 76 2c 20 | 61 20 70 72 6f 67 72 61 |is mmv, |a progra|
|00000190| 6d 20 74 6f 20 6d 6f 76 | 65 2f 63 6f 70 79 2f 61 |m to mov|e/copy/a|
|000001a0| 70 70 65 6e 64 2f 6c 69 | 6e 6b 20 6d 75 6c 74 69 |ppend/li|nk multi|
|000001b0| 70 6c 65 20 66 69 6c 65 | 73 20 61 63 63 6f 72 64 |ple file|s accord|
|000001c0| 69 6e 67 0a 74 6f 20 61 | 20 73 65 74 20 6f 66 20 |ing.to a| set of |
|000001d0| 77 69 6c 64 63 61 72 64 | 20 70 61 74 74 65 72 6e |wildcard| pattern|
|000001e0| 73 2e 20 20 54 68 69 73 | 20 6d 75 6c 74 69 70 6c |s. This| multipl|
|000001f0| 65 20 61 63 74 69 6f 6e | 20 69 73 20 70 65 72 66 |e action| is perf|
|00000200| 6f 72 6d 65 64 20 73 61 | 66 65 6c 79 2c 0a 69 2e |ormed sa|fely,.i.|
|00000210| 65 2e 2c 20 77 69 74 68 | 6f 75 74 20 61 6e 79 20 |e., with|out any |
|00000220| 75 6e 65 78 70 65 63 74 | 65 64 20 64 65 6c 65 74 |unexpect|ed delet|
|00000230| 69 6f 6e 20 6f 66 20 66 | 69 6c 65 73 20 64 75 65 |ion of f|iles due|
|00000240| 20 74 6f 20 63 6f 6c 6c | 69 73 69 6f 6e 73 20 6f | to coll|isions o|
|00000250| 66 20 74 61 72 67 65 74 | 0a 6e 61 6d 65 73 20 77 |f target|.names w|
|00000260| 69 74 68 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ith exis|ting fil|
|00000270| 65 6e 61 6d 65 73 20 6f | 72 20 77 69 74 68 20 6f |enames o|r with o|
|00000280| 74 68 65 72 20 74 61 72 | 67 65 74 20 6e 61 6d 65 |ther tar|get name|
|00000290| 73 2e 20 20 46 75 72 74 | 68 65 72 6d 6f 72 65 2c |s. Furt|hermore,|
|000002a0| 0a 62 65 66 6f 72 65 20 | 64 6f 69 6e 67 20 61 6e |.before |doing an|
|000002b0| 79 74 68 69 6e 67 2c 20 | 6d 6d 76 20 61 74 74 65 |ything, |mmv atte|
|000002c0| 6d 70 74 73 20 74 6f 20 | 64 65 74 65 63 74 20 61 |mpts to |detect a|
|000002d0| 6e 79 20 65 72 72 6f 72 | 73 20 74 68 61 74 20 77 |ny error|s that w|
|000002e0| 6f 75 6c 64 20 72 65 73 | 75 6c 74 0a 66 72 6f 6d |ould res|ult.from|
|000002f0| 20 74 68 65 20 65 6e 74 | 69 72 65 20 73 65 74 20 | the ent|ire set |
|00000300| 6f 66 20 61 63 74 69 6f | 6e 73 20 73 70 65 63 69 |of actio|ns speci|
|00000310| 66 69 65 64 20 61 6e 64 | 20 67 69 76 65 73 20 74 |fied and| gives t|
|00000320| 68 65 20 75 73 65 72 20 | 74 68 65 20 63 68 6f 69 |he user |the choi|
|00000330| 63 65 20 6f 66 0a 65 69 | 74 68 65 72 20 61 62 6f |ce of.ei|ther abo|
|00000340| 72 74 69 6e 67 20 62 65 | 66 6f 72 65 20 62 65 67 |rting be|fore beg|
|00000350| 69 6e 6e 69 6e 67 2c 20 | 6f 72 20 70 72 6f 63 65 |inning, |or proce|
|00000360| 65 64 69 6e 67 20 62 79 | 20 61 76 6f 69 64 69 6e |eding by| avoidin|
|00000370| 67 20 74 68 65 20 6f 66 | 66 65 6e 64 69 6e 67 0a |g the of|fending.|
|00000380| 70 61 72 74 73 2e 0a 0a | 49 6d 70 72 6f 76 65 6d |parts...|Improvem|
|00000390| 65 6e 74 73 20 6f 76 65 | 72 20 6d 6d 76 27 73 20 |ents ove|r mmv's |
|000003a0| 70 72 65 64 65 63 65 73 | 73 6f 72 2c 20 72 65 6e |predeces|sor, ren|
|000003b0| 3a 0a 20 20 53 75 70 70 | 6f 72 74 20 66 6f 72 20 |:. Supp|ort for |
|000003c0| 42 53 44 2c 20 53 79 73 | 74 65 6d 20 35 2c 20 61 |BSD, Sys|tem 5, a|
|000003d0| 6e 64 20 4d 53 2d 44 4f | 53 0a 20 20 53 6f 75 72 |nd MS-DO|S. Sour|
|000003e0| 63 65 20 61 6e 64 20 74 | 61 72 67 65 74 20 66 69 |ce and t|arget fi|
|000003f0| 6c 65 73 20 6d 61 79 20 | 28 75 73 75 61 6c 6c 79 |les may |(usually|
|00000400| 29 20 72 65 73 69 64 65 | 20 69 6e 20 64 69 66 66 |) reside| in diff|
|00000410| 65 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 69 65 |erent di|rectorie|
|00000420| 73 0a 20 20 50 61 74 68 | 73 20 6d 61 79 20 63 6f |s. Path|s may co|
|00000430| 6e 74 61 69 6e 20 77 69 | 6c 64 63 61 72 64 73 0a |ntain wi|ldcards.|
|00000440| 20 20 53 75 70 70 6f 72 | 74 73 20 61 6c 6c 20 63 | Suppor|ts all c|
|00000450| 73 68 20 77 69 6c 64 63 | 61 72 64 73 3a 20 27 2a |sh wildc|ards: '*|
|00000460| 27 2c 20 27 3f 27 2c 20 | 27 5b 27 2e 2e 2e 27 5d |', '?', |'['...']|
|00000470| 27 2c 20 61 6e 64 20 27 | 7e 27 0a 20 20 54 68 65 |', and '|~'. The|
|00000480| 20 27 3b 27 20 77 69 6c | 64 63 61 72 64 20 66 69 | ';' wil|dcard fi|
|00000490| 6e 64 73 20 66 69 6c 65 | 73 20 61 74 20 61 6e 79 |nds file|s at any|
|000004a0| 20 6c 65 76 65 6c 20 69 | 6e 20 74 68 65 20 74 72 | level i|n the tr|
|000004b0| 65 65 0a 20 20 43 61 6e | 20 63 6f 70 79 2c 20 61 |ee. Can| copy, a|
|000004c0| 70 70 65 6e 64 2c 20 6f | 72 20 6c 69 6e 6b 20 69 |ppend, o|r link i|
|000004d0| 6e 73 74 65 61 64 20 6f | 66 20 6d 6f 76 69 6e 67 |nstead o|f moving|
|000004e0| 2f 72 65 6e 61 6d 69 6e | 67 0a 20 20 52 65 61 64 |/renamin|g. Read|
|000004f0| 73 20 6d 75 6c 74 69 70 | 6c 65 20 70 61 74 74 65 |s multip|le patte|
|00000500| 72 6e 73 20 66 72 6f 6d | 20 73 74 61 6e 64 61 72 |rns from| standar|
|00000510| 64 20 69 6e 70 75 74 20 | 28 6f 72 20 6f 6e 65 20 |d input |(or one |
|00000520| 66 72 6f 6d 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e |from com|mand lin|
|00000530| 65 29 0a 20 20 4e 6f 2d | 65 78 65 63 75 74 65 20 |e). No-|execute |
|00000540| 6f 70 74 69 6f 6e 20 28 | 77 68 6f 73 65 20 6f 75 |option (|whose ou|
|00000550| 74 70 75 74 20 63 61 6e | 20 62 65 20 66 65 64 20 |tput can| be fed |
|00000560| 62 61 63 6b 20 69 6e 20 | 6f 6e 20 73 74 61 6e 64 |back in |on stand|
|00000570| 61 72 64 20 69 6e 70 75 | 74 29 0a 0a 23 21 20 2f |ard inpu|t)..#! /|
|00000580| 62 69 6e 2f 73 68 0a 23 | 20 54 68 69 73 20 69 73 |bin/sh.#| This is|
|00000590| 20 61 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 | a shell| archive|
|000005a0| 2e 20 20 52 65 6d 6f 76 | 65 20 61 6e 79 74 68 69 |. Remov|e anythi|
|000005b0| 6e 67 20 62 65 66 6f 72 | 65 20 74 68 69 73 20 6c |ng befor|e this l|
|000005c0| 69 6e 65 2c 20 74 68 65 | 6e 20 75 6e 70 61 63 6b |ine, the|n unpack|
|000005d0| 0a 23 20 69 74 20 62 79 | 20 73 61 76 69 6e 67 20 |.# it by| saving |
|000005e0| 69 74 20 69 6e 74 6f 20 | 61 20 66 69 6c 65 20 61 |it into |a file a|
|000005f0| 6e 64 20 74 79 70 69 6e | 67 20 22 73 68 20 66 69 |nd typin|g "sh fi|
|00000600| 6c 65 22 2e 20 20 54 6f | 20 6f 76 65 72 77 72 69 |le". To| overwri|
|00000610| 74 65 20 65 78 69 73 74 | 69 6e 67 0a 23 20 66 69 |te exist|ing.# fi|
|00000620| 6c 65 73 2c 20 74 79 70 | 65 20 22 73 68 20 66 69 |les, typ|e "sh fi|
|00000630| 6c 65 20 2d 63 22 2e 20 | 20 59 6f 75 20 63 61 6e |le -c". | You can|
|00000640| 20 61 6c 73 6f 20 66 65 | 65 64 20 74 68 69 73 20 | also fe|ed this |
|00000650| 61 73 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |as stand|ard inpu|
|00000660| 74 20 76 69 61 0a 23 20 | 75 6e 73 68 61 72 2c 20 |t via.# |unshar, |
|00000670| 6f 72 20 62 79 20 74 79 | 70 69 6e 67 20 22 73 68 |or by ty|ping "sh|
|00000680| 20 3c 66 69 6c 65 22 2c | 20 65 2e 67 2e 2e 20 20 | <file",| e.g.. |
|00000690| 49 66 20 74 68 69 73 20 | 61 72 63 68 69 76 65 20 |If this |archive |
|000006a0| 69 73 20 63 6f 6d 70 6c | 65 74 65 2c 20 79 6f 75 |is compl|ete, you|
|000006b0| 0a 23 20 77 69 6c 6c 20 | 73 65 65 20 74 68 65 20 |.# will |see the |
|000006c0| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 73 73 61 67 |followin|g messag|
|000006d0| 65 20 61 74 20 74 68 65 | 20 65 6e 64 3a 0a 23 09 |e at the| end:.#.|
|000006e0| 09 22 45 6e 64 20 6f 66 | 20 61 72 63 68 69 76 65 |."End of| archive|
|000006f0| 20 31 20 28 6f 66 20 32 | 29 2e 22 0a 23 20 43 6f | 1 (of 2|).".# Co|
|00000700| 6e 74 65 6e 74 73 3a 20 | 20 4d 41 4e 49 46 45 53 |ntents: | MANIFES|
|00000710| 54 20 4d 61 6b 65 66 69 | 6c 65 20 50 41 43 4b 4e |T Makefi|le PACKN|
|00000720| 4f 54 45 53 20 61 6e 6e | 6f 75 6e 63 65 20 6d 6d |OTES ann|ounce mm|
|00000730| 76 2e 31 20 6d 6d 76 2e | 63 2e 32 0a 23 20 57 72 |v.1 mmv.|c.2.# Wr|
|00000740| 61 70 70 65 64 20 62 79 | 20 72 73 61 6c 7a 40 6c |apped by| rsalz@l|
|00000750| 69 74 63 68 69 2e 62 62 | 6e 2e 63 6f 6d 20 6f 6e |itchi.bb|n.com on|
|00000760| 20 4d 6f 6e 20 41 70 72 | 20 20 39 20 31 37 3a 30 | Mon Apr| 9 17:0|
|00000770| 35 3a 32 32 20 31 39 39 | 30 0a 50 41 54 48 3d 2f |5:22 199|0.PATH=/|
|00000780| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|00000790| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|000007a0| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |ATH.if t|est -f '|
|000007b0| 4d 41 4e 49 46 45 53 54 | 27 20 2d 61 20 22 24 7b |MANIFEST|' -a "${|
|000007c0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|000007d0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|000007e0| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|000007f0| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00000800| 5c 22 27 4d 41 4e 49 46 | 45 53 54 27 5c 22 0a 65 |\"'MANIF|EST'\".e|
|00000810| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00000820| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 4d 41 4e |xtractin|g \"'MAN|
|00000830| 49 46 45 53 54 27 5c 22 | 20 5c 28 33 35 39 20 63 |IFEST'\"| \(359 c|
|00000840| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00000850| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 4d 41 4e 49 46 |"s/^X//"| >'MANIF|
|00000860| 45 53 54 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |EST' <<'|END_OF_F|
|00000870| 49 4c 45 27 0a 58 20 20 | 20 46 69 6c 65 20 4e 61 |ILE'.X | File Na|
|00000880| 6d 65 09 09 41 72 63 68 | 69 76 65 20 23 09 44 65 |me..Arch|ive #.De|
|00000890| 73 63 72 69 70 74 69 6f | 6e 0a 58 2d 2d 2d 2d 2d |scriptio|n.X-----|
|000008a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008d0| 2d 2d 2d 2d 2d 2d 0a 58 | 20 4d 41 4e 49 46 45 53 |------.X| MANIFES|
|000008e0| 54 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |T | |
|000008f0| 20 20 20 20 31 09 0a 58 | 20 4d 61 6b 65 66 69 6c | 1..X| Makefil|
|00000900| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00000910| 20 20 20 20 31 09 0a 58 | 20 50 41 43 4b 4e 4f 54 | 1..X| PACKNOT|
|00000920| 45 53 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ES | |
|00000930| 20 20 20 20 31 09 57 61 | 72 6e 69 6e 67 73 20 61 | 1.Wa|rnings a|
|00000940| 62 6f 75 74 20 6c 6f 6e | 67 20 6c 69 6e 65 73 2c |bout lon|g lines,|
|00000950| 20 65 74 63 0a 58 20 61 | 6e 6e 6f 75 6e 63 65 20 | etc.X a|nnounce |
|00000960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000970| 20 20 31 09 0a 58 20 6d | 6d 76 2e 31 20 20 20 20 | 1..X m|mv.1 |
|00000980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000990| 20 20 31 09 0a 58 20 6d | 6d 76 2e 63 2e 31 20 20 | 1..X m|mv.c.1 |
|000009a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000009b0| 20 20 32 09 28 70 61 72 | 74 20 31 29 0a 58 20 6d | 2.(par|t 1).X m|
|000009c0| 6d 76 2e 63 2e 32 20 20 | 20 20 20 20 20 20 20 20 |mv.c.2 | |
|000009d0| 20 20 20 20 20 20 20 20 | 20 20 31 09 28 70 61 72 | | 1.(par|
|000009e0| 74 20 32 29 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |t 2).END|_OF_FILE|
|000009f0| 0a 69 66 20 74 65 73 74 | 20 33 35 39 20 2d 6e 65 |.if test| 359 -ne|
|00000a00| 20 60 77 63 20 2d 63 20 | 3c 27 4d 41 4e 49 46 45 | `wc -c |<'MANIFE|
|00000a10| 53 54 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |ST'`; th|en. e|
|00000a20| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 4d 41 4e |cho shar|: \"'MAN|
|00000a30| 49 46 45 53 54 27 5c 22 | 20 75 6e 70 61 63 6b 65 |IFEST'\"| unpacke|
|00000a40| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00000a50| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|00000a60| 4d 41 4e 49 46 45 53 54 | 27 0a 66 69 0a 69 66 20 |MANIFEST|'.fi.if |
|00000a70| 74 65 73 74 20 2d 66 20 | 27 4d 61 6b 65 66 69 6c |test -f |'Makefil|
|00000a80| 65 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |e' -a "$|{1}" != |
|00000a90| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00000aa0| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00000ab0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00000ac0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 4d 61 6b 65 |ing file| \"'Make|
|00000ad0| 66 69 6c 65 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |file'\".|else.ech|
|00000ae0| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00000af0| 6e 67 20 5c 22 27 4d 61 | 6b 65 66 69 6c 65 27 5c |ng \"'Ma|kefile'\|
|00000b00| 22 20 5c 28 32 38 31 20 | 63 68 61 72 61 63 74 65 |" \(281 |characte|
|00000b10| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00000b20| 22 20 3e 27 4d 61 6b 65 | 66 69 6c 65 27 20 3c 3c |" >'Make|file' <<|
|00000b30| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 61 |'END_OF_|FILE'.Xa|
|00000b40| 6c 6c 3a 09 6d 6d 76 20 | 6d 6d 76 2e 31 0a 58 0a |ll:.mmv |mmv.1.X.|
|00000b50| 58 6d 6d 76 3a 09 6d 6d | 76 2e 63 0a 58 09 24 28 |Xmmv:.mm|v.c.X.$(|
|00000b60| 43 43 29 20 2d 6f 20 6d | 6d 76 20 24 28 43 46 4c |CC) -o m|mv $(CFL|
|00000b70| 41 47 53 29 20 6d 6d 76 | 2e 63 0a 58 69 6e 73 74 |AGS) mmv|.c.Xinst|
|00000b80| 61 6c 6c 3a 09 61 6c 6c | 0a 58 09 40 65 63 68 6f |all:.all|.X.@echo|
|00000b90| 20 22 49 6e 73 74 61 6c | 6c 20 6d 6d 76 20 61 63 | "Instal|l mmv ac|
|00000ba0| 63 6f 72 64 69 6e 67 20 | 74 6f 20 6c 6f 63 61 6c |cording |to local|
|00000bb0| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 2c 22 0a 58 09 | convent|ion,".X.|
|00000bc0| 40 65 63 68 6f 20 22 74 | 68 65 6e 20 6d 61 6b 65 |@echo "t|hen make|
|00000bd0| 20 6c 69 6e 6b 73 20 6e | 61 6d 65 64 20 6d 63 70 | links n|amed mcp|
|00000be0| 2c 20 6d 61 64 2c 20 61 | 6e 64 20 6d 6c 6e 20 74 |, mad, a|nd mln t|
|00000bf0| 6f 20 6d 6d 76 2e 22 0a | 58 09 40 65 63 68 6f 20 |o mmv.".|X.@echo |
|00000c00| 22 55 6e 64 65 72 20 53 | 79 73 74 65 6d 20 56 2c |"Under S|ystem V,|
|00000c10| 20 65 64 69 74 20 6d 6d | 76 2e 31 20 74 6f 20 75 | edit mm|v.1 to u|
|00000c20| 6e 63 6f 6d 6d 65 6e 74 | 20 74 68 65 20 2e 6e 72 |ncomment| the .nr|
|00000c30| 20 4f 20 31 20 6c 69 6e | 65 2e 22 0a 58 63 6c 65 | O 1 lin|e.".Xcle|
|00000c40| 61 6e 3a 0a 58 09 72 6d | 20 2d 66 20 63 6f 72 65 |an:.X.rm| -f core|
|00000c50| 20 61 2e 6f 75 74 20 6d | 6d 76 20 6d 6d 76 2e 6f | a.out m|mv mmv.o|
|00000c60| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|00000c70| 74 65 73 74 20 32 38 31 | 20 2d 6e 65 20 60 77 63 |test 281| -ne `wc|
|00000c80| 20 2d 63 20 3c 27 4d 61 | 6b 65 66 69 6c 65 27 60 | -c <'Ma|kefile'`|
|00000c90| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00000ca0| 73 68 61 72 3a 20 5c 22 | 27 4d 61 6b 65 66 69 6c |shar: \"|'Makefil|
|00000cb0| 65 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |e'\" unp|acked wi|
|00000cc0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00000cd0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 4d 61 6b 65 |i.# end |of 'Make|
|00000ce0| 66 69 6c 65 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |file'.fi|.if test|
|00000cf0| 20 2d 66 20 27 50 41 43 | 4b 4e 4f 54 45 53 27 20 | -f 'PAC|KNOTES' |
|00000d00| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00000d10| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00000d20| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00000d30| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00000d40| 20 66 69 6c 65 20 5c 22 | 27 50 41 43 4b 4e 4f 54 | file \"|'PACKNOT|
|00000d50| 45 53 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |ES'\".el|se.echo |
|00000d60| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000d70| 20 5c 22 27 50 41 43 4b | 4e 4f 54 45 53 27 5c 22 | \"'PACK|NOTES'\"|
|00000d80| 20 5c 28 38 32 20 63 68 | 61 72 61 63 74 65 72 73 | \(82 ch|aracters|
|00000d90| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00000da0| 3e 27 50 41 43 4b 4e 4f | 54 45 53 27 20 3c 3c 27 |>'PACKNO|TES' <<'|
|00000db0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 0a 58 |END_OF_F|ILE'.X.X|
|00000dc0| 46 69 6c 65 20 22 6d 6d | 76 2e 63 22 20 77 61 73 |File "mm|v.c" was|
|00000dd0| 20 73 70 6c 69 74 20 62 | 65 63 61 75 73 65 20 6f | split b|ecause o|
|00000de0| 66 20 69 74 73 20 73 69 | 7a 65 3b 20 74 6f 20 63 |f its si|ze; to c|
|00000df0| 72 65 61 74 65 20 69 74 | 2c 20 64 6f 0a 58 09 63 |reate it|, do.X.c|
|00000e00| 61 74 20 6d 6d 76 2e 63 | 2e 3f 20 3e 6d 6d 76 2e |at mmv.c|.? >mmv.|
|00000e10| 63 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |c.END_OF|_FILE.if|
|00000e20| 20 74 65 73 74 20 38 32 | 20 2d 6e 65 20 60 77 63 | test 82| -ne `wc|
|00000e30| 20 2d 63 20 3c 27 50 41 | 43 4b 4e 4f 54 45 53 27 | -c <'PA|CKNOTES'|
|00000e40| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00000e50| 20 73 68 61 72 3a 20 5c | 22 27 50 41 43 4b 4e 4f | shar: \|"'PACKNO|
|00000e60| 54 45 53 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |TES'\" u|npacked |
|00000e70| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00000e80| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 50 41 |.fi.# en|d of 'PA|
|00000e90| 43 4b 4e 4f 54 45 53 27 | 0a 66 69 0a 69 66 20 74 |CKNOTES'|.fi.if t|
|00000ea0| 65 73 74 20 2d 66 20 27 | 61 6e 6e 6f 75 6e 63 65 |est -f '|announce|
|00000eb0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00000ec0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00000ed0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00000ee0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00000ef0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 61 6e 6e 6f 75 |ng file |\"'annou|
|00000f00| 6e 63 65 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |nce'\".e|lse.echo|
|00000f10| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00000f20| 67 20 5c 22 27 61 6e 6e | 6f 75 6e 63 65 27 5c 22 |g \"'ann|ounce'\"|
|00000f30| 20 5c 28 31 35 38 38 20 | 63 68 61 72 61 63 74 65 | \(1588 |characte|
|00000f40| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00000f50| 22 20 3e 27 61 6e 6e 6f | 75 6e 63 65 27 20 3c 3c |" >'anno|unce' <<|
|00000f60| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 43 |'END_OF_|FILE'.XC|
|00000f70| 6f 70 79 72 69 67 68 74 | 20 28 63 29 20 31 39 38 |opyright| (c) 198|
|00000f80| 39 20 56 6c 61 64 69 6d | 69 72 20 4c 61 6e 69 6e |9 Vladim|ir Lanin|
|00000f90| 0a 58 0a 58 54 68 69 73 | 20 69 73 20 6d 6d 76 2c |.X.XThis| is mmv,|
|00000fa0| 20 61 20 70 72 6f 67 72 | 61 6d 20 74 6f 20 6d 6f | a progr|am to mo|
|00000fb0| 76 65 2f 63 6f 70 79 2f | 61 70 70 65 6e 64 2f 6c |ve/copy/|append/l|
|00000fc0| 69 6e 6b 20 6d 75 6c 74 | 69 70 6c 65 20 66 69 6c |ink mult|iple fil|
|00000fd0| 65 73 0a 58 61 63 63 6f | 72 64 69 6e 67 20 74 6f |es.Xacco|rding to|
|00000fe0| 20 61 20 73 65 74 20 6f | 66 20 77 69 6c 64 63 61 | a set o|f wildca|
|00000ff0| 72 64 20 70 61 74 74 65 | 72 6e 73 2e 20 54 68 69 |rd patte|rns. Thi|
|00001000| 73 20 6d 75 6c 74 69 70 | 6c 65 20 61 63 74 69 6f |s multip|le actio|
|00001010| 6e 20 69 73 0a 58 70 65 | 72 66 6f 72 6d 65 64 20 |n is.Xpe|rformed |
|00001020| 73 61 66 65 6c 79 2c 20 | 69 2e 65 2e 20 77 69 74 |safely, |i.e. wit|
|00001030| 68 6f 75 74 20 61 6e 79 | 20 75 6e 65 78 70 65 63 |hout any| unexpec|
|00001040| 74 65 64 20 64 65 6c 65 | 74 69 6f 6e 20 6f 66 20 |ted dele|tion of |
|00001050| 66 69 6c 65 73 20 64 75 | 65 20 74 6f 0a 58 63 6f |files du|e to.Xco|
|00001060| 6c 6c 69 73 69 6f 6e 73 | 20 6f 66 20 74 61 72 67 |llisions| of targ|
|00001070| 65 74 20 6e 61 6d 65 73 | 20 77 69 74 68 20 65 78 |et names| with ex|
|00001080| 69 73 74 69 6e 67 20 66 | 69 6c 65 6e 61 6d 65 73 |isting f|ilenames|
|00001090| 20 6f 72 20 77 69 74 68 | 20 6f 74 68 65 72 0a 58 | or with| other.X|
|000010a0| 74 61 72 67 65 74 20 6e | 61 6d 65 73 2e 20 46 75 |target n|ames. Fu|
|000010b0| 72 74 68 65 72 6d 6f 72 | 65 2c 20 62 65 66 6f 72 |rthermor|e, befor|
|000010c0| 65 20 64 6f 69 6e 67 20 | 61 6e 79 74 68 69 6e 67 |e doing |anything|
|000010d0| 2c 20 6d 6d 76 20 61 74 | 74 65 6d 70 74 73 20 74 |, mmv at|tempts t|
|000010e0| 6f 0a 58 64 65 74 65 63 | 74 20 61 6e 79 20 65 72 |o.Xdetec|t any er|
|000010f0| 72 6f 72 73 20 74 68 61 | 74 20 77 6f 75 6c 64 20 |rors tha|t would |
|00001100| 72 65 73 75 6c 74 20 66 | 72 6f 6d 20 74 68 65 20 |result f|rom the |
|00001110| 65 6e 74 69 72 65 20 73 | 65 74 20 6f 66 20 61 63 |entire s|et of ac|
|00001120| 74 69 6f 6e 73 0a 58 73 | 70 65 63 69 66 69 65 64 |tions.Xs|pecified|
|00001130| 20 61 6e 64 20 67 69 76 | 65 73 20 74 68 65 20 75 | and giv|es the u|
|00001140| 73 65 72 20 74 68 65 20 | 63 68 6f 69 63 65 20 6f |ser the |choice o|
|00001150| 66 20 65 69 74 68 65 72 | 20 61 62 6f 72 74 69 6e |f either| abortin|
|00001160| 67 20 62 65 66 6f 72 65 | 0a 58 62 65 67 69 6e 6e |g before|.Xbeginn|
|00001170| 69 6e 67 2c 20 6f 72 20 | 70 72 6f 63 65 65 64 69 |ing, or |proceedi|
|00001180| 6e 67 20 62 79 20 61 76 | 6f 69 64 69 6e 67 20 74 |ng by av|oiding t|
|00001190| 68 65 20 6f 66 66 65 6e | 64 69 6e 67 20 70 61 72 |he offen|ding par|
|000011a0| 74 73 2e 0a 58 0a 58 49 | 6d 70 72 6f 76 65 6d 65 |ts..X.XI|mproveme|
|000011b0| 6e 74 73 20 6f 76 65 72 | 20 6d 6d 76 27 73 20 70 |nts over| mmv's p|
|000011c0| 72 65 64 65 63 65 73 73 | 6f 72 2c 20 72 65 6e 3a |redecess|or, ren:|
|000011d0| 0a 58 0a 58 2e 20 73 75 | 70 70 6f 72 74 20 66 6f |.X.X. su|pport fo|
|000011e0| 72 20 42 53 44 2c 20 53 | 79 73 74 65 6d 20 35 2c |r BSD, S|ystem 5,|
|000011f0| 20 61 6e 64 20 4d 53 2d | 44 4f 53 0a 58 0a 58 2e | and MS-|DOS.X.X.|
|00001200| 20 73 6f 75 72 63 65 20 | 61 6e 64 20 74 61 72 67 | source |and targ|
|00001210| 65 74 20 66 69 6c 65 73 | 20 6d 61 79 20 28 75 73 |et files| may (us|
|00001220| 75 61 6c 6c 79 29 20 72 | 65 73 69 64 65 20 69 6e |ually) r|eside in|
|00001230| 20 64 69 66 66 65 72 65 | 6e 74 20 64 69 72 65 63 | differe|nt direc|
|00001240| 74 6f 72 69 65 73 0a 58 | 0a 58 2e 20 70 61 74 68 |tories.X|.X. path|
|00001250| 73 20 6d 61 79 20 63 6f | 6e 74 61 69 6e 20 77 69 |s may co|ntain wi|
|00001260| 6c 64 63 61 72 64 73 0a | 58 0a 58 2e 20 73 75 70 |ldcards.|X.X. sup|
|00001270| 70 6f 72 74 73 20 61 6c | 6c 20 63 73 68 20 77 69 |ports al|l csh wi|
|00001280| 6c 64 63 61 72 64 73 3a | 20 27 2a 27 2c 20 27 3f |ldcards:| '*', '?|
|00001290| 27 2c 20 27 5b 27 2e 2e | 2e 27 5d 27 2c 20 61 6e |', '['..|.']', an|
|000012a0| 64 20 27 7e 27 0a 58 0a | 58 2e 20 74 68 65 20 27 |d '~'.X.|X. the '|
|000012b0| 3b 27 20 77 69 6c 64 63 | 61 72 64 20 66 69 6e 64 |;' wildc|ard find|
|000012c0| 73 20 66 69 6c 65 73 20 | 61 74 20 61 6e 79 20 6c |s files |at any l|
|000012d0| 65 76 65 6c 20 69 6e 20 | 74 68 65 20 74 72 65 65 |evel in |the tree|
|000012e0| 0a 58 0a 58 2e 20 63 61 | 6e 20 63 6f 70 79 2c 20 |.X.X. ca|n copy, |
|000012f0| 61 70 70 65 6e 64 2c 20 | 6f 72 20 6c 69 6e 6b 20 |append, |or link |
|00001300| 69 6e 73 74 65 61 64 20 | 6f 66 20 6d 6f 76 69 6e |instead |of movin|
|00001310| 67 2f 72 65 6e 61 6d 69 | 6e 67 0a 58 0a 58 2e 20 |g/renami|ng.X.X. |
|00001320| 72 65 61 64 73 20 6d 75 | 6c 74 69 70 6c 65 20 70 |reads mu|ltiple p|
|00001330| 61 74 74 65 72 6e 73 20 | 66 72 6f 6d 20 73 74 61 |atterns |from sta|
|00001340| 6e 64 61 72 64 20 69 6e | 70 75 74 20 28 6f 72 20 |ndard in|put (or |
|00001350| 6f 6e 65 20 66 72 6f 6d | 20 63 6f 6d 6d 61 6e 64 |one from| command|
|00001360| 20 6c 69 6e 65 29 0a 58 | 0a 58 2e 20 6e 6f 2d 65 | line).X|.X. no-e|
|00001370| 78 65 63 75 74 65 20 6f | 70 74 69 6f 6e 20 28 77 |xecute o|ption (w|
|00001380| 68 6f 73 65 20 6f 75 74 | 70 75 74 20 63 61 6e 20 |hose out|put can |
|00001390| 62 65 20 66 65 64 20 62 | 61 63 6b 20 69 6e 20 6f |be fed b|ack in o|
|000013a0| 6e 20 73 74 61 6e 64 61 | 72 64 20 69 6e 70 75 74 |n standa|rd input|
|000013b0| 29 0a 58 0a 58 4e 6f 74 | 65 20 74 6f 20 75 73 65 |).X.XNot|e to use|
|000013c0| 72 73 20 66 61 6d 69 6c | 69 61 72 20 77 69 74 68 |rs famil|iar with|
|000013d0| 20 72 65 6e 3a 20 74 68 | 65 20 2d 61 20 61 6e 64 | ren: th|e -a and|
|000013e0| 20 2d 6b 20 6f 70 74 69 | 6f 6e 73 20 68 61 76 65 | -k opti|ons have|
|000013f0| 20 62 65 65 6e 20 72 65 | 6e 61 6d 65 64 0a 58 74 | been re|named.Xt|
|00001400| 6f 20 2d 74 20 61 6e 64 | 20 2d 67 2c 20 72 65 73 |o -t and| -g, res|
|00001410| 70 65 63 74 69 76 65 6c | 79 2c 20 61 6e 64 20 74 |pectivel|y, and t|
|00001420| 68 65 69 72 20 73 65 6d | 61 6e 74 69 63 73 20 68 |heir sem|antics h|
|00001430| 61 76 65 20 73 6f 6d 65 | 77 68 61 74 20 63 68 61 |ave some|what cha|
|00001440| 6e 67 65 64 2e 0a 58 0a | 58 0a 58 4d 6d 76 20 69 |nged..X.|X.XMmv i|
|00001450| 73 20 66 72 65 65 77 61 | 72 65 2e 20 54 68 61 74 |s freewa|re. That|
|00001460| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 74 68 65 20 | means t|hat the |
|00001470| 65 6e 74 69 72 65 20 70 | 61 63 6b 61 67 65 20 6f |entire p|ackage o|
|00001480| 66 20 73 6f 66 74 77 61 | 72 65 20 61 6e 64 0a 58 |f softwa|re and.X|
|00001490| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 69 73 |document|ation is|
|000014a0| 20 63 6f 70 79 72 69 67 | 68 74 65 64 2c 20 61 6e | copyrig|hted, an|
|000014b0| 64 20 6d 61 79 20 6e 6f | 74 20 62 65 20 64 69 73 |d may no|t be dis|
|000014c0| 74 72 69 62 75 74 65 64 | 20 77 69 74 68 20 61 6e |tributed| with an|
|000014d0| 79 0a 58 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 73 |y.Xmodif|ications|
|000014e0| 20 6f 72 20 66 6f 72 20 | 61 6e 79 20 63 68 61 72 | or for |any char|
|000014f0| 67 65 20 28 77 69 74 68 | 6f 75 74 20 74 68 65 20 |ge (with|out the |
|00001500| 61 75 74 68 6f 72 27 73 | 20 65 78 70 6c 69 63 69 |author's| explici|
|00001510| 74 20 77 72 69 74 74 65 | 6e 0a 58 70 65 72 6d 69 |t writte|n.Xpermi|
|00001520| 73 73 69 6f 6e 29 2e 20 | 4f 74 68 65 72 20 74 68 |ssion). |Other th|
|00001530| 61 6e 20 74 68 61 74 2c | 20 69 74 20 6d 61 79 20 |an that,| it may |
|00001540| 62 65 20 75 73 65 64 20 | 61 6e 64 20 64 69 73 74 |be used |and dist|
|00001550| 72 69 62 75 74 65 64 20 | 66 72 65 65 6c 79 2e 0a |ributed |freely..|
|00001560| 58 0a 58 0a 58 56 6c 61 | 64 69 6d 69 72 20 4c 61 |X.X.XVla|dimir La|
|00001570| 6e 69 6e 0a 58 33 33 30 | 20 57 61 64 73 77 6f 72 |nin.X330| Wadswor|
|00001580| 74 68 20 41 76 65 2c 20 | 41 70 74 20 36 46 0a 58 |th Ave, |Apt 6F.X|
|00001590| 4e 65 77 20 59 6f 72 6b | 2c 20 4e 59 20 31 30 30 |New York|, NY 100|
|000015a0| 34 30 0a 58 0a 58 6c 61 | 6e 69 6e 40 63 73 64 32 |40.X.Xla|nin@csd2|
|000015b0| 2e 6e 79 75 2e 65 64 75 | 0a 58 2e 2e 2e 21 63 6d |.nyu.edu|.X...!cm|
|000015c0| 63 6c 32 21 63 73 64 32 | 21 6c 61 6e 69 6e 0a 45 |cl2!csd2|!lanin.E|
|000015d0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|000015e0| 73 74 20 31 35 38 38 20 | 2d 6e 65 20 60 77 63 20 |st 1588 |-ne `wc |
|000015f0| 2d 63 20 3c 27 61 6e 6e | 6f 75 6e 63 65 27 60 3b |-c <'ann|ounce'`;|
|00001600| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00001610| 68 61 72 3a 20 5c 22 27 | 61 6e 6e 6f 75 6e 63 65 |har: \"'|announce|
|00001620| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00001630| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00001640| 0a 23 20 65 6e 64 20 6f | 66 20 27 61 6e 6e 6f 75 |.# end o|f 'annou|
|00001650| 6e 63 65 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |nce'.fi.|if test |
|00001660| 2d 66 20 27 6d 6d 76 2e | 31 27 20 2d 61 20 22 24 |-f 'mmv.|1' -a "$|
|00001670| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00001680| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00001690| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|000016a0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|000016b0| 20 5c 22 27 6d 6d 76 2e | 31 27 5c 22 0a 65 6c 73 | \"'mmv.|1'\".els|
|000016c0| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|000016d0| 72 61 63 74 69 6e 67 20 | 5c 22 27 6d 6d 76 2e 31 |racting |\"'mmv.1|
|000016e0| 27 5c 22 20 5c 28 31 37 | 30 39 31 20 63 68 61 72 |'\" \(17|091 char|
|000016f0| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00001700| 5e 58 2f 2f 22 20 3e 27 | 6d 6d 76 2e 31 27 20 3c |^X//" >'|mmv.1' <|
|00001710| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00001720| 2e 5c 22 20 55 6e 64 65 | 72 20 42 53 44 2c 20 6a |.\" Unde|r BSD, j|
|00001730| 75 73 74 20 67 69 76 65 | 20 74 6f 20 6e 72 6f 66 |ust give| to nrof|
|00001740| 66 20 6f 72 20 74 72 6f | 66 66 20 28 77 69 74 68 |f or tro|ff (with|
|00001750| 20 2d 6d 61 6e 29 2e 0a | 58 2e 5c 22 20 54 6f 20 | -man)..|X.\" To |
|00001760| 70 72 69 6e 74 20 74 68 | 65 20 4d 53 2d 44 4f 53 |print th|e MS-DOS|
|00001770| 20 76 65 72 73 69 6f 6e | 2c 20 75 73 65 20 6f 70 | version|, use op|
|00001780| 74 69 6f 6e 20 2d 72 4f | 32 2e 0a 58 2e 5c 22 20 |tion -rO|2..X.\" |
|00001790| 55 6e 64 65 72 20 53 79 | 73 74 65 6d 20 56 2c 20 |Under Sy|stem V, |
|000017a0| 74 61 6b 65 20 6f 75 74 | 20 74 68 65 20 27 2e 5c |take out| the '.\|
|000017b0| 22 20 20 27 20 66 72 6f | 6d 20 74 68 65 20 6e 65 |" ' fro|m the ne|
|000017c0| 78 74 20 6c 69 6e 65 2e | 0a 58 2e 5c 22 20 2e 6e |xt line.|.X.\" .n|
|000017d0| 72 20 4f 20 31 0a 58 2e | 54 48 20 4d 4d 56 20 31 |r O 1.X.|TH MMV 1|
|000017e0| 20 22 4e 6f 76 65 6d 62 | 65 72 20 32 30 2c 20 31 | "Novemb|er 20, 1|
|000017f0| 39 38 39 20 28 76 31 2e | 30 29 22 0a 58 2e 69 65 |989 (v1.|0)".X.ie|
|00001800| 20 21 27 5c 6e 4f 27 32 | 27 20 5c 7b 5c 0a 58 2e | !'\nO'2|' \{\.X.|
|00001810| 53 48 20 4e 41 4d 45 0a | 58 6d 6d 76 20 5c 2d 20 |SH NAME.|Xmmv \- |
|00001820| 6d 6f 76 65 2f 63 6f 70 | 79 2f 61 70 70 65 6e 64 |move/cop|y/append|
|00001830| 2f 6c 69 6e 6b 20 6d 75 | 6c 74 69 70 6c 65 20 66 |/link mu|ltiple f|
|00001840| 69 6c 65 73 20 62 79 20 | 77 69 6c 64 63 61 72 64 |iles by |wildcard|
|00001850| 20 70 61 74 74 65 72 6e | 73 0a 58 5c 7d 0a 58 2e | pattern|s.X\}.X.|
|00001860| 65 6c 20 5c 7b 0a 58 2e | 53 48 20 4e 41 4d 45 0a |el \{.X.|SH NAME.|
|00001870| 58 6d 6d 76 20 5c 2d 20 | 6d 6f 76 65 2f 63 6f 70 |Xmmv \- |move/cop|
|00001880| 79 2f 61 70 70 65 6e 64 | 20 6d 75 6c 74 69 70 6c |y/append| multipl|
|00001890| 65 20 66 69 6c 65 73 20 | 62 79 20 77 69 6c 64 63 |e files |by wildc|
|000018a0| 61 72 64 20 70 61 74 74 | 65 72 6e 73 0a 58 5c 7d |ard patt|erns.X\}|
|000018b0| 0a 58 2e 69 65 20 27 5c | 6e 4f 27 32 27 20 5c 7b |.X.ie '\|nO'2' \{|
|000018c0| 5c 0a 58 2e 64 73 20 53 | 4c 20 5c 5c 5c 5c 0a 58 |\.X.ds S|L \\\\.X|
|000018d0| 2e 64 73 20 45 53 20 27 | 0a 58 5c 7d 0a 58 2e 65 |.ds ES '|.X\}.X.e|
|000018e0| 6c 20 5c 7b 5c 0a 58 2e | 64 73 20 53 4c 20 2f 0a |l \{\.X.|ds SL /.|
|000018f0| 58 2e 64 73 20 45 53 20 | 5c 5c 5c 5c 0a 58 5c 7d |X.ds ES |\\\\.X\}|
|00001900| 0a 58 2e 53 48 20 53 59 | 4e 4f 50 53 49 53 0a 58 |.X.SH SY|NOPSIS.X|
|00001910| 2e 42 20 6d 6d 76 0a 58 | 2e 69 66 20 27 5c 6e 4f |.B mmv.X|.if '\nO|
|00001920| 27 32 27 20 5b 5c 66 42 | 2d 6d 5c 66 50 7c 5c 66 |'2' [\fB|-m\fP|\f|
|00001930| 42 78 5c 66 50 7c 5c 66 | 42 72 5c 66 50 7c 5c 66 |Bx\fP|\f|Br\fP|\f|
|00001940| 42 63 5c 66 50 7c 5c 66 | 42 6f 5c 66 50 7c 5c 66 |Bc\fP|\f|Bo\fP|\f|
|00001950| 42 61 5c 66 50 7c 5c 66 | 42 7a 5c 66 50 5d 0a 58 |Ba\fP|\f|Bz\fP].X|
|00001960| 2e 69 66 20 27 5c 6e 4f | 27 30 27 20 5b 5c 66 42 |.if '\nO|'0' [\fB|
|00001970| 2d 6d 5c 66 50 7c 5c 66 | 42 78 5c 66 50 7c 5c 66 |-m\fP|\f|Bx\fP|\f|
|00001980| 42 72 5c 66 50 7c 5c 66 | 42 63 5c 66 50 7c 5c 66 |Br\fP|\f|Bc\fP|\f|
|00001990| 42 6f 5c 66 50 7c 5c 66 | 42 61 5c 66 50 7c 5c 66 |Bo\fP|\f|Ba\fP|\f|
|000019a0| 42 6c 5c 66 50 7c 5c 66 | 42 73 5c 66 50 5d 0a 58 |Bl\fP|\f|Bs\fP].X|
|000019b0| 2e 69 66 20 27 5c 6e 4f | 27 31 27 20 5b 5c 66 42 |.if '\nO|'1' [\fB|
|000019c0| 2d 6d 5c 66 50 7c 5c 66 | 42 78 5c 66 50 7c 5c 66 |-m\fP|\f|Bx\fP|\f|
|000019d0| 42 72 5c 66 50 7c 5c 66 | 42 63 5c 66 50 7c 5c 66 |Br\fP|\f|Bc\fP|\f|
|000019e0| 42 6f 5c 66 50 7c 5c 66 | 42 61 5c 66 50 7c 5c 66 |Bo\fP|\f|Ba\fP|\f|
|000019f0| 42 6c 5c 66 50 5d 0a 58 | 5b 5c 66 42 2d 68 5c 66 |Bl\fP].X|[\fB-h\f|
|00001a00| 50 5d 0a 58 5b 5c 66 42 | 2d 64 5c 66 50 7c 5c 66 |P].X[\fB|-d\fP|\f|
|00001a10| 42 70 5c 66 50 5d 0a 58 | 5b 5c 66 42 2d 67 5c 66 |Bp\fP].X|[\fB-g\f|
|00001a20| 50 7c 5c 66 42 74 5c 66 | 50 5d 0a 58 5b 5c 66 42 |P|\fBt\f|P].X[\fB|
|00001a30| 2d 76 5c 66 50 7c 5c 66 | 42 6e 5c 66 50 5d 0a 58 |-v\fP|\f|Bn\fP].X|
|00001a40| 5b 5c 66 42 66 72 6f 6d | 20 74 6f 5c 66 50 5d 0a |[\fBfrom| to\fP].|
|00001a50| 58 2e 69 66 20 27 5c 6e | 4f 27 32 27 20 5c 7b 5c |X.if '\n|O'2' \{\|
|00001a60| 0a 58 2e 62 72 0a 58 2e | 42 20 6d 6d 76 70 61 74 |.X.br.X.|B mmvpat|
|00001a70| 63 68 0a 58 5b 5c 66 42 | 65 78 65 63 75 74 61 62 |ch.X[\fB|executab|
|00001a80| 6c 65 5c 66 50 5d 0a 58 | 5c 7d 0a 58 2e 53 48 20 |le\fP].X|\}.X.SH |
|00001a90| 22 44 45 53 43 52 49 50 | 54 49 4f 4e 22 0a 58 2e |"DESCRIP|TION".X.|
|00001aa0| 49 20 4d 6d 76 0a 58 6d | 6f 76 65 73 20 28 6f 72 |I Mmv.Xm|oves (or|
|00001ab0| 20 63 6f 70 69 65 73 2c | 0a 58 2e 69 65 20 27 5c | copies,|.X.ie '\|
|00001ac0| 6e 4f 27 32 27 20 6f 72 | 20 61 70 70 65 6e 64 73 |nO'2' or| appends|
|00001ad0| 2c 0a 58 2e 65 6c 20 61 | 70 70 65 6e 64 73 2c 20 |,.X.el a|ppends, |
|00001ae0| 6f 72 20 6c 69 6e 6b 73 | 2c 0a 58 61 73 20 73 70 |or links|,.Xas sp|
|00001af0| 65 63 69 66 69 65 64 29 | 0a 58 65 61 63 68 20 73 |ecified)|.Xeach s|
|00001b00| 6f 75 72 63 65 20 66 69 | 6c 65 20 6d 61 74 63 68 |ource fi|le match|
|00001b10| 69 6e 67 20 61 0a 58 2e | 49 20 66 72 6f 6d 0a 58 |ing a.X.|I from.X|
|00001b20| 70 61 74 74 65 72 6e 20 | 74 6f 20 74 68 65 20 74 |pattern |to the t|
|00001b30| 61 72 67 65 74 20 6e 61 | 6d 65 20 73 70 65 63 69 |arget na|me speci|
|00001b40| 66 69 65 64 20 62 79 20 | 74 68 65 0a 58 2e 49 20 |fied by |the.X.I |
|00001b50| 74 6f 0a 58 70 61 74 74 | 65 72 6e 2e 0a 58 54 68 |to.Xpatt|ern..XTh|
|00001b60| 69 73 20 6d 75 6c 74 69 | 70 6c 65 20 61 63 74 69 |is multi|ple acti|
|00001b70| 6f 6e 20 69 73 20 70 65 | 72 66 6f 72 6d 65 64 20 |on is pe|rformed |
|00001b80| 73 61 66 65 6c 79 2c 0a | 58 69 2e 65 2e 20 77 69 |safely,.|Xi.e. wi|
|00001b90| 74 68 6f 75 74 20 61 6e | 79 20 75 6e 65 78 70 65 |thout an|y unexpe|
|00001ba0| 63 74 65 64 20 64 65 6c | 65 74 69 6f 6e 20 6f 66 |cted del|etion of|
|00001bb0| 20 66 69 6c 65 73 0a 58 | 64 75 65 20 74 6f 20 63 | files.X|due to c|
|00001bc0| 6f 6c 6c 69 73 69 6f 6e | 73 20 6f 66 20 74 61 72 |ollision|s of tar|
|00001bd0| 67 65 74 20 6e 61 6d 65 | 73 20 77 69 74 68 20 65 |get name|s with e|
|00001be0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 6e 61 6d 65 |xisting |filename|
|00001bf0| 73 0a 58 6f 72 20 77 69 | 74 68 20 6f 74 68 65 72 |s.Xor wi|th other|
|00001c00| 20 74 61 72 67 65 74 20 | 6e 61 6d 65 73 2e 0a 58 | target |names..X|
|00001c10| 46 75 72 74 68 65 72 6d | 6f 72 65 2c 20 62 65 66 |Furtherm|ore, bef|
|00001c20| 6f 72 65 20 64 6f 69 6e | 67 20 61 6e 79 74 68 69 |ore doin|g anythi|
|00001c30| 6e 67 2c 0a 58 2e 49 20 | 6d 6d 76 0a 58 61 74 74 |ng,.X.I |mmv.Xatt|
|00001c40| 65 6d 70 74 73 20 74 6f | 20 64 65 74 65 63 74 20 |empts to| detect |
|00001c50| 61 6e 79 20 65 72 72 6f | 72 73 20 74 68 61 74 20 |any erro|rs that |
|00001c60| 77 6f 75 6c 64 20 72 65 | 73 75 6c 74 0a 58 66 72 |would re|sult.Xfr|
|00001c70| 6f 6d 20 74 68 65 20 65 | 6e 74 69 72 65 20 73 65 |om the e|ntire se|
|00001c80| 74 20 6f 66 20 61 63 74 | 69 6f 6e 73 20 73 70 65 |t of act|ions spe|
|00001c90| 63 69 66 69 65 64 0a 58 | 61 6e 64 20 67 69 76 65 |cified.X|and give|
|00001ca0| 73 20 74 68 65 20 75 73 | 65 72 20 74 68 65 20 63 |s the us|er the c|
|00001cb0| 68 6f 69 63 65 20 6f 66 | 20 65 69 74 68 65 72 0a |hoice of| either.|
|00001cc0| 58 70 72 6f 63 65 65 64 | 69 6e 67 20 62 79 20 61 |Xproceed|ing by a|
|00001cd0| 76 6f 69 64 69 6e 67 20 | 74 68 65 20 6f 66 66 65 |voiding |the offe|
|00001ce0| 6e 64 69 6e 67 20 70 61 | 72 74 73 0a 58 6f 72 20 |nding pa|rts.Xor |
|00001cf0| 61 62 6f 72 74 69 6e 67 | 2e 0a 58 0a 58 2e 63 65 |aborting|..X.X.ce|
|00001d00| 0a 58 54 68 65 20 54 61 | 73 6b 20 4f 70 74 69 6f |.XThe Ta|sk Optio|
|00001d10| 6e 73 0a 58 2e 50 50 0a | 58 57 68 65 74 68 65 72 |ns.X.PP.|XWhether|
|00001d20| 0a 58 2e 49 20 6d 6d 76 | 0a 58 6d 6f 76 65 73 2c |.X.I mmv|.Xmoves,|
|00001d30| 20 63 6f 70 69 65 73 2c | 0a 58 2e 69 65 20 27 5c | copies,|.X.ie '\|
|00001d40| 6e 4f 27 32 27 20 6f 72 | 20 61 70 70 65 6e 64 73 |nO'2' or| appends|
|00001d50| 0a 58 2e 65 6c 20 61 70 | 70 65 6e 64 73 2c 20 6f |.X.el ap|pends, o|
|00001d60| 72 20 6c 69 6e 6b 73 0a | 58 69 73 20 67 6f 76 65 |r links.|Xis gove|
|00001d70| 72 6e 65 64 20 62 79 20 | 74 68 65 20 66 69 72 73 |rned by |the firs|
|00001d80| 74 20 73 65 74 20 6f 66 | 20 6f 70 74 69 6f 6e 73 |t set of| options|
|00001d90| 20 67 69 76 65 6e 0a 58 | 61 62 6f 76 65 2e 0a 58 | given.X|above..X|
|00001da0| 49 66 20 6e 6f 6e 65 20 | 6f 66 20 74 68 65 73 65 |If none |of these|
|00001db0| 20 61 72 65 20 73 70 65 | 63 69 66 69 65 64 2c 0a | are spe|cified,.|
|00001dc0| 58 2e 69 65 20 27 5c 6e | 4f 27 32 27 20 5c 7b 5c |X.ie '\n|O'2' \{\|
|00001dd0| 0a 58 61 20 64 65 66 61 | 75 6c 74 20 28 70 61 74 |.Xa defa|ult (pat|
|00001de0| 63 68 61 62 6c 65 20 62 | 79 0a 58 2e 49 52 20 6d |chable b|y.X.IR m|
|00001df0| 6d 76 70 61 74 63 68 20 | 2c 0a 58 61 6e 64 20 69 |mvpatch |,.Xand i|
|00001e00| 6e 69 74 69 61 6c 6c 79 | 20 2d 78 29 0a 58 64 65 |nitially| -x).Xde|
|00001e10| 74 65 72 6d 69 6e 65 73 | 20 74 68 65 20 74 61 73 |termines| the tas|
|00001e20| 6b 2e 0a 58 5c 7d 0a 58 | 2e 65 6c 20 5c 7b 5c 0a |k..X\}.X|.el \{\.|
|00001e30| 58 74 68 65 20 74 61 73 | 6b 20 69 73 20 67 69 76 |Xthe tas|k is giv|
|00001e40| 65 6e 20 62 79 20 74 68 | 65 20 63 6f 6d 6d 61 6e |en by th|e comman|
|00001e50| 64 20 6e 61 6d 65 20 75 | 6e 64 65 72 20 77 68 69 |d name u|nder whi|
|00001e60| 63 68 0a 58 2e 49 20 6d | 6d 76 0a 58 77 61 73 20 |ch.X.I m|mv.Xwas |
|00001e70| 69 6e 76 6f 6b 65 64 20 | 28 61 72 67 76 5b 30 5d |invoked |(argv[0]|
|00001e80| 29 3a 0a 58 0a 58 09 63 | 6f 6d 6d 61 6e 64 20 6e |):.X.X.c|ommand n|
|00001e90| 61 6d 65 09 64 65 66 61 | 75 6c 74 20 74 61 73 6b |ame.defa|ult task|
|00001ea0| 0a 58 0a 58 09 6d 6d 76 | 09 09 09 2d 78 0a 58 2e |.X.X.mmv|...-x.X.|
|00001eb0| 62 72 0a 58 09 6d 63 70 | 09 09 09 2d 63 0a 58 2e |br.X.mcp|...-c.X.|
|00001ec0| 62 72 0a 58 09 6d 61 64 | 09 09 09 2d 61 0a 58 2e |br.X.mad|...-a.X.|
|00001ed0| 62 72 0a 58 09 6d 6c 6e | 09 09 09 2d 6c 0a 58 5c |br.X.mln|...-l.X\|
|00001ee0| 7d 0a 58 2e 50 50 0a 58 | 54 68 65 20 74 61 73 6b |}.X.PP.X|The task|
|00001ef0| 20 6f 70 74 69 6f 6e 20 | 63 68 6f 69 63 65 73 20 | option |choices |
|00001f00| 61 72 65 3a 0a 58 2e 54 | 50 0a 58 2d 6d 20 3a 0a |are:.X.T|P.X-m :.|
|00001f10| 58 6d 6f 76 65 20 73 6f | 75 72 63 65 20 66 69 6c |Xmove so|urce fil|
|00001f20| 65 20 74 6f 20 74 61 72 | 67 65 74 20 6e 61 6d 65 |e to tar|get name|
|00001f30| 2e 0a 58 42 6f 74 68 20 | 6d 75 73 74 20 62 65 20 |..XBoth |must be |
|00001f40| 6f 6e 20 74 68 65 20 73 | 61 6d 65 20 64 65 76 69 |on the s|ame devi|
|00001f50| 63 65 2e 0a 58 57 69 6c | 6c 20 6e 6f 74 20 6d 6f |ce..XWil|l not mo|
|00001f60| 76 65 20 64 69 72 65 63 | 74 6f 72 69 65 73 2e 0a |ve direc|tories..|
|00001f70| 58 2e 69 66 20 27 5c 6e | 4f 27 30 27 20 5c 7b 5c |X.if '\n|O'0' \{\|
|00001f80| 0a 58 49 66 20 74 68 65 | 20 73 6f 75 72 63 65 20 |.XIf the| source |
|00001f90| 66 69 6c 65 20 69 73 20 | 61 20 73 79 6d 62 6f 6c |file is |a symbol|
|00001fa0| 69 63 20 6c 69 6e 6b 2c | 0a 58 6d 6f 76 65 73 20 |ic link,|.Xmoves |
|00001fb0| 74 68 65 20 6c 69 6e 6b | 20 77 69 74 68 6f 75 74 |the link| without|
|00001fc0| 20 63 68 65 63 6b 69 6e | 67 20 69 66 20 74 68 65 | checkin|g if the|
|00001fd0| 20 6c 69 6e 6b 27 73 20 | 74 61 72 67 65 74 20 66 | link's |target f|
|00001fe0| 72 6f 6d 20 74 68 65 20 | 6e 65 77 0a 58 64 69 72 |rom the |new.Xdir|
|00001ff0| 65 63 74 6f 72 79 20 69 | 73 20 64 69 66 66 65 72 |ectory i|s differ|
|00002000| 65 6e 74 20 74 68 61 6e | 20 74 68 65 20 6f 6c 64 |ent than| the old|
|00002010| 2e 0a 58 5c 7d 0a 58 2e | 54 50 0a 58 2d 78 20 3a |..X\}.X.|TP.X-x :|
|00002020| 0a 58 73 61 6d 65 20 61 | 73 20 2d 6d 2c 20 65 78 |.Xsame a|s -m, ex|
|00002030| 63 65 70 74 20 63 72 6f | 73 73 2d 64 65 76 69 63 |cept cro|ss-devic|
|00002040| 65 20 6d 6f 76 65 73 20 | 61 72 65 20 64 6f 6e 65 |e moves |are done|
|00002050| 0a 58 62 79 20 63 6f 70 | 79 69 6e 67 2c 20 74 68 |.Xby cop|ying, th|
|00002060| 65 6e 20 64 65 6c 65 74 | 69 6e 67 20 73 6f 75 72 |en delet|ing sour|
|00002070| 63 65 2e 0a 58 57 68 65 | 6e 20 63 6f 70 79 69 6e |ce..XWhe|n copyin|
|00002080| 67 2c 20 73 65 74 73 20 | 74 68 65 0a 58 2e 69 65 |g, sets |the.X.ie|
|00002090| 20 21 27 5c 6e 4f 27 32 | 27 20 70 65 72 6d 69 73 | !'\nO'2|' permis|
|000020a0| 73 69 6f 6e 20 62 69 74 | 73 0a 58 2e 65 6c 20 61 |sion bit|s.X.el a|
|000020b0| 74 74 72 69 62 75 74 65 | 73 0a 58 61 6e 64 20 66 |ttribute|s.Xand f|
|000020c0| 69 6c 65 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e |ile modi|fication|
|000020d0| 20 74 69 6d 65 0a 58 6f | 66 20 74 68 65 20 74 61 | time.Xo|f the ta|
|000020e0| 72 67 65 74 20 66 69 6c | 65 20 74 6f 20 74 68 61 |rget fil|e to tha|
|000020f0| 74 20 6f 66 20 74 68 65 | 20 73 6f 75 72 63 65 20 |t of the| source |
|00002100| 66 69 6c 65 2e 0a 58 2e | 54 50 0a 58 2d 72 20 3a |file..X.|TP.X-r :|
|00002110| 0a 58 72 65 6e 61 6d 65 | 20 73 6f 75 72 63 65 20 |.Xrename| source |
|00002120| 66 69 6c 65 20 6f 72 20 | 64 69 72 65 63 74 6f 72 |file or |director|
|00002130| 79 20 74 6f 20 74 61 72 | 67 65 74 20 6e 61 6d 65 |y to tar|get name|
|00002140| 2e 0a 58 54 68 65 20 74 | 61 72 67 65 74 20 6e 61 |..XThe t|arget na|
|00002150| 6d 65 20 6d 75 73 74 20 | 6e 6f 74 20 69 6e 63 6c |me must |not incl|
|00002160| 75 64 65 20 61 20 70 61 | 74 68 3a 0a 58 74 68 65 |ude a pa|th:.Xthe|
|00002170| 20 66 69 6c 65 20 72 65 | 6d 61 69 6e 73 20 69 6e | file re|mains in|
|00002180| 20 74 68 65 20 73 61 6d | 65 20 64 69 72 65 63 74 | the sam|e direct|
|00002190| 6f 72 79 20 69 6e 20 61 | 6c 6c 20 63 61 73 65 73 |ory in a|ll cases|
|000021a0| 2e 0a 58 54 68 69 73 20 | 6f 70 74 69 6f 6e 20 69 |..XThis |option i|
|000021b0| 73 20 74 68 65 20 6f 6e | 6c 79 20 77 61 79 20 6f |s the on|ly way o|
|000021c0| 66 20 72 65 6e 61 6d 69 | 6e 67 20 64 69 72 65 63 |f renami|ng direc|
|000021d0| 74 6f 72 69 65 73 20 75 | 6e 64 65 72 0a 58 2e 49 |tories u|nder.X.I|
|000021e0| 52 20 6d 6d 76 20 2e 0a | 58 2e 69 66 20 27 5c 6e |R mmv ..|X.if '\n|
|000021f0| 4f 27 32 27 20 49 74 20 | 69 73 20 6f 6e 6c 79 20 |O'2' It |is only |
|00002200| 61 76 61 69 6c 61 62 6c | 65 20 75 6e 64 65 72 20 |availabl|e under |
|00002210| 44 4f 53 20 76 65 72 73 | 69 6f 6e 20 33 2e 30 20 |DOS vers|ion 3.0 |
|00002220| 6f 72 20 68 69 67 68 65 | 72 2e 0a 58 2e 54 50 0a |or highe|r..X.TP.|
|00002230| 58 2d 63 20 3a 0a 58 63 | 6f 70 79 20 73 6f 75 72 |X-c :.Xc|opy sour|
|00002240| 63 65 20 66 69 6c 65 20 | 74 6f 20 74 61 72 67 65 |ce file |to targe|
|00002250| 74 20 6e 61 6d 65 2e 0a | 58 53 65 74 73 20 74 68 |t name..|XSets th|
|00002260| 65 20 66 69 6c 65 20 6d | 6f 64 69 66 69 63 61 74 |e file m|odificat|
|00002270| 69 6f 6e 20 74 69 6d 65 | 20 61 6e 64 0a 58 2e 69 |ion time| and.X.i|
|00002280| 65 20 21 27 5c 6e 4f 27 | 32 27 20 70 65 72 6d 69 |e !'\nO'|2' permi|
|00002290| 73 73 69 6f 6e 20 62 69 | 74 73 0a 58 2e 65 6c 20 |ssion bi|ts.X.el |
|000022a0| 61 74 74 72 69 62 75 74 | 65 73 0a 58 6f 66 20 74 |attribut|es.Xof t|
|000022b0| 68 65 20 74 61 72 67 65 | 74 20 66 69 6c 65 20 74 |he targe|t file t|
|000022c0| 6f 20 74 68 61 74 20 6f | 66 20 74 68 65 20 73 6f |o that o|f the so|
|000022d0| 75 72 63 65 20 66 69 6c | 65 2c 0a 58 72 65 67 61 |urce fil|e,.Xrega|
|000022e0| 72 64 6c 65 73 73 20 6f | 66 20 77 68 65 74 68 65 |rdless o|f whethe|
|000022f0| 72 20 74 68 65 20 74 61 | 72 67 65 74 20 66 69 6c |r the ta|rget fil|
|00002300| 65 20 61 6c 72 65 61 64 | 79 20 65 78 69 73 74 73 |e alread|y exists|
|00002310| 2e 0a 58 43 68 61 69 6e | 73 20 61 6e 64 20 63 79 |..XChain|s and cy|
|00002320| 63 6c 65 73 20 28 74 6f | 20 62 65 20 65 78 70 6c |cles (to| be expl|
|00002330| 61 69 6e 65 64 20 62 65 | 6c 6f 77 29 20 61 72 65 |ained be|low) are|
|00002340| 20 6e 6f 74 20 61 6c 6c | 6f 77 65 64 2e 0a 58 2e | not all|owed..X.|
|00002350| 54 50 0a 58 2d 6f 20 3a | 0a 58 6f 76 65 72 77 72 |TP.X-o :|.Xoverwr|
|00002360| 69 74 65 20 74 61 72 67 | 65 74 20 6e 61 6d 65 20 |ite targ|et name |
|00002370| 77 69 74 68 20 73 6f 75 | 72 63 65 20 66 69 6c 65 |with sou|rce file|
|00002380| 2e 0a 58 2e 69 65 20 27 | 5c 6e 4f 27 32 27 20 5c |..X.ie '|\nO'2' \|
|00002390| 7b 5c 0a 58 49 66 20 74 | 61 72 67 65 74 20 66 69 |{\.XIf t|arget fi|
|000023a0| 6c 65 20 65 78 69 73 74 | 73 2c 20 69 74 73 20 61 |le exist|s, its a|
|000023b0| 74 74 72 69 62 75 74 65 | 73 20 61 72 65 20 6c 65 |ttribute|s are le|
|000023c0| 66 74 20 75 6e 63 68 61 | 6e 67 65 64 2e 0a 58 49 |ft uncha|nged..XI|
|000023d0| 66 20 6e 6f 74 2c 20 69 | 74 20 69 73 20 63 72 65 |f not, i|t is cre|
|000023e0| 61 74 65 64 20 77 69 74 | 68 20 6f 72 64 69 6e 61 |ated wit|h ordina|
|000023f0| 72 79 20 61 74 74 72 69 | 62 75 74 65 73 0a 58 75 |ry attri|butes.Xu|
|00002400| 6e 72 65 6c 61 74 65 64 | 20 74 6f 20 74 68 65 20 |nrelated| to the |
|00002410| 73 6f 75 72 63 65 20 66 | 69 6c 65 27 73 20 61 74 |source f|ile's at|
|00002420| 74 72 69 62 75 74 65 73 | 2e 0a 58 49 6e 20 65 69 |tributes|..XIn ei|
|00002430| 74 68 65 72 20 63 61 73 | 65 2c 20 74 68 65 20 66 |ther cas|e, the f|
|00002440| 69 6c 65 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e |ile modi|fication|
|00002450| 20 74 69 6d 65 20 69 73 | 20 73 65 74 20 74 6f 20 | time is| set to |
|00002460| 74 68 65 20 63 75 72 72 | 65 6e 74 20 74 69 6d 65 |the curr|ent time|
|00002470| 2e 0a 58 5c 7d 0a 58 2e | 65 6c 20 5c 7b 5c 0a 58 |..X\}.X.|el \{\.X|
|00002480| 49 66 20 74 61 72 67 65 | 74 20 66 69 6c 65 20 65 |If targe|t file e|
|00002490| 78 69 73 74 73 2c 20 69 | 74 20 69 73 20 6f 76 65 |xists, i|t is ove|
|000024a0| 72 77 72 69 74 74 65 6e | 2c 0a 58 6b 65 65 70 69 |rwritten|,.Xkeepi|
|000024b0| 6e 67 20 69 74 73 20 6f | 72 69 67 69 6e 61 6c 20 |ng its o|riginal |
|000024c0| 6f 77 6e 65 72 20 61 6e | 64 20 70 65 72 6d 69 73 |owner an|d permis|
|000024d0| 73 69 6f 6e 20 62 69 74 | 73 2e 0a 58 49 66 20 69 |sion bit|s..XIf i|
|000024e0| 74 20 64 6f 65 73 20 6e | 6f 74 20 65 78 69 73 74 |t does n|ot exist|
|000024f0| 2c 20 69 74 20 69 73 20 | 63 72 65 61 74 65 64 2c |, it is |created,|
|00002500| 20 77 69 74 68 20 72 65 | 61 64 2d 77 72 69 74 65 | with re|ad-write|
|00002510| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 62 69 74 73 | permiss|ion bits|
|00002520| 0a 58 73 65 74 20 61 63 | 63 6f 72 64 69 6e 67 20 |.Xset ac|cording |
|00002530| 74 6f 0a 58 2e 49 52 20 | 75 6d 61 73 6b 20 28 31 |to.X.IR |umask (1|
|00002540| 29 2c 0a 58 61 6e 64 20 | 74 68 65 20 65 78 65 63 |),.Xand |the exec|
|00002550| 75 74 65 20 70 65 72 6d | 69 73 73 69 6f 6e 20 62 |ute perm|ission b|
|00002560| 69 74 73 20 63 6f 70 69 | 65 64 20 66 72 6f 6d 20 |its copi|ed from |
|00002570| 74 68 65 20 73 6f 75 72 | 63 65 20 66 69 6c 65 2e |the sour|ce file.|
|00002580| 0a 58 49 6e 20 65 69 74 | 68 65 72 20 63 61 73 65 |.XIn eit|her case|
|00002590| 2c 20 74 68 65 20 66 69 | 6c 65 20 6d 6f 64 69 66 |, the fi|le modif|
|000025a0| 69 63 61 74 69 6f 6e 20 | 74 69 6d 65 20 69 73 20 |ication |time is |
|000025b0| 73 65 74 20 74 6f 20 74 | 68 65 20 63 75 72 72 65 |set to t|he curre|
|000025c0| 6e 74 20 74 69 6d 65 2e | 0a 58 5c 7d 0a 58 2e 54 |nt time.|.X\}.X.T|
|000025d0| 50 0a 58 2d 61 20 3a 0a | 58 61 70 70 65 6e 64 20 |P.X-a :.|Xappend |
|000025e0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 73 6f 75 72 |contents| of sour|
|000025f0| 63 65 20 66 69 6c 65 20 | 74 6f 20 74 61 72 67 65 |ce file |to targe|
|00002600| 74 20 6e 61 6d 65 2e 0a | 58 54 61 72 67 65 74 20 |t name..|XTarget |
|00002610| 66 69 6c 65 20 6d 6f 64 | 69 66 69 63 61 74 69 6f |file mod|ificatio|
|00002620| 6e 20 74 69 6d 65 20 69 | 73 20 73 65 74 20 74 6f |n time i|s set to|
|00002630| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 74 69 6d | the cur|rent tim|
|00002640| 65 2e 0a 58 49 66 20 74 | 61 72 67 65 74 20 66 69 |e..XIf t|arget fi|
|00002650| 6c 65 20 64 6f 65 73 20 | 6e 6f 74 20 65 78 69 73 |le does |not exis|
|00002660| 74 2c 0a 58 69 74 20 69 | 73 20 63 72 65 61 74 65 |t,.Xit i|s create|
|00002670| 64 20 77 69 74 68 0a 58 | 2e 69 65 20 27 5c 6e 4f |d with.X|.ie '\nO|
|00002680| 27 32 27 20 61 74 74 72 | 69 62 75 74 65 73 0a 58 |'2' attr|ibutes.X|
|00002690| 2e 65 6c 20 70 65 72 6d | 69 73 73 69 6f 6e 20 62 |.el perm|ission b|
|000026a0| 69 74 73 0a 58 73 65 74 | 20 61 73 20 75 6e 64 65 |its.Xset| as unde|
|000026b0| 72 20 2d 6f 2e 0a 58 55 | 6e 6c 69 6b 65 20 61 6c |r -o..XU|nlike al|
|000026c0| 6c 20 6f 74 68 65 72 20 | 6f 70 74 69 6f 6e 73 2c |l other |options,|
|000026d0| 20 2d 61 20 61 6c 6c 6f | 77 73 20 6d 75 6c 74 69 | -a allo|ws multi|
|000026e0| 70 6c 65 20 73 6f 75 72 | 63 65 20 66 69 6c 65 73 |ple sour|ce files|
|000026f0| 20 74 6f 20 68 61 76 65 | 20 74 68 65 0a 58 73 61 | to have| the.Xsa|
|00002700| 6d 65 20 74 61 72 67 65 | 74 20 6e 61 6d 65 2c 20 |me targe|t name, |
|00002710| 65 2e 67 2e 20 22 6d 6d | 76 20 2d 61 0a 58 2e 69 |e.g. "mm|v -a.X.i|
|00002720| 65 20 27 5c 6e 4f 27 32 | 27 20 2a 2e 63 0a 58 2e |e '\nO'2|' *.c.X.|
|00002730| 65 6c 20 5c 5c 2a 2e 63 | 0a 58 62 69 67 22 20 77 |el \\*.c|.Xbig" w|
|00002740| 69 6c 6c 20 61 70 70 65 | 6e 64 20 61 6c 6c 20 22 |ill appe|nd all "|
|00002750| 2e 63 22 20 66 69 6c 65 | 73 20 74 6f 20 22 62 69 |.c" file|s to "bi|
|00002760| 67 22 2e 0a 58 43 68 61 | 69 6e 73 20 61 6e 64 20 |g"..XCha|ins and |
|00002770| 63 79 63 6c 65 73 20 61 | 72 65 20 61 6c 73 6f 20 |cycles a|re also |
|00002780| 61 6c 6c 6f 77 65 64 2c | 20 73 6f 20 22 6d 6d 76 |allowed,| so "mmv|
|00002790| 20 2d 61 20 66 20 66 22 | 20 77 69 6c 6c 20 64 6f | -a f f"| will do|
|000027a0| 75 62 6c 65 20 75 70 20 | 22 66 22 2e 0a 58 2e 69 |uble up |"f"..X.i|
|000027b0| 65 20 27 5c 6e 4f 27 32 | 27 20 5c 7b 5c 0a 58 2e |e '\nO'2|' \{\.X.|
|000027c0| 54 50 0a 58 2d 7a 20 3a | 0a 58 73 61 6d 65 20 61 |TP.X-z :|.Xsame a|
|000027d0| 73 20 2d 61 2c 20 62 75 | 74 20 69 66 20 74 68 65 |s -a, bu|t if the|
|000027e0| 20 74 61 72 67 65 74 20 | 66 69 6c 65 20 65 78 69 | target |file exi|
|000027f0| 73 74 73 2c 20 61 6e 64 | 20 69 74 73 20 6c 61 73 |sts, and| its las|
|00002800| 74 20 63 68 61 72 61 63 | 74 65 72 20 69 73 20 61 |t charac|ter is a|
|00002810| 20 5e 5a 2c 0a 58 61 6e | 64 20 74 68 65 20 73 6f | ^Z,.Xan|d the so|
|00002820| 75 72 63 65 20 66 69 6c | 65 20 69 73 20 6e 6f 74 |urce fil|e is not|
|00002830| 20 65 6d 70 74 79 2c 0a | 58 74 68 69 73 20 5e 5a | empty,.|Xthis ^Z|
|00002840| 20 69 73 20 74 72 75 6e | 63 61 74 65 64 20 62 65 | is trun|cated be|
|00002850| 66 6f 72 65 20 64 6f 69 | 6e 67 20 74 68 65 20 61 |fore doi|ng the a|
|00002860| 70 70 65 6e 64 2e 0a 58 | 5c 7d 0a 58 2e 65 6c 20 |ppend..X|\}.X.el |
|00002870| 5c 7b 5c 0a 58 2e 54 50 | 0a 58 2d 6c 20 3a 0a 58 |\{\.X.TP|.X-l :.X|
|00002880| 6c 69 6e 6b 20 74 61 72 | 67 65 74 20 6e 61 6d 65 |link tar|get name|
|00002890| 20 74 6f 20 73 6f 75 72 | 63 65 20 66 69 6c 65 2e | to sour|ce file.|
|000028a0| 0a 58 42 6f 74 68 20 6d | 75 73 74 20 62 65 20 6f |.XBoth m|ust be o|
|000028b0| 6e 20 74 68 65 20 73 61 | 6d 65 20 64 65 76 69 63 |n the sa|me devic|
|000028c0| 65 2c 0a 58 61 6e 64 20 | 74 68 65 20 73 6f 75 72 |e,.Xand |the sour|
|000028d0| 63 65 20 6d 75 73 74 20 | 6e 6f 74 20 62 65 20 61 |ce must |not be a|
|000028e0| 20 64 69 72 65 63 74 6f | 72 79 2e 0a 58 43 68 61 | directo|ry..XCha|
|000028f0| 69 6e 73 20 61 6e 64 20 | 63 79 63 6c 65 73 20 61 |ins and |cycles a|
|00002900| 72 65 20 6e 6f 74 20 61 | 6c 6c 6f 77 65 64 2e 0a |re not a|llowed..|
|00002910| 58 2e 69 66 20 27 5c 6e | 4f 27 30 27 20 5c 7b 5c |X.if '\n|O'0' \{\|
|00002920| 0a 58 2e 54 50 0a 58 2d | 73 20 3a 0a 58 73 61 6d |.X.TP.X-|s :.Xsam|
|00002930| 65 20 61 73 20 2d 6c 2c | 20 62 75 74 20 75 73 65 |e as -l,| but use|
|00002940| 20 73 79 6d 62 6f 6c 69 | 63 20 6c 69 6e 6b 73 20 | symboli|c links |
|00002950| 69 6e 73 74 65 61 64 20 | 6f 66 20 68 61 72 64 20 |instead |of hard |
|00002960| 6c 69 6e 6b 73 2e 0a 58 | 46 6f 72 20 74 68 65 20 |links..X|For the |
|00002970| 72 65 73 75 6c 74 69 6e | 67 20 6c 69 6e 6b 20 74 |resultin|g link t|
|00002980| 6f 20 61 69 6d 20 62 61 | 63 6b 20 61 74 20 74 68 |o aim ba|ck at th|
|00002990| 65 20 73 6f 75 72 63 65 | 2c 0a 58 65 69 74 68 65 |e source|,.Xeithe|
|000029a0| 72 20 74 68 65 20 73 6f | 75 72 63 65 20 6e 61 6d |r the so|urce nam|
|000029b0| 65 20 6d 75 73 74 20 62 | 65 67 69 6e 20 77 69 74 |e must b|egin wit|
|000029c0| 68 20 61 20 27 2f 27 2c | 0a 58 6f 72 20 74 68 65 |h a '/',|.Xor the|
|000029d0| 20 74 61 72 67 65 74 20 | 6d 75 73 74 20 72 65 73 | target |must res|
|000029e0| 69 64 65 20 69 6e 20 65 | 69 74 68 65 72 20 74 68 |ide in e|ither th|
|000029f0| 65 20 63 75 72 72 65 6e | 74 20 6f 72 20 74 68 65 |e curren|t or the|
|00002a00| 20 73 6f 75 72 63 65 20 | 64 69 72 65 63 74 6f 72 | source |director|
|00002a10| 79 2e 0a 58 49 66 20 6e | 6f 6e 65 20 6f 66 20 74 |y..XIf n|one of t|
|00002a20| 68 65 73 65 20 63 6f 6e | 64 69 74 69 6f 6e 73 20 |hese con|ditions |
|00002a30| 61 72 65 20 6d 65 74 2c | 20 74 68 65 20 6c 69 6e |are met,| the lin|
|00002a40| 6b 20 69 73 20 72 65 66 | 75 73 65 64 2e 0a 58 48 |k is ref|used..XH|
|00002a50| 6f 77 65 76 65 72 2c 20 | 73 6f 75 72 63 65 20 61 |owever, |source a|
|00002a60| 6e 64 20 74 61 72 67 65 | 74 20 63 61 6e 20 72 65 |nd targe|t can re|
|00002a70| 73 69 64 65 20 6f 6e 20 | 64 69 66 66 65 72 65 6e |side on |differen|
|00002a80| 74 20 64 65 76 69 63 65 | 73 2c 0a 58 61 6e 64 20 |t device|s,.Xand |
|00002a90| 74 68 65 20 73 6f 75 72 | 63 65 20 63 61 6e 20 62 |the sour|ce can b|
|00002aa0| 65 20 61 20 64 69 72 65 | 63 74 6f 72 79 2e 0a 58 |e a dire|ctory..X|
|00002ab0| 5c 7d 0a 58 5c 7d 0a 58 | 2e 50 50 0a 58 4f 6e 6c |\}.X\}.X|.PP.XOnl|
|00002ac0| 79 20 6f 6e 65 20 6f 66 | 20 74 68 65 73 65 20 6f |y one of| these o|
|00002ad0| 70 74 69 6f 6e 20 6d 61 | 79 20 62 65 20 67 69 76 |ption ma|y be giv|
|00002ae0| 65 6e 2c 0a 58 61 6e 64 | 20 69 74 20 61 70 70 6c |en,.Xand| it appl|
|00002af0| 69 65 73 20 74 6f 20 61 | 6c 6c 20 6d 61 74 63 68 |ies to a|ll match|
|00002b00| 69 6e 67 20 66 69 6c 65 | 73 2e 0a 58 52 65 6d 61 |ing file|s..XRema|
|00002b10| 69 6e 69 6e 67 20 6f 70 | 74 69 6f 6e 73 20 6e 65 |ining op|tions ne|
|00002b20| 65 64 20 6e 6f 74 20 62 | 65 20 67 69 76 65 6e 20 |ed not b|e given |
|00002b30| 73 65 70 61 72 61 74 65 | 6c 79 2c 0a 58 69 2e 65 |separate|ly,.Xi.e|
|00002b40| 2e 20 22 6d 6d 76 20 2d | 6d 6b 22 20 69 73 20 61 |. "mmv -|mk" is a|
|00002b50| 6c 6c 6f 77 65 64 2e 0a | 58 0a 58 2e 63 65 0a 58 |llowed..|X.X.ce.X|
|00002b60| 4d 75 6c 74 69 70 6c 65 | 20 50 61 74 74 65 72 6e |Multiple| Pattern|
|00002b70| 20 50 61 69 72 73 0a 58 | 2e 50 50 0a 58 4d 75 6c | Pairs.X|.PP.XMul|
|00002b80| 74 69 70 6c 65 0a 58 2e | 49 20 66 72 6f 6d 0a 58 |tiple.X.|I from.X|
|00002b90| 2d 2d 0a 58 2e 49 20 74 | 6f 0a 58 70 61 74 74 65 |--.X.I t|o.Xpatte|
|00002ba0| 72 6e 20 70 61 69 72 73 | 20 6d 61 79 20 62 65 20 |rn pairs| may be |
|00002bb0| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 6f 6d 69 |specifie|d by omi|
|00002bc0| 74 74 69 6e 67 0a 58 74 | 68 65 20 70 61 74 74 65 |tting.Xt|he patte|
|00002bd0| 72 6e 20 70 61 69 72 20 | 6f 6e 20 74 68 65 20 63 |rn pair |on the c|
|00002be0| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 2c 0a 58 61 6e |ommand l|ine,.Xan|
|00002bf0| 64 20 65 6e 74 65 72 69 | 6e 67 20 74 68 65 6d 20 |d enteri|ng them |
|00002c00| 6f 6e 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |on the s|tandard |
|00002c10| 69 6e 70 75 74 2c 0a 58 | 6f 6e 65 20 70 61 69 72 |input,.X|one pair|
|00002c20| 20 70 65 72 20 6c 69 6e | 65 2e 0a 58 28 49 66 20 | per lin|e..X(If |
|00002c30| 61 20 70 61 74 74 65 72 | 6e 20 70 61 69 72 20 69 |a patter|n pair i|
|00002c40| 73 20 67 69 76 65 6e 20 | 6f 6e 20 74 68 65 20 63 |s given |on the c|
|00002c50| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 2c 0a 58 74 68 |ommand l|ine,.Xth|
|00002c60| 65 20 73 74 61 6e 64 61 | 72 64 20 69 6e 70 75 74 |e standa|rd input|
|00002c70| 20 69 73 20 6e 6f 74 20 | 72 65 61 64 2e 29 0a 58 | is not |read.).X|
|00002c80| 54 68 75 73 2c 0a 58 0a | 58 2e 69 6e 20 2b 33 0a |Thus,.X.|X.in +3.|
|00002c90| 58 6d 6d 76 0a 58 2e 62 | 72 0a 58 61 20 62 0a 58 |Xmmv.X.b|r.Xa b.X|
|00002ca0| 2e 62 72 0a 58 63 20 64 | 0a 58 2e 69 6e 20 2d 33 |.br.Xc d|.X.in -3|
|00002cb0| 0a 58 0a 58 77 6f 75 6c | 64 20 72 65 6e 61 6d 65 |.X.Xwoul|d rename|
|00002cc0| 20 22 61 22 20 74 6f 20 | 22 62 22 20 61 6e 64 20 | "a" to |"b" and |
|00002cd0| 22 63 22 20 74 6f 20 22 | 64 22 2e 0a 58 49 66 20 |"c" to "|d"..XIf |
|00002ce0| 61 20 66 69 6c 65 20 63 | 61 6e 20 62 65 20 6d 61 |a file c|an be ma|
|00002cf0| 74 63 68 65 64 20 74 6f | 20 73 65 76 65 72 61 6c |tched to| several|
|00002d00| 20 6f 66 20 74 68 65 20 | 67 69 76 65 6e 0a 58 2e | of the |given.X.|
|00002d10| 49 20 66 72 6f 6d 0a 58 | 70 61 74 74 65 72 6e 73 |I from.X|patterns|
|00002d20| 2c 0a 58 74 68 65 0a 58 | 2e 49 20 74 6f 0a 58 70 |,.Xthe.X|.I to.Xp|
|00002d30| 61 74 74 65 72 6e 20 6f | 66 20 74 68 65 20 66 69 |attern o|f the fi|
|00002d40| 72 73 74 20 6d 61 74 63 | 68 69 6e 67 20 70 61 69 |rst matc|hing pai|
|00002d50| 72 20 69 73 20 75 73 65 | 64 2e 0a 58 54 68 75 73 |r is use|d..XThus|
|00002d60| 2c 0a 58 0a 58 2e 69 6e | 20 2b 33 0a 58 6d 6d 76 |,.X.X.in| +3.Xmmv|
|00002d70| 0a 58 2e 62 72 0a 58 61 | 20 62 0a 58 2e 62 72 0a |.X.br.Xa| b.X.br.|
|00002d80| 58 61 20 63 0a 58 2e 69 | 6e 20 2d 33 0a 58 0a 58 |Xa c.X.i|n -3.X.X|
|00002d90| 77 6f 75 6c 64 20 67 69 | 76 65 20 74 68 65 20 65 |would gi|ve the e|
|00002da0| 72 72 6f 72 20 6d 65 73 | 73 61 67 65 20 22 61 20 |rror mes|sage "a |
|00002db0| 2d 3e 20 63 20 3a 20 6e | 6f 20 6d 61 74 63 68 22 |-> c : n|o match"|
|00002dc0| 20 62 65 63 61 75 73 65 | 20 66 69 6c 65 20 22 61 | because| file "a|
|00002dd0| 22 0a 58 28 65 76 65 6e | 20 69 66 20 69 74 20 65 |".X(even| if it e|
|00002de0| 78 69 73 74 73 29 0a 58 | 77 61 73 20 61 6c 72 65 |xists).X|was alre|
|00002df0| 61 64 79 20 6d 61 74 63 | 68 65 64 20 62 79 20 74 |ady matc|hed by t|
|00002e00| 68 65 20 66 69 72 73 74 | 20 70 61 74 74 65 72 6e |he first| pattern|
|00002e10| 20 70 61 69 72 2e 0a 58 | 0a 58 2e 63 65 0a 58 54 | pair..X|.X.ce.XT|
|00002e20| 68 65 20 5c 66 49 46 72 | 6f 6d 5c 66 50 20 50 61 |he \fIFr|om\fP Pa|
|00002e30| 74 74 65 72 6e 0a 58 2e | 50 50 0a 58 54 68 65 0a |ttern.X.|PP.XThe.|
|00002e40| 58 2e 49 20 66 72 6f 6d | 0a 58 70 61 74 74 65 72 |X.I from|.Xpatter|
|00002e50| 6e 20 69 73 20 61 20 66 | 69 6c 65 6e 61 6d 65 0a |n is a f|ilename.|
|00002e60| 58 77 69 74 68 20 65 6d | 62 65 64 64 65 64 20 77 |Xwith em|bedded w|
|00002e70| 69 6c 64 63 61 72 64 73 | 3a 20 27 2a 27 2c 20 27 |ildcards|: '*', '|
|00002e80| 3f 27 2c 20 27 5b 27 2e | 2e 2e 27 5d 27 2c 0a 58 |?', '['.|..']',.X|
|00002e90| 2e 69 66 20 27 5c 6e 4f | 27 32 27 20 5c 7b 5c 0a |.if '\nO|'2' \{\.|
|00002ea0| 58 5c 27 21 27 2c 0a 58 | 5c 7d 0a 58 61 6e 64 20 |X\'!',.X|\}.Xand |
|00002eb0| 27 3b 27 2e 0a 58 54 68 | 65 20 66 69 72 73 74 20 |';'..XTh|e first |
|00002ec0| 74 68 72 65 65 20 68 61 | 76 65 20 74 68 65 69 72 |three ha|ve their|
|00002ed0| 20 75 73 75 61 6c 0a 58 | 2e 49 52 20 73 68 20 28 | usual.X|.IR sh (|
|00002ee0| 31 29 0a 58 6d 65 61 6e | 69 6e 67 73 20 6f 66 2c |1).Xmean|ings of,|
|00002ef0| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 2c 0a 58 | respect|ively,.X|
|00002f00| 6d 61 74 63 68 69 6e 67 | 20 61 6e 79 20 73 74 72 |matching| any str|
|00002f10| 69 6e 67 20 6f 66 20 63 | 68 61 72 61 63 74 65 72 |ing of c|haracter|
|00002f20| 73 2c 0a 58 6d 61 74 63 | 68 69 6e 67 20 61 6e 79 |s,.Xmatc|hing any|
|00002f30| 20 73 69 6e 67 6c 65 20 | 63 68 61 72 61 63 74 65 | single |characte|
|00002f40| 72 2c 0a 58 61 6e 64 20 | 6d 61 74 63 68 69 6e 67 |r,.Xand |matching|
|00002f50| 20 61 6e 79 20 6f 6e 65 | 20 6f 66 20 61 20 73 65 | any one| of a se|
|00002f60| 74 20 6f 66 20 63 68 61 | 72 61 63 74 65 72 73 2e |t of cha|racters.|
|00002f70| 0a 58 2e 50 50 0a 58 42 | 65 74 77 65 65 6e 20 74 |.X.PP.XB|etween t|
|00002f80| 68 65 20 27 5b 27 20 61 | 6e 64 20 27 5d 27 2c 20 |he '[' a|nd ']', |
|00002f90| 61 20 72 61 6e 67 65 20 | 66 72 6f 6d 20 63 68 61 |a range |from cha|
|00002fa0| 72 61 63 74 65 72 20 27 | 61 27 20 74 68 72 6f 75 |racter '|a' throu|
|00002fb0| 67 68 20 63 68 61 72 61 | 63 74 65 72 20 27 7a 27 |gh chara|cter 'z'|
|00002fc0| 0a 58 69 73 20 73 70 65 | 63 69 66 69 65 64 20 77 |.Xis spe|cified w|
|00002fd0| 69 74 68 20 22 61 2d 7a | 22 2e 0a 58 54 68 65 20 |ith "a-z|"..XThe |
|00002fe0| 73 65 74 20 6f 66 20 6d | 61 74 63 68 69 6e 67 20 |set of m|atching |
|00002ff0| 63 68 61 72 61 63 74 65 | 72 73 20 63 61 6e 20 62 |characte|rs can b|
|00003000| 65 20 6e 65 67 61 74 65 | 64 20 62 79 20 69 6e 73 |e negate|d by ins|
|00003010| 65 72 74 69 6e 67 0a 58 | 61 20 27 5e 27 20 61 66 |erting.X|a '^' af|
|00003020| 74 65 72 20 74 68 65 20 | 27 5b 27 2e 0a 58 54 68 |ter the |'['..XTh|
|00003030| 75 73 2c 20 22 5b 5e 62 | 2d 65 32 2d 35 5f 5d 22 |us, "[^b|-e2-5_]"|
|00003040| 0a 58 77 69 6c 6c 20 6d | 61 74 63 68 20 61 6e 79 |.Xwill m|atch any|
|00003050| 20 63 68 61 72 61 63 74 | 65 72 20 62 75 74 20 27 | charact|er but '|
|00003060| 62 27 20 74 68 72 6f 75 | 67 68 20 27 65 27 2c 20 |b' throu|gh 'e', |
|00003070| 27 32 27 20 74 68 72 6f | 75 67 68 20 27 35 27 2c |'2' thro|ugh '5',|
|00003080| 20 61 6e 64 20 27 5f 27 | 2e 0a 58 2e 69 66 20 27 | and '_'|..X.if '|
|00003090| 5c 6e 4f 27 32 27 20 5c | 7b 5c 0a 58 2e 50 50 0a |\nO'2' \|{\.X.PP.|
|000030a0| 58 55 6e 6c 69 6b 65 20 | 44 4f 53 20 77 69 6c 64 |XUnlike |DOS wild|
|000030b0| 63 61 72 64 73 2c 0a 58 | 61 6c 6c 20 6d 6d 76 20 |cards,.X|all mmv |
|000030c0| 77 69 6c 64 63 61 72 64 | 73 20 28 65 78 63 65 70 |wildcard|s (excep|
|000030d0| 74 20 66 6f 72 20 63 61 | 73 65 73 20 6c 69 73 74 |t for ca|ses list|
|000030e0| 65 64 20 62 65 6c 6f 77 | 29 0a 58 63 61 6e 20 6f |ed below|).Xcan o|
|000030f0| 63 63 75 72 20 61 6e 79 | 77 68 65 72 65 20 69 6e |ccur any|where in|
|00003100| 20 74 68 65 20 70 61 74 | 74 65 72 6e 2c 0a 58 77 | the pat|tern,.Xw|
|00003110| 68 65 74 68 65 72 20 70 | 72 65 63 65 64 69 6e 67 |hether p|receding|
|00003120| 20 6f 72 20 66 6f 6c 6c | 6f 77 69 6e 67 20 65 78 | or foll|owing ex|
|00003130| 70 6c 69 63 69 74 20 63 | 68 61 72 61 63 74 65 72 |plicit c|haracter|
|00003140| 73 20 6f 72 20 6f 74 68 | 65 72 20 77 69 6c 64 63 |s or oth|er wildc|
|00003150| 61 72 64 73 2e 0a 58 46 | 6f 72 20 65 78 61 6d 70 |ards..XF|or examp|
|00003160| 6c 65 2c 20 74 68 65 20 | 70 61 74 74 65 72 6e 20 |le, the |pattern |
|00003170| 22 2a 7a 5c 5c 66 6f 6f | 2e 62 61 72 22 20 77 69 |"*z\\foo|.bar" wi|
|00003180| 6c 6c 20 73 65 61 72 63 | 68 0a 58 66 6f 72 20 66 |ll searc|h.Xfor f|
|00003190| 69 6c 65 73 20 6e 61 6d | 65 64 20 22 66 6f 6f 2e |iles nam|ed "foo.|
|000031a0| 62 61 72 22 20 69 6e 20 | 61 6c 6c 20 73 75 62 64 |bar" in |all subd|
|000031b0| 69 72 65 63 74 6f 72 69 | 65 73 20 77 68 6f 73 65 |irectori|es whose|
|000031c0| 20 6e 61 6d 65 73 20 65 | 6e 64 20 69 6e 20 27 7a | names e|nd in 'z|
|000031d0| 27 2e 0a 58 48 6f 77 65 | 76 65 72 2c 20 6e 6f 20 |'..XHowe|ver, no |
|000031e0| 77 69 6c 64 63 61 72 64 | 73 20 63 61 6e 20 6f 63 |wildcard|s can oc|
|000031f0| 63 75 72 20 69 6e 20 74 | 68 65 20 64 72 69 76 65 |cur in t|he drive|
|00003200| 20 6c 65 74 74 65 72 2e | 0a 58 2e 50 50 0a 58 54 | letter.|.X.PP.XT|
|00003210| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 27 2e 27 |he chara|cter '.'|
|00003220| 20 69 73 20 6e 6f 74 20 | 6d 61 74 63 68 65 64 20 | is not |matched |
|00003230| 62 79 20 61 6e 79 20 6f | 66 20 27 2a 27 2c 20 27 |by any o|f '*', '|
|00003240| 3f 27 2c 20 6f 72 20 27 | 5b 27 2e 2e 2e 27 5d 27 |?', or '|['...']'|
|00003250| 2e 0a 58 54 68 75 73 2c | 20 74 68 65 20 70 61 74 |..XThus,| the pat|
|00003260| 74 65 72 6e 20 22 2a 22 | 20 77 69 6c 6c 20 6f 6e |tern "*"| will on|
|00003270| 6c 79 20 6d 61 74 63 68 | 20 66 69 6c 65 73 20 77 |ly match| files w|
|00003280| 69 74 68 20 61 20 6e 75 | 6c 6c 20 65 78 74 65 6e |ith a nu|ll exten|
|00003290| 73 69 6f 6e 2e 0a 58 54 | 6f 20 73 61 76 65 20 79 |sion..XT|o save y|
|000032a0| 6f 75 72 73 65 6c 66 20 | 73 6f 6d 65 20 74 79 70 |ourself |some typ|
|000032b0| 69 6e 67 2c 20 75 73 65 | 20 74 68 65 20 27 21 27 |ing, use| the '!'|
|000032c0| 20 77 69 6c 64 63 61 72 | 64 20 69 6e 73 74 65 61 | wildcar|d instea|
|000032d0| 64 2c 0a 58 77 68 69 63 | 68 20 6d 61 74 63 68 65 |d,.Xwhic|h matche|
|000032e0| 73 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 22 2a |s the sa|me as "*|
|000032f0| 2e 2a 22 2c 0a 58 65 78 | 63 65 70 74 20 69 74 20 |.*",.Xex|cept it |
|00003300| 69 73 20 61 73 73 69 67 | 6e 65 64 20 6f 6e 6c 79 |is assig|ned only|
|00003310| 20 6f 6e 65 20 77 69 6c | 64 63 61 72 64 20 69 6e | one wil|dcard in|
|00003320| 64 65 78 20 28 73 65 65 | 20 62 65 6c 6f 77 29 2e |dex (see| below).|
|00003330| 0a 58 54 68 75 73 2c 20 | 62 6f 74 68 20 22 66 21 |.XThus, |both "f!|
|00003340| 22 20 61 6e 64 20 22 66 | 2a 2e 2a 22 0a 58 77 69 |" and "f|*.*".Xwi|
|00003350| 6c 6c 20 6d 61 74 63 68 | 20 61 6c 6c 20 6f 66 20 |ll match| all of |
|00003360| 22 66 22 2c 20 22 66 2e | 65 78 74 22 2c 20 22 66 |"f", "f.|ext", "f|
|00003370| 6f 6f 22 2c 20 61 6e 64 | 20 22 66 6f 6f 2e 65 78 |oo", and| "foo.ex|
|00003380| 74 22 2c 0a 58 77 68 69 | 6c 65 20 22 66 2a 22 20 |t",.Xwhi|le "f*" |
|00003390| 77 69 6c 6c 20 6d 61 74 | 63 68 20 6f 6e 6c 79 20 |will mat|ch only |
|000033a0| 74 68 65 20 66 69 72 73 | 74 20 61 6e 64 20 74 68 |the firs|t and th|
|000033b0| 65 20 74 68 69 72 64 2e | 0a 58 5c 7d 0a 58 2e 50 |e third.|.X\}.X.P|
|000033c0| 50 0a 58 4e 6f 74 65 20 | 74 68 61 74 20 70 61 74 |P.XNote |that pat|
|000033d0| 68 73 20 61 72 65 20 61 | 6c 6c 6f 77 65 64 20 69 |hs are a|llowed i|
|000033e0| 6e 20 74 68 65 20 70 61 | 74 74 65 72 6e 73 2c 0a |n the pa|tterns,.|
|000033f0| 58 61 6e 64 20 77 69 6c | 64 63 61 72 64 73 20 6d |Xand wil|dcards m|
|00003400| 61 79 20 62 65 20 69 6e | 74 65 72 6d 69 6e 67 6c |ay be in|termingl|
|00003410| 65 64 20 77 69 74 68 20 | 73 6c 61 73 68 65 73 20 |ed with |slashes |
|00003420| 61 72 62 69 74 72 61 72 | 69 6c 79 2e 0a 58 54 68 |arbitrar|ily..XTh|
|00003430| 65 20 27 3b 27 20 77 69 | 6c 64 63 61 72 64 0a 58 |e ';' wi|ldcard.X|
|00003440| 69 73 20 75 73 65 66 75 | 6c 20 66 6f 72 20 6d 61 |is usefu|l for ma|
|00003450| 74 63 68 69 6e 67 20 66 | 69 6c 65 73 20 61 74 20 |tching f|iles at |
|00003460| 61 6e 79 20 64 65 70 74 | 68 20 69 6e 20 74 68 65 |any dept|h in the|
|00003470| 20 64 69 72 65 63 74 6f | 72 79 20 74 72 65 65 2e | directo|ry tree.|
|00003480| 0a 58 49 74 20 6d 61 74 | 63 68 65 73 20 74 68 65 |.XIt mat|ches the|
|00003490| 20 73 61 6d 65 20 61 73 | 20 22 2a 5c 2a 28 53 4c | same as| "*\*(SL|
|000034a0| 22 20 72 65 70 65 61 74 | 65 64 20 61 6e 79 20 6e |" repeat|ed any n|
|000034b0| 75 6d 62 65 72 20 6f 66 | 20 74 69 6d 65 73 2c 20 |umber of| times, |
|000034c0| 69 6e 63 6c 75 64 69 6e | 67 20 7a 65 72 6f 2c 0a |includin|g zero,.|
|000034d0| 58 61 6e 64 20 63 61 6e | 20 6f 6e 6c 79 20 6f 63 |Xand can| only oc|
|000034e0| 63 75 72 20 65 69 74 68 | 65 72 20 61 74 20 74 68 |cur eith|er at th|
|000034f0| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |e beginn|ing of t|
|00003500| 68 65 20 70 61 74 74 65 | 72 6e 0a 58 6f 72 20 66 |he patte|rn.Xor f|
|00003510| 6f 6c 6c 6f 77 69 6e 67 | 20 61 20 27 5c 2a 28 53 |ollowing| a '\*(S|
|00003520| 4c 27 2e 0a 58 54 68 75 | 73 20 22 3b 2a 2e 63 22 |L'..XThu|s ";*.c"|
|00003530| 20 77 69 6c 6c 20 6d 61 | 74 63 68 20 61 6c 6c 20 | will ma|tch all |
|00003540| 22 2e 63 22 20 66 69 6c | 65 73 20 69 6e 20 6f 72 |".c" fil|es in or|
|00003550| 20 62 65 6c 6f 77 20 74 | 68 65 20 63 75 72 72 65 | below t|he curre|
|00003560| 6e 74 20 64 69 72 65 63 | 74 6f 72 79 2c 0a 58 77 |nt direc|tory,.Xw|
|00003570| 68 69 6c 65 20 22 5c 2a | 28 53 4c 3b 2a 2e 63 22 |hile "\*|(SL;*.c"|
|00003580| 20 77 69 6c 6c 20 6d 61 | 74 63 68 20 74 68 65 6d | will ma|tch them|
|00003590| 20 61 6e 79 77 68 65 72 | 65 20 6f 6e 20 74 68 65 | anywher|e on the|
|000035a0| 20 66 69 6c 65 20 73 79 | 73 74 65 6d 2e 0a 58 2e | file sy|stem..X.|
|000035b0| 69 66 20 21 27 5c 6e 4f | 27 32 27 20 5c 7b 5c 0a |if !'\nO|'2' \{\.|
|000035c0| 58 2e 50 50 0a 58 49 6e | 20 61 64 64 69 74 69 6f |X.PP.XIn| additio|
|000035d0| 6e 2c 20 69 66 20 74 68 | 65 0a 58 2e 49 20 66 72 |n, if th|e.X.I fr|
|000035e0| 6f 6d 0a 58 70 61 74 74 | 65 72 6e 0a 58 28 6f 72 |om.Xpatt|ern.X(or|
|000035f0| 20 74 68 65 0a 58 2e 49 | 20 74 6f 0a 58 70 61 74 | the.X.I| to.Xpat|
|00003600| 74 65 72 6e 29 0a 58 62 | 65 67 69 6e 73 20 77 69 |tern).Xb|egins wi|
|00003610| 74 68 20 22 7e 2f 22 2c | 20 74 68 65 20 27 7e 27 |th "~/",| the '~'|
|00003620| 20 69 73 20 72 65 70 6c | 61 63 65 64 20 77 69 74 | is repl|aced wit|
|00003630| 68 20 74 68 65 20 68 6f | 6d 65 20 64 69 72 65 63 |h the ho|me direc|
|00003640| 74 6f 72 79 20 6e 61 6d | 65 2e 0a 58 28 4e 6f 74 |tory nam|e..X(Not|
|00003650| 65 20 74 68 61 74 20 74 | 68 65 20 22 7e 75 73 65 |e that t|he "~use|
|00003660| 72 22 20 66 65 61 74 75 | 72 65 20 6f 66 0a 58 2e |r" featu|re of.X.|
|00003670| 49 52 20 63 73 68 20 28 | 31 29 0a 58 69 73 20 6e |IR csh (|1).Xis n|
|00003680| 6f 74 20 69 6d 70 6c 65 | 6d 65 6e 74 65 64 2e 29 |ot imple|mented.)|
|00003690| 0a 58 48 6f 77 65 76 65 | 72 2c 20 74 68 65 20 27 |.XHoweve|r, the '|
|000036a0| 7e 27 20 69 73 20 6e 6f | 74 20 74 72 65 61 74 65 |~' is no|t treate|
|000036b0| 64 20 61 73 20 61 20 77 | 69 6c 64 63 61 72 64 2c |d as a w|ildcard,|
|000036c0| 0a 58 69 6e 20 74 68 65 | 20 73 65 6e 73 65 20 74 |.Xin the| sense t|
|000036d0| 68 61 74 20 69 74 20 69 | 73 20 6e 6f 74 20 61 73 |hat it i|s not as|
|000036e0| 73 69 67 6e 65 64 20 61 | 20 77 69 6c 64 63 61 72 |signed a| wildcar|
|000036f0| 64 20 69 6e 64 65 78 20 | 28 73 65 65 20 62 65 6c |d index |(see bel|
|00003700| 6f 77 29 2e 0a 58 5c 7d | 0a 58 2e 50 50 0a 58 53 |ow)..X\}|.X.PP.XS|
|00003710| 69 6e 63 65 20 6d 61 74 | 63 68 69 6e 67 20 61 20 |ince mat|ching a |
|00003720| 64 69 72 65 63 74 6f 72 | 79 20 75 6e 64 65 72 20 |director|y under |
|00003730| 61 20 74 61 73 6b 20 6f | 70 74 69 6f 6e 20 6f 74 |a task o|ption ot|
|00003740| 68 65 72 20 74 68 61 6e | 20 2d 72 20 6f 72 20 2d |her than| -r or -|
|00003750| 73 0a 58 77 6f 75 6c 64 | 20 72 65 73 75 6c 74 20 |s.Xwould| result |
|00003760| 69 6e 20 61 6e 20 65 72 | 72 6f 72 2c 0a 58 74 61 |in an er|ror,.Xta|
|00003770| 73 6b 73 20 6f 74 68 65 | 72 20 74 68 61 6e 20 2d |sks othe|r than -|
|00003780| 72 20 61 6e 64 20 2d 73 | 0a 58 6d 61 74 63 68 20 |r and -s|.Xmatch |
|00003790| 64 69 72 65 63 74 6f 72 | 69 65 73 20 6f 6e 6c 79 |director|ies only|
|000037a0| 20 61 67 61 69 6e 73 74 | 20 63 6f 6d 70 6c 65 74 | against| complet|
|000037b0| 65 6c 79 20 65 78 70 6c | 69 63 69 74 0a 58 2e 49 |ely expl|icit.X.I|
|000037c0| 20 66 72 6f 6d 0a 58 70 | 61 74 74 65 72 6e 73 20 | from.Xp|atterns |
|000037d0| 28 69 2e 65 2e 20 6e 6f | 74 20 63 6f 6e 74 61 69 |(i.e. no|t contai|
|000037e0| 6e 69 6e 67 20 77 69 6c | 64 63 61 72 64 73 29 2e |ning wil|dcards).|
|000037f0| 0a 58 55 6e 64 65 72 20 | 2d 72 20 61 6e 64 20 2d |.XUnder |-r and -|
|00003800| 73 2c 20 74 68 69 73 20 | 61 70 70 6c 69 65 73 20 |s, this |applies |
|00003810| 6f 6e 6c 79 20 74 6f 20 | 22 2e 22 20 61 6e 64 20 |only to |"." and |
|00003820| 22 2e 2e 22 2e 0a 58 2e | 50 50 0a 58 2e 69 65 20 |".."..X.|PP.X.ie |
|00003830| 27 5c 6e 4f 27 32 27 20 | 5c 7b 5c 0a 58 48 69 64 |'\nO'2' |\{\.XHid|
|00003840| 64 65 6e 20 61 6e 64 20 | 73 79 73 74 65 6d 20 66 |den and |system f|
|00003850| 69 6c 65 73 20 61 72 65 | 20 61 6c 73 6f 20 6f 6e |iles are| also on|
|00003860| 6c 79 20 6d 61 74 63 68 | 65 64 0a 58 61 67 61 69 |ly match|ed.Xagai|
|00003870| 6e 73 74 20 63 6f 6d 70 | 6c 65 74 65 6c 79 20 65 |nst comp|letely e|
|00003880| 78 70 6c 69 63 69 74 0a | 58 2e 49 20 66 72 6f 6d |xplicit.|X.I from|
|00003890| 0a 58 70 61 74 74 65 72 | 6e 73 2e 0a 58 5c 7d 0a |.Xpatter|ns..X\}.|
|000038a0| 58 2e 65 6c 20 5c 7b 5c | 0a 58 46 69 6c 65 73 20 |X.el \{\|.XFiles |
|000038b0| 62 65 67 69 6e 6e 69 6e | 67 20 77 69 74 68 20 27 |beginnin|g with '|
|000038c0| 2e 27 20 61 72 65 20 6f | 6e 6c 79 20 6d 61 74 63 |.' are o|nly matc|
|000038d0| 68 65 64 20 61 67 61 69 | 6e 73 74 0a 58 2e 49 20 |hed agai|nst.X.I |
|000038e0| 66 72 6f 6d 0a 58 70 61 | 74 74 65 72 6e 73 20 74 |from.Xpa|tterns t|
|000038f0| 68 61 74 20 62 65 67 69 | 6e 20 77 69 74 68 20 61 |hat begi|n with a|
|00003900| 6e 20 65 78 70 6c 69 63 | 69 74 20 27 2e 27 2e 0a |n explic|it '.'..|
|00003910| 58 5c 7d 0a 58 48 6f 77 | 65 76 65 72 2c 20 69 66 |X\}.XHow|ever, if|
|00003920| 20 2d 68 20 69 73 20 73 | 70 65 63 69 66 69 65 64 | -h is s|pecified|
|00003930| 2c 20 74 68 65 79 20 61 | 72 65 20 6d 61 74 63 68 |, they a|re match|
|00003940| 65 64 20 6e 6f 72 6d 61 | 6c 6c 79 2e 0a 58 2e 69 |ed norma|lly..X.i|
|00003950| 66 20 21 27 5c 6e 4f 27 | 32 27 20 5c 7b 5c 0a 58 |f !'\nO'|2' \{\.X|
|00003960| 2e 50 50 0a 58 57 61 72 | 6e 69 6e 67 3a 20 73 69 |.PP.XWar|ning: si|
|00003970| 6e 63 65 20 74 68 65 20 | 73 68 65 6c 6c 20 6e 6f |nce the |shell no|
|00003980| 72 6d 61 6c 6c 79 20 65 | 78 70 61 6e 64 73 20 77 |rmally e|xpands w|
|00003990| 69 6c 64 63 61 72 64 73 | 0a 58 62 65 66 6f 72 65 |ildcards|.Xbefore|
|000039a0| 20 70 61 73 73 69 6e 67 | 20 74 68 65 20 63 6f 6d | passing| the com|
|000039b0| 6d 61 6e 64 2d 6c 69 6e | 65 20 61 72 67 75 6d 65 |mand-lin|e argume|
|000039c0| 6e 74 73 20 74 6f 0a 58 | 2e 49 52 20 6d 6d 76 20 |nts to.X|.IR mmv |
|000039d0| 2c 0a 58 69 74 20 69 73 | 20 75 73 75 61 6c 6c 79 |,.Xit is| usually|
|000039e0| 20 6e 65 63 65 73 73 61 | 72 79 20 74 6f 20 65 6e | necessa|ry to en|
|000039f0| 63 6c 6f 73 65 20 74 68 | 65 20 63 6f 6d 6d 61 6e |close th|e comman|
|00003a00| 64 2d 6c 69 6e 65 0a 58 | 2e 49 20 66 72 6f 6d 0a |d-line.X|.I from.|
|00003a10| 58 70 61 74 74 65 72 6e | 0a 58 69 6e 20 71 75 6f |Xpattern|.Xin quo|
|00003a20| 74 65 73 2e 0a 58 5c 7d | 0a 58 0a 58 2e 63 65 0a |tes..X\}|.X.X.ce.|
|00003a30| 58 54 68 65 20 5c 66 49 | 54 6f 5c 66 50 20 50 61 |XThe \fI|To\fP Pa|
|00003a40| 74 74 65 72 6e 0a 58 2e | 50 50 0a 58 54 68 65 0a |ttern.X.|PP.XThe.|
|00003a50| 58 2e 49 20 74 6f 0a 58 | 70 61 74 74 65 72 6e 20 |X.I to.X|pattern |
|00003a60| 69 73 20 61 20 66 69 6c | 65 6e 61 6d 65 0a 58 77 |is a fil|ename.Xw|
|00003a70| 69 74 68 20 65 6d 62 65 | 64 64 65 64 0a 58 2e 49 |ith embe|dded.X.I|
|00003a80| 20 77 69 6c 64 63 61 72 | 64 0a 58 2e 49 52 20 69 | wildcar|d.X.IR i|
|00003a90| 6e 64 65 78 65 73 20 2c | 0a 58 77 68 65 72 65 20 |ndexes ,|.Xwhere |
|00003aa0| 61 6e 20 69 6e 64 65 78 | 20 63 6f 6e 73 69 73 74 |an index| consist|
|00003ab0| 73 20 6f 66 20 74 68 65 | 20 63 68 61 72 61 63 74 |s of the| charact|
|00003ac0| 65 72 20 27 3d 27 0a 58 | 66 6f 6c 6c 6f 77 65 64 |er '='.X|followed|
|00003ad0| 20 62 79 20 61 20 73 74 | 72 69 6e 67 20 6f 66 20 | by a st|ring of |
|00003ae0| 64 69 67 69 74 73 2e 0a | 58 57 68 65 6e 20 61 20 |digits..|XWhen a |
|00003af0| 73 6f 75 72 63 65 20 66 | 69 6c 65 20 6d 61 74 63 |source f|ile matc|
|00003b00| 68 65 73 20 61 0a 58 2e | 49 20 66 72 6f 6d 0a 58 |hes a.X.|I from.X|
|00003b10| 70 61 74 74 65 72 6e 2c | 0a 58 61 20 74 61 72 67 |pattern,|.Xa targ|
|00003b20| 65 74 20 6e 61 6d 65 20 | 66 6f 72 20 74 68 65 20 |et name |for the |
|00003b30| 66 69 6c 65 20 69 73 20 | 63 6f 6e 73 74 72 75 63 |file is |construc|
|00003b40| 74 65 64 20 6f 75 74 20 | 6f 66 20 74 68 65 0a 58 |ted out |of the.X|
|00003b50| 2e 49 20 74 6f 0a 58 70 | 61 74 74 65 72 6e 20 62 |.I to.Xp|attern b|
|00003b60| 79 0a 58 72 65 70 6c 61 | 63 69 6e 67 20 74 68 65 |y.Xrepla|cing the|
|00003b70| 20 77 69 6c 64 63 61 72 | 64 20 69 6e 64 65 78 65 | wildcar|d indexe|
|00003b80| 73 20 62 79 20 74 68 65 | 0a 58 61 63 74 75 61 6c |s by the|.Xactual|
|00003b90| 20 63 68 61 72 61 63 74 | 65 72 73 20 74 68 61 74 | charact|ers that|
|00003ba0| 20 6d 61 74 63 68 65 64 | 20 74 68 65 20 72 65 66 | matched| the ref|
|00003bb0| 65 72 65 6e 63 65 64 20 | 77 69 6c 64 63 61 72 64 |erenced |wildcard|
|00003bc0| 73 0a 58 69 6e 20 74 68 | 65 20 73 6f 75 72 63 65 |s.Xin th|e source|
|00003bd0| 20 6e 61 6d 65 2e 0a 58 | 54 68 75 73 2c 20 69 66 | name..X|Thus, if|
|00003be0| 20 74 68 65 0a 58 2e 49 | 20 66 72 6f 6d 0a 58 70 | the.X.I| from.Xp|
|00003bf0| 61 74 74 65 72 6e 20 69 | 73 20 22 61 62 63 2a 2e |attern i|s "abc*.|
|00003c00| 2a 22 20 61 6e 64 20 74 | 68 65 0a 58 2e 49 20 74 |*" and t|he.X.I t|
|00003c10| 6f 0a 58 70 61 74 74 65 | 72 6e 20 69 73 20 22 78 |o.Xpatte|rn is "x|
|00003c20| 79 7a 3d 32 2e 3d 31 22 | 2c 0a 58 74 68 65 6e 20 |yz=2.=1"|,.Xthen |
|00003c30| 22 61 62 63 2e 74 78 74 | 22 20 69 73 20 74 61 72 |"abc.txt|" is tar|
|00003c40| 67 65 74 65 64 20 74 6f | 20 22 78 79 7a 74 78 74 |geted to| "xyztxt|
|00003c50| 2e 22 2e 0a 58 28 54 68 | 65 20 66 69 72 73 74 20 |."..X(Th|e first |
|00003c60| 27 2a 27 20 6d 61 74 63 | 68 65 64 20 22 22 2c 20 |'*' matc|hed "", |
|00003c70| 61 6e 64 20 74 68 65 20 | 73 65 63 6f 6e 64 20 6d |and the |second m|
|00003c80| 61 74 63 68 65 64 20 22 | 74 78 74 22 2e 29 0a 58 |atched "|txt".).X|
|00003c90| 53 69 6d 69 6c 61 72 6c | 79 2c 20 66 6f 72 20 74 |Similarl|y, for t|
|00003ca0| 68 65 20 70 61 74 74 65 | 72 6e 20 70 61 69 72 20 |he patte|rn pair |
|00003cb0| 22 3b 2a 2e 5b 63 6c 70 | 5d 22 20 2d 3e 20 22 3d |";*.[clp|]" -> "=|
|00003cc0| 31 3d 33 5c 2a 28 53 4c | 3d 32 22 2c 0a 58 22 66 |1=3\*(SL|=2",.X"f|
|00003cd0| 6f 6f 31 5c 2a 28 53 4c | 66 6f 6f 32 5c 2a 28 53 |oo1\*(SL|foo2\*(S|
|00003ce0| 4c 70 72 6f 67 2e 63 22 | 20 69 73 20 74 61 72 67 |Lprog.c"| is targ|
|00003cf0| 65 74 65 64 20 74 6f 20 | 22 66 6f 6f 31 5c 2a 28 |eted to |"foo1\*(|
|00003d00| 53 4c 66 6f 6f 32 5c 2a | 28 53 4c 63 5c 2a 28 53 |SLfoo2\*|(SLc\*(S|
|00003d10| 4c 70 72 6f 67 22 2e 0a | 58 4e 6f 74 65 20 74 68 |Lprog"..|XNote th|
|00003d20| 61 74 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 27 |at there| is no '|
|00003d30| 5c 2a 28 53 4c 27 20 66 | 6f 6c 6c 6f 77 69 6e 67 |\*(SL' f|ollowing|
|00003d40| 20 74 68 65 20 22 3d 31 | 22 20 69 6e 20 74 68 65 | the "=1|" in the|
|00003d50| 0a 58 2e 49 20 74 6f 0a | 58 70 61 74 74 65 72 6e |.X.I to.|Xpattern|
|00003d60| 2c 0a 58 73 69 6e 63 65 | 20 74 68 65 20 73 74 72 |,.Xsince| the str|
|00003d70| 69 6e 67 20 6d 61 74 63 | 68 65 64 20 62 79 20 61 |ing matc|hed by a|
|00003d80| 6e 79 20 27 3b 27 20 69 | 73 20 61 6c 77 61 79 73 |ny ';' i|s always|
|00003d90| 20 65 69 74 68 65 72 20 | 65 6d 70 74 79 0a 58 6f | either |empty.Xo|
|00003da0| 72 20 65 6e 64 73 20 69 | 6e 20 61 20 27 5c 2a 28 |r ends i|n a '\*(|
|00003db0| 53 4c 27 2e 0a 58 49 6e | 20 74 68 69 73 20 63 61 |SL'..XIn| this ca|
|00003dc0| 73 65 2c 20 69 74 20 6d | 61 74 63 68 65 73 20 22 |se, it m|atches "|
|00003dd0| 66 6f 6f 31 5c 2a 28 53 | 4c 66 6f 6f 32 5c 2a 28 |foo1\*(S|Lfoo2\*(|
|00003de0| 53 4c 22 2e 0a 58 2e 69 | 66 20 21 27 5c 6e 4f 27 |SL"..X.i|f !'\nO'|
|00003df0| 32 27 20 5c 7b 5c 0a 58 | 2e 50 50 0a 58 54 6f 20 |2' \{\.X|.PP.XTo |
|00003e00| 63 6f 6e 76 65 72 74 20 | 74 68 65 20 73 74 72 69 |convert |the stri|
|00003e10| 6e 67 20 6d 61 74 63 68 | 65 64 20 62 79 20 61 20 |ng match|ed by a |
|00003e20| 77 69 6c 64 63 61 72 64 | 0a 58 74 6f 20 65 69 74 |wildcard|.Xto eit|
|00003e30| 68 65 72 20 6c 6f 77 65 | 72 63 61 73 65 20 6f 72 |her lowe|rcase or|
|00003e40| 20 75 70 70 65 72 63 61 | 73 65 20 62 65 66 6f 72 | upperca|se befor|
|00003e50| 65 20 65 6d 62 65 64 64 | 69 6e 67 20 69 74 20 69 |e embedd|ing it i|
|00003e60| 6e 20 74 68 65 20 74 61 | 72 67 65 74 20 6e 61 6d |n the ta|rget nam|
|00003e70| 65 2c 0a 58 69 6e 73 65 | 72 74 20 27 6c 27 20 6f |e,.Xinse|rt 'l' o|
|00003e80| 72 20 27 75 27 2c 20 72 | 65 73 70 65 63 74 69 76 |r 'u', r|espectiv|
|00003e90| 65 6c 79 2c 0a 58 62 65 | 74 77 65 65 6e 20 74 68 |ely,.Xbe|tween th|
|00003ea0| 65 20 27 3d 27 20 61 6e | 64 20 74 68 65 20 73 74 |e '=' an|d the st|
|00003eb0| 72 69 6e 67 20 6f 66 20 | 64 69 67 69 74 73 2e 0a |ring of |digits..|
|00003ec0| 58 2e 50 50 0a 58 54 68 | 65 0a 58 2e 49 20 74 6f |X.PP.XTh|e.X.I to|
|00003ed0| 0a 58 70 61 74 74 65 72 | 6e 2c 0a 58 6c 69 6b 65 |.Xpatter|n,.Xlike|
|00003ee0| 20 74 68 65 0a 58 2e 49 | 20 66 72 6f 6d 0a 58 70 | the.X.I| from.Xp|
|00003ef0| 61 74 74 65 72 6e 2c 0a | 58 63 61 6e 20 62 65 67 |attern,.|Xcan beg|
|00003f00| 69 6e 20 77 69 74 68 20 | 61 20 22 7e 2f 22 20 28 |in with |a "~/" (|
|00003f10| 73 65 65 20 61 62 6f 76 | 65 29 2e 0a 58 54 68 69 |see abov|e)..XThi|
|00003f20| 73 20 64 6f 65 73 20 6e | 6f 74 20 6e 65 63 65 73 |s does n|ot neces|
|00003f30| 73 69 74 61 74 65 20 65 | 6e 63 6c 6f 73 69 6e 67 |sitate e|nclosing|
|00003f40| 20 74 68 65 0a 58 2e 49 | 20 74 6f 0a 58 70 61 74 | the.X.I| to.Xpat|
|00003f50| 74 65 72 6e 20 69 6e 20 | 71 75 6f 74 65 73 20 6f |tern in |quotes o|
|00003f60| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |n the co|mmand li|
|00003f70| 6e 65 0a 58 73 69 6e 63 | 65 0a 58 2e 49 52 20 63 |ne.Xsinc|e.X.IR c|
|00003f80| 73 68 20 28 31 29 0a 58 | 65 78 70 61 6e 64 73 20 |sh (1).X|expands |
|00003f90| 74 68 65 20 27 7e 27 20 | 69 6e 20 74 68 65 20 65 |the '~' |in the e|
|00003fa0| 78 61 63 74 20 73 61 6d | 65 20 6d 61 6e 6e 65 72 |xact sam|e manner|
|00003fb0| 20 61 73 0a 58 2e 49 20 | 6d 6d 76 0a 58 28 6f 72 | as.X.I |mmv.X(or|
|00003fc0| 2c 20 69 6e 20 74 68 65 | 20 63 61 73 65 20 6f 66 |, in the| case of|
|00003fd0| 0a 58 2e 49 52 20 73 68 | 20 28 31 29 2c 0a 58 64 |.X.IR sh| (1),.Xd|
|00003fe0| 6f 65 73 20 6e 6f 74 20 | 65 78 70 61 6e 64 20 69 |oes not |expand i|
|00003ff0| 74 20 61 74 20 61 6c 6c | 29 2e 0a 58 5c 7d 0a 58 |t at all|)..X\}.X|
|00004000| 2e 50 50 0a 58 46 6f 72 | 20 61 6c 6c 20 74 61 73 |.PP.XFor| all tas|
|00004010| 6b 20 6f 70 74 69 6f 6e | 73 20 6f 74 68 65 72 20 |k option|s other |
|00004020| 74 68 61 6e 20 2d 72 2c | 20 69 66 20 74 68 65 20 |than -r,| if the |
|00004030| 74 61 72 67 65 74 20 6e | 61 6d 65 20 69 73 20 61 |target n|ame is a|
|00004040| 20 64 69 72 65 63 74 6f | 72 79 2c 0a 58 74 68 65 | directo|ry,.Xthe|
|00004050| 20 72 65 61 6c 20 74 61 | 72 67 65 74 20 6e 61 6d | real ta|rget nam|
|00004060| 65 20 69 73 20 66 6f 72 | 6d 65 64 20 62 79 20 61 |e is for|med by a|
|00004070| 70 70 65 6e 64 69 6e 67 | 0a 58 61 20 27 5c 2a 28 |ppending|.Xa '\*(|
|00004080| 53 4c 27 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 |SL' foll|owed by |
|00004090| 74 68 65 20 6c 61 73 74 | 20 63 6f 6d 70 6f 6e 65 |the last| compone|
|000040a0| 6e 74 0a 58 6f 66 20 74 | 68 65 20 73 6f 75 72 63 |nt.Xof t|he sourc|
|000040b0| 65 20 66 69 6c 65 20 6e | 61 6d 65 2e 0a 58 46 6f |e file n|ame..XFo|
|000040c0| 72 20 65 78 61 6d 70 6c | 65 2c 20 22 6d 6d 76 20 |r exampl|e, "mmv |
|000040d0| 64 69 72 31 5c 2a 28 53 | 4c 61 20 64 69 72 32 22 |dir1\*(S|La dir2"|
|000040e0| 20 77 69 6c 6c 2c 0a 58 | 69 66 20 22 64 69 72 32 | will,.X|if "dir2|
|000040f0| 22 20 69 73 20 69 6e 64 | 65 65 64 20 61 20 64 69 |" is ind|eed a di|
|00004100| 72 65 63 74 6f 72 79 2c | 20 61 63 74 75 61 6c 6c |rectory,| actuall|
|00004110| 79 20 6d 6f 76 65 20 22 | 64 69 72 31 5c 2a 28 53 |y move "|dir1\*(S|
|00004120| 4c 61 22 20 74 6f 20 22 | 64 69 72 32 5c 2a 28 53 |La" to "|dir2\*(S|
|00004130| 4c 61 22 2e 0a 58 48 6f | 77 65 76 65 72 2c 20 69 |La"..XHo|wever, i|
|00004140| 66 20 22 64 69 72 32 5c | 2a 28 53 4c 61 22 20 61 |f "dir2\|*(SLa" a|
|00004150| 6c 72 65 61 64 79 20 65 | 78 69 73 74 73 20 61 6e |lready e|xists an|
|00004160| 64 20 69 73 20 69 74 73 | 65 6c 66 20 61 20 64 69 |d is its|elf a di|
|00004170| 72 65 63 74 6f 72 79 2c | 0a 58 74 68 69 73 20 69 |rectory,|.Xthis i|
|00004180| 73 20 63 6f 6e 73 69 64 | 65 72 65 64 20 61 6e 20 |s consid|ered an |
|00004190| 65 72 72 6f 72 2e 0a 58 | 2e 50 50 0a 58 54 6f 20 |error..X|.PP.XTo |
|000041a0| 73 74 72 69 70 20 61 6e | 79 20 63 68 61 72 61 63 |strip an|y charac|
|000041b0| 74 65 72 20 28 65 2e 67 | 2e 20 27 2a 27 2c 20 27 |ter (e.g|. '*', '|
|000041c0| 3f 27 2c 20 6f 72 20 27 | 3d 27 29 0a 58 6f 66 20 |?', or '|=').Xof |
|000041d0| 69 74 73 20 73 70 65 63 | 69 61 6c 20 6d 65 61 6e |its spec|ial mean|
|000041e0| 69 6e 67 20 74 6f 0a 58 | 2e 49 52 20 6d 6d 76 20 |ing to.X|.IR mmv |
|000041f0| 2c 0a 58 61 73 20 77 68 | 65 6e 20 74 68 65 20 61 |,.Xas wh|en the a|
|00004200| 63 74 75 61 6c 20 72 65 | 70 6c 61 63 65 6d 65 6e |ctual re|placemen|
|00004210| 74 20 6e 61 6d 65 20 6d | 75 73 74 20 63 6f 6e 74 |t name m|ust cont|
|00004220| 61 69 6e 20 74 68 65 20 | 63 68 61 72 61 63 74 65 |ain the |characte|
|00004230| 72 20 27 3d 27 2c 0a 58 | 70 72 65 63 65 64 65 20 |r '=',.X|precede |
|00004240| 74 68 65 20 73 70 65 63 | 69 61 6c 20 63 68 61 72 |the spec|ial char|
|00004250| 61 63 74 65 72 20 77 69 | 74 68 20 61 0a 58 2e 69 |acter wi|th a.X.i|
|00004260| 65 20 27 5c 6e 4f 27 32 | 27 20 5c 7b 5c 0a 58 73 |e '\nO'2|' \{\.Xs|
|00004270| 69 6e 67 6c 65 20 71 75 | 6f 74 65 20 28 27 29 2e |ingle qu|ote (').|
|00004280| 0a 58 5c 7d 0a 58 2e 65 | 6c 20 5c 7b 5c 0a 58 5c |.X\}.X.e|l \{\.X\|
|00004290| 27 5c 5c 27 0a 58 28 61 | 6e 64 20 65 6e 63 6c 6f |'\\'.X(a|nd enclo|
|000042a0| 73 65 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |se the a|rgument |
|000042b0| 69 6e 20 71 75 6f 74 65 | 73 20 62 65 63 61 75 73 |in quote|s becaus|
|000042c0| 65 20 6f 66 20 74 68 65 | 20 73 68 65 6c 6c 29 2e |e of the| shell).|
|000042d0| 0a 58 5c 7d 0a 58 54 68 | 69 73 20 61 6c 73 6f 20 |.X\}.XTh|is also |
|000042e0| 77 6f 72 6b 73 20 74 6f | 20 74 65 72 6d 69 6e 61 |works to| termina|
|000042f0| 74 65 20 61 20 77 69 6c | 64 63 61 72 64 20 69 6e |te a wil|dcard in|
|00004300| 64 65 78 0a 58 77 68 65 | 6e 20 69 74 20 68 61 73 |dex.Xwhe|n it has|
|00004310| 20 74 6f 20 62 65 20 66 | 6f 6c 6c 6f 77 65 64 20 | to be f|ollowed |
|00004320| 62 79 20 61 20 64 69 67 | 69 74 20 69 6e 20 74 68 |by a dig|it in th|
|00004330| 65 20 66 69 6c 65 6e 61 | 6d 65 2c 20 65 2e 67 2e |e filena|me, e.g.|
|00004340| 20 22 61 3d 31 5c 2a 28 | 45 53 31 22 2e 0a 58 0a | "a=1\*(|ES1"..X.|
|00004350| 58 2e 63 65 0a 58 43 68 | 61 69 6e 73 20 61 6e 64 |X.ce.XCh|ains and|
|00004360| 20 43 79 63 6c 65 73 0a | 58 2e 50 50 0a 58 41 20 | Cycles.|X.PP.XA |
|00004370| 63 68 61 69 6e 20 69 73 | 20 61 20 73 65 71 75 65 |chain is| a seque|
|00004380| 6e 63 65 20 6f 66 20 73 | 70 65 63 69 66 69 65 64 |nce of s|pecified|
|00004390| 20 61 63 74 69 6f 6e 73 | 20 77 68 65 72 65 20 74 | actions| where t|
|000043a0| 68 65 20 74 61 72 67 65 | 74 20 6e 61 6d 65 20 6f |he targe|t name o|
|000043b0| 66 0a 58 6f 6e 65 20 61 | 63 74 69 6f 6e 20 72 65 |f.Xone a|ction re|
|000043c0| 66 65 72 73 20 74 6f 20 | 74 68 65 20 73 6f 75 72 |fers to |the sour|
|000043d0| 63 65 20 66 69 6c 65 20 | 6f 66 20 61 6e 6f 74 68 |ce file |of anoth|
|000043e0| 65 72 20 61 63 74 69 6f | 6e 2e 0a 58 46 6f 72 20 |er actio|n..XFor |
|000043f0| 65 78 61 6d 70 6c 65 2c | 0a 58 0a 58 6d 6d 76 0a |example,|.X.Xmmv.|
|00004400| 58 2e 62 72 0a 58 61 20 | 62 0a 58 2e 62 72 0a 58 |X.br.Xa |b.X.br.X|
|00004410| 62 20 63 0a 58 0a 58 73 | 70 65 63 69 66 69 65 73 |b c.X.Xs|pecifies|
|00004420| 20 74 68 65 20 63 68 61 | 69 6e 20 22 61 22 20 2d | the cha|in "a" -|
|00004430| 3e 20 22 62 22 20 2d 3e | 20 22 63 22 2e 0a 58 41 |> "b" ->| "c"..XA|
|00004440| 20 63 79 63 6c 65 20 69 | 73 20 61 20 63 68 61 69 | cycle i|s a chai|
|00004450| 6e 20 77 68 65 72 65 20 | 74 68 65 20 6c 61 73 74 |n where |the last|
|00004460| 20 74 61 72 67 65 74 20 | 6e 61 6d 65 0a 58 72 65 | target |name.Xre|
|00004470| 66 65 72 73 20 62 61 63 | 6b 20 74 6f 20 74 68 65 |fers bac|k to the|
|00004480| 20 66 69 72 73 74 20 73 | 6f 75 72 63 65 20 66 69 | first s|ource fi|
|00004490| 6c 65 2c 0a 58 65 2e 67 | 2e 20 22 6d 6d 76 20 61 |le,.Xe.g|. "mmv a|
|000044a0| 20 61 22 2e 0a 58 2e 49 | 20 4d 6d 76 0a 58 64 65 | a"..X.I| Mmv.Xde|
|000044b0| 74 65 63 74 73 20 63 68 | 61 69 6e 73 20 61 6e 64 |tects ch|ains and|
|000044c0| 20 63 79 63 6c 65 73 20 | 72 65 67 61 72 64 6c 65 | cycles |regardle|
|000044d0| 73 73 20 6f 66 20 74 68 | 65 20 6f 72 64 65 72 20 |ss of th|e order |
|000044e0| 69 6e 20 77 68 69 63 68 | 0a 58 74 68 65 69 72 20 |in which|.Xtheir |
|000044f0| 63 6f 6e 73 74 69 74 75 | 65 6e 74 20 61 63 74 69 |constitu|ent acti|
|00004500| 6f 6e 73 20 61 72 65 20 | 61 63 74 75 61 6c 6c 79 |ons are |actually|
|00004510| 20 67 69 76 65 6e 2e 0a | 58 57 68 65 72 65 20 61 | given..|XWhere a|
|00004520| 6c 6c 6f 77 65 64 2c 20 | 69 2e 65 2e 20 69 6e 20 |llowed, |i.e. in |
|00004530| 6d 6f 76 69 6e 67 2c 20 | 72 65 6e 61 6d 69 6e 67 |moving, |renaming|
|00004540| 2c 20 61 6e 64 20 61 70 | 70 65 6e 64 69 6e 67 20 |, and ap|pending |
|00004550| 66 69 6c 65 73 2c 0a 58 | 63 68 61 69 6e 73 20 61 |files,.X|chains a|
|00004560| 6e 64 20 63 79 63 6c 65 | 73 20 61 72 65 20 68 61 |nd cycle|s are ha|
|00004570| 6e 64 6c 65 64 20 67 72 | 61 63 65 66 75 6c 6c 79 |ndled gr|acefully|
|00004580| 2c 20 62 79 20 70 65 72 | 66 6f 72 6d 69 6e 67 20 |, by per|forming |
|00004590| 74 68 65 6d 20 69 6e 20 | 74 68 65 20 70 72 6f 70 |them in |the prop|
|000045a0| 65 72 0a 58 6f 72 64 65 | 72 2e 0a 58 43 79 63 6c |er.Xorde|r..XCycl|
|000045b0| 65 73 20 61 72 65 20 62 | 72 6f 6b 65 6e 20 62 79 |es are b|roken by|
|000045c0| 20 66 69 72 73 74 20 72 | 65 6e 61 6d 69 6e 67 20 | first r|enaming |
|000045d0| 6f 6e 65 20 6f 66 20 74 | 68 65 20 66 69 6c 65 73 |one of t|he files|
|000045e0| 20 74 6f 20 61 20 74 65 | 6d 70 6f 72 61 72 79 20 | to a te|mporary |
|000045f0| 6e 61 6d 65 0a 58 28 6f | 72 20 6a 75 73 74 20 72 |name.X(o|r just r|
|00004600| 65 6d 65 6d 62 65 72 69 | 6e 67 20 69 74 73 20 6f |ememberi|ng its o|
|00004610| 72 69 67 69 6e 61 6c 20 | 73 69 7a 65 20 77 68 65 |riginal |size whe|
|00004620| 6e 20 64 6f 69 6e 67 20 | 61 70 70 65 6e 64 73 29 |n doing |appends)|
|00004630| 2e 0a 58 0a 58 2e 63 65 | 0a 58 43 6f 6c 6c 69 73 |..X.X.ce|.XCollis|
|00004640| 69 6f 6e 73 20 61 6e 64 | 20 44 65 6c 65 74 69 6f |ions and| Deletio|
|00004650| 6e 73 0a 58 2e 50 50 0a | 58 57 68 65 6e 20 61 6e |ns.X.PP.|XWhen an|
|00004660| 79 20 74 77 6f 20 6f 72 | 20 6d 6f 72 65 20 6d 61 |y two or| more ma|
|00004670| 74 63 68 69 6e 67 20 66 | 69 6c 65 73 0a 58 77 6f |tching f|iles.Xwo|
|00004680| 75 6c 64 20 68 61 76 65 | 20 74 6f 20 62 65 0a 58 |uld have| to be.X|
|00004690| 2e 69 65 20 27 5c 6e 4f | 27 32 27 20 6d 6f 76 65 |.ie '\nO|'2' move|
|000046a0| 64 20 6f 72 20 63 6f 70 | 69 65 64 0a 58 2e 65 6c |d or cop|ied.X.el|
|000046b0| 20 6d 6f 76 65 64 2c 20 | 63 6f 70 69 65 64 2c 20 | moved, |copied, |
|000046c0| 6f 72 20 6c 69 6e 6b 65 | 64 0a 58 74 6f 20 74 68 |or linke|d.Xto th|
|000046d0| 65 20 73 61 6d 65 20 74 | 61 72 67 65 74 20 66 69 |e same t|arget fi|
|000046e0| 6c 65 6e 61 6d 65 2c 0a | 58 2e 49 20 6d 6d 76 0a |lename,.|X.I mmv.|
|000046f0| 58 64 65 74 65 63 74 73 | 20 74 68 65 20 63 6f 6e |Xdetects| the con|
|00004700| 64 69 74 69 6f 6e 20 61 | 73 20 61 6e 20 65 72 72 |dition a|s an err|
|00004710| 6f 72 20 62 65 66 6f 72 | 65 20 70 65 72 66 6f 72 |or befor|e perfor|
|00004720| 6d 69 6e 67 20 61 6e 79 | 20 61 63 74 69 6f 6e 73 |ming any| actions|
|00004730| 2e 0a 58 46 75 72 74 68 | 65 72 6d 6f 72 65 2c 0a |..XFurth|ermore,.|
|00004740| 58 2e 49 20 6d 6d 76 0a | 58 63 68 65 63 6b 73 20 |X.I mmv.|Xchecks |
|00004750| 69 66 20 61 6e 79 20 6f | 66 20 69 74 73 20 61 63 |if any o|f its ac|
|00004760| 74 69 6f 6e 73 20 77 69 | 6c 6c 20 72 65 73 75 6c |tions wi|ll resul|
|00004770| 74 0a 58 69 6e 20 74 68 | 65 20 64 65 73 74 72 75 |t.Xin th|e destru|
|00004780| 63 74 69 6f 6e 20 6f 66 | 20 65 78 69 73 74 69 6e |ction of| existin|
|00004790| 67 20 66 69 6c 65 73 2e | 0a 58 49 66 20 74 68 65 |g files.|.XIf the|
|000047a0| 20 2d 64 20 28 64 65 6c | 65 74 65 29 20 6f 70 74 | -d (del|ete) opt|
|000047b0| 69 6f 6e 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |ion is s|pecified|
|000047c0| 2c 0a 58 61 6c 6c 20 66 | 69 6c 65 20 64 65 6c 65 |,.Xall f|ile dele|
|000047d0| 74 69 6f 6e 73 20 6f 72 | 20 6f 76 65 72 77 72 69 |tions or| overwri|
|000047e0| 74 65 73 20 61 72 65 20 | 64 6f 6e 65 20 73 69 6c |tes are |done sil|
|000047f0| 65 6e 74 6c 79 2e 0a 58 | 55 6e 64 65 72 20 2d 70 |ently..X|Under -p|
|00004800| 20 28 70 72 6f 74 65 63 | 74 29 2c 20 61 6c 6c 20 | (protec|t), all |
|00004810| 64 65 6c 65 74 69 6f 6e | 73 20 6f 72 20 6f 76 65 |deletion|s or ove|
|00004820| 72 77 72 69 74 65 73 0a | 58 28 65 78 63 65 70 74 |rwrites.|X(except|
|00004830| 20 74 68 6f 73 65 20 73 | 70 65 63 69 66 69 65 64 | those s|pecified|
|00004840| 20 77 69 74 68 20 22 28 | 2a 29 22 20 6f 6e 20 74 | with "(|*)" on t|
|00004850| 68 65 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |he stand|ard inpu|
|00004860| 74 2c 20 73 65 65 20 62 | 65 6c 6f 77 29 0a 58 61 |t, see b|elow).Xa|
|00004870| 72 65 20 74 72 65 61 74 | 65 64 20 61 73 20 65 72 |re treat|ed as er|
|00004880| 72 6f 72 73 2e 0a 58 41 | 6e 64 20 69 66 20 6e 65 |rors..XA|nd if ne|
|00004890| 69 74 68 65 72 20 6f 70 | 74 69 6f 6e 20 69 73 20 |ither op|tion is |
|000048a0| 73 70 65 63 69 66 69 65 | 64 2c 0a 58 74 68 65 20 |specifie|d,.Xthe |
|000048b0| 75 73 65 72 20 69 73 20 | 71 75 65 72 69 65 64 20 |user is |queried |
|000048c0| 61 62 6f 75 74 20 65 61 | 63 68 20 64 65 6c 65 74 |about ea|ch delet|
|000048d0| 69 6f 6e 20 6f 72 20 6f | 76 65 72 77 72 69 74 65 |ion or o|verwrite|
|000048e0| 20 73 65 70 61 72 61 74 | 65 6c 79 2e 0a 58 28 41 | separat|ely..X(A|
|000048f0| 20 6e 65 77 20 73 74 72 | 65 61 6d 20 74 6f 0a 58 | new str|eam to.X|
|00004900| 2e 69 65 20 27 5c 6e 4f | 27 32 27 20 22 5c 5c 64 |.ie '\nO|'2' "\\d|
|00004910| 65 76 5c 5c 63 6f 6e 22 | 0a 58 2e 65 6c 20 22 2f |ev\\con"|.X.el "/|
|00004920| 64 65 76 2f 74 74 79 22 | 0a 58 69 73 20 75 73 65 |dev/tty"|.Xis use|
|00004930| 64 20 66 6f 72 20 61 6c | 6c 20 69 6e 74 65 72 61 |d for al|l intera|
|00004940| 63 74 69 76 65 20 71 75 | 65 72 69 65 73 2c 0a 58 |ctive qu|eries,.X|
|00004950| 6e 6f 74 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |not the |standard|
|00004960| 20 69 6e 70 75 74 2e 29 | 0a 58 0a 58 2e 63 65 0a | input.)|.X.X.ce.|
|00004970| 58 45 72 72 6f 72 20 48 | 61 6e 64 6c 69 6e 67 0a |XError H|andling.|
|00004980| 58 2e 50 50 0a 58 57 68 | 65 6e 65 76 65 72 20 61 |X.PP.XWh|enever a|
|00004990| 6e 79 20 65 72 72 6f 72 | 20 69 6e 20 74 68 65 20 |ny error| in the |
|000049a0| 75 73 65 72 27 73 20 61 | 63 74 69 6f 6e 20 73 70 |user's a|ction sp|
|000049b0| 65 63 69 66 69 63 61 74 | 69 6f 6e 73 20 69 73 20 |ecificat|ions is |
|000049c0| 64 65 74 65 63 74 65 64 | 2c 0a 58 61 6e 20 65 72 |detected|,.Xan er|
|000049d0| 72 6f 72 20 6d 65 73 73 | 61 67 65 20 69 73 20 67 |ror mess|age is g|
|000049e0| 69 76 65 6e 20 6f 6e 20 | 74 68 65 20 73 74 61 6e |iven on |the stan|
|000049f0| 64 61 72 64 20 6f 75 74 | 70 75 74 2c 0a 58 61 6e |dard out|put,.Xan|
|00004a00| 64 0a 58 2e 49 20 6d 6d | 76 0a 58 70 72 6f 63 65 |d.X.I mm|v.Xproce|
|00004a10| 65 64 73 20 74 6f 20 63 | 68 65 63 6b 20 74 68 65 |eds to c|heck the|
|00004a20| 20 72 65 73 74 20 6f 66 | 20 74 68 65 20 73 70 65 | rest of| the spe|
|00004a30| 63 69 66 69 65 64 20 61 | 63 74 69 6f 6e 73 2e 0a |cified a|ctions..|
|00004a40| 58 4f 6e 63 65 20 61 6c | 6c 20 65 72 72 6f 72 73 |XOnce al|l errors|
|00004a50| 20 61 72 65 20 64 65 74 | 65 63 74 65 64 2c 0a 58 | are det|ected,.X|
|00004a60| 2e 49 20 6d 6d 76 0a 58 | 71 75 65 72 69 65 73 20 |.I mmv.X|queries |
|00004a70| 74 68 65 20 75 73 65 72 | 20 77 68 65 74 68 65 72 |the user| whether|
|00004a80| 20 68 65 20 77 69 73 68 | 65 73 0a 58 74 6f 20 63 | he wish|es.Xto c|
|00004a90| 6f 6e 74 69 6e 75 65 20 | 62 79 20 61 76 6f 69 64 |ontinue |by avoid|
|00004aa0| 69 6e 67 20 74 68 65 20 | 65 72 72 6f 6e 65 6f 75 |ing the |erroneou|
|00004ab0| 73 20 61 63 74 69 6f 6e | 73 20 6f 72 20 74 6f 20 |s action|s or to |
|00004ac0| 61 62 6f 72 74 20 61 6c | 74 6f 67 65 74 68 65 72 |abort al|together|
|00004ad0| 2e 0a 58 54 68 69 73 20 | 61 6e 64 20 61 6c 6c 20 |..XThis |and all |
|00004ae0| 6f 74 68 65 72 20 71 75 | 65 72 69 65 73 20 6d 61 |other qu|eries ma|
|00004af0| 79 20 62 65 20 61 76 6f | 69 64 65 64 20 62 79 20 |y be avo|ided by |
|00004b00| 73 70 65 63 69 66 79 69 | 6e 67 20 65 69 74 68 65 |specifyi|ng eithe|
|00004b10| 72 20 74 68 65 0a 58 2d | 67 20 28 67 6f 29 20 6f |r the.X-|g (go) o|
|00004b20| 72 20 2d 74 20 28 74 65 | 72 6d 69 6e 61 74 65 29 |r -t (te|rminate)|
|00004b30| 20 6f 70 74 69 6f 6e 2e | 0a 58 54 68 65 20 66 6f | option.|.XThe fo|
|00004b40| 72 6d 65 72 20 77 69 6c | 6c 20 72 65 73 6f 6c 76 |rmer wil|l resolv|
|00004b50| 65 20 61 6c 6c 20 64 69 | 66 66 69 63 75 6c 74 69 |e all di|fficulti|
|00004b60| 65 73 20 62 79 20 61 76 | 6f 69 64 69 6e 67 20 74 |es by av|oiding t|
|00004b70| 68 65 20 65 72 72 6f 6e | 65 6f 75 73 20 61 63 74 |he erron|eous act|
|00004b80| 69 6f 6e 73 3b 0a 58 74 | 68 65 20 6c 61 74 74 65 |ions;.Xt|he latte|
|00004b90| 72 20 77 69 6c 6c 20 61 | 62 6f 72 74 0a 58 2e 49 |r will a|bort.X.I|
|00004ba0| 20 6d 6d 76 0a 58 69 66 | 20 61 6e 79 20 65 72 72 | mmv.Xif| any err|
|00004bb0| 6f 72 73 20 61 72 65 20 | 64 65 74 65 63 74 65 64 |ors are |detected|
|00004bc0| 2e 0a 58 53 70 65 63 69 | 66 79 69 6e 67 20 65 69 |..XSpeci|fying ei|
|00004bd0| 74 68 65 72 20 6f 66 20 | 74 68 65 6d 20 64 65 66 |ther of |them def|
|00004be0| 61 75 6c 74 73 0a 58 2e | 49 20 6d 6d 76 0a 58 74 |aults.X.|I mmv.Xt|
|00004bf0| 6f 20 2d 70 2c 20 75 6e | 6c 65 73 73 20 2d 64 20 |o -p, un|less -d |
|00004c00| 69 73 20 73 70 65 63 69 | 66 69 65 64 0a 58 28 73 |is speci|fied.X(s|
|00004c10| 65 65 20 61 62 6f 76 65 | 29 2e 0a 58 54 68 75 73 |ee above|)..XThus|
|00004c20| 2c 20 2d 67 20 61 6e 64 | 20 2d 74 20 61 72 65 20 |, -g and| -t are |
|00004c30| 6d 6f 73 74 20 75 73 65 | 66 75 6c 20 77 68 65 6e |most use|ful when|
|00004c40| 20 72 75 6e 6e 69 6e 67 | 0a 58 2e 49 20 6d 6d 76 | running|.X.I mmv|
|00004c50| 0a 58 69 6e 20 74 68 65 | 20 62 61 63 6b 67 72 6f |.Xin the| backgro|
|00004c60| 75 6e 64 20 6f 72 20 69 | 6e 0a 58 61 20 73 68 65 |und or i|n.Xa she|
|00004c70| 6c 6c 20 73 63 72 69 70 | 74 2c 0a 58 77 68 65 6e |ll scrip|t,.Xwhen|
|00004c80| 20 69 6e 74 65 72 61 63 | 74 69 76 65 20 71 75 65 | interac|tive que|
|00004c90| 72 69 65 73 20 61 72 65 | 20 75 6e 64 65 73 69 72 |ries are| undesir|
|00004ca0| 61 62 6c 65 2e 0a 58 0a | 58 2e 63 65 0a 58 52 65 |able..X.|X.ce.XRe|
|00004cb0| 70 6f 72 74 73 0a 58 2e | 50 50 0a 58 4f 6e 63 65 |ports.X.|PP.XOnce|
|00004cc0| 20 74 68 65 20 61 63 74 | 69 6f 6e 73 20 74 6f 20 | the act|ions to |
|00004cd0| 62 65 20 70 65 72 66 6f | 72 6d 65 64 20 61 72 65 |be perfo|rmed are|
|00004ce0| 20 64 65 74 65 72 6d 69 | 6e 65 64 2c 0a 58 2e 49 | determi|ned,.X.I|
|00004cf0| 20 6d 6d 76 0a 58 70 65 | 72 66 6f 72 6d 73 20 74 | mmv.Xpe|rforms t|
|00004d00| 68 65 6d 20 73 69 6c 65 | 6e 74 6c 79 2c 0a 58 75 |hem sile|ntly,.Xu|
|00004d10| 6e 6c 65 73 73 20 65 69 | 74 68 65 72 20 74 68 65 |nless ei|ther the|
|00004d20| 20 2d 76 20 28 76 65 72 | 62 6f 73 65 29 20 6f 72 | -v (ver|bose) or|
|00004d30| 20 2d 6e 20 28 6e 6f 2d | 65 78 65 63 75 74 65 29 | -n (no-|execute)|
|00004d40| 20 6f 70 74 69 6f 6e 20 | 69 73 20 73 70 65 63 69 | option |is speci|
|00004d50| 66 69 65 64 2e 0a 58 54 | 68 65 20 66 6f 72 6d 65 |fied..XT|he forme|
|00004d60| 72 20 63 61 75 73 65 73 | 0a 58 2e 49 20 6d 6d 76 |r causes|.X.I mmv|
|00004d70| 0a 58 74 6f 20 72 65 70 | 6f 72 74 20 65 61 63 68 |.Xto rep|ort each|
|00004d80| 20 70 65 72 66 6f 72 6d | 65 64 20 61 63 74 69 6f | perform|ed actio|
|00004d90| 6e 0a 58 6f 6e 20 74 68 | 65 20 73 74 61 6e 64 61 |n.Xon th|e standa|
|00004da0| 72 64 20 6f 75 74 70 75 | 74 20 61 73 0a 58 0a 58 |rd outpu|t as.X.X|
|00004db0| 61 20 2d 3e 20 62 20 3a | 20 64 6f 6e 65 2e 0a 58 |a -> b :| done..X|
|00004dc0| 0a 58 48 65 72 65 2c 20 | 22 61 22 20 61 6e 64 20 |.XHere, |"a" and |
|00004dd0| 22 62 22 20 77 6f 75 6c | 64 20 62 65 20 72 65 70 |"b" woul|d be rep|
|00004de0| 6c 61 63 65 64 20 62 79 | 20 74 68 65 20 73 6f 75 |laced by| the sou|
|00004df0| 72 63 65 20 61 6e 64 20 | 74 61 72 67 65 74 20 6e |rce and |target n|
|00004e00| 61 6d 65 73 2c 0a 58 72 | 65 73 70 65 63 74 69 76 |ames,.Xr|espectiv|
|00004e10| 65 6c 79 2e 0a 58 49 66 | 20 74 68 65 20 61 63 74 |ely..XIf| the act|
|00004e20| 69 6f 6e 20 64 65 6c 65 | 74 65 73 20 74 68 65 20 |ion dele|tes the |
|00004e30| 6f 6c 64 20 74 61 72 67 | 65 74 2c 0a 58 61 20 22 |old targ|et,.Xa "|
|00004e40| 28 2a 29 22 20 69 73 20 | 69 6e 73 65 72 74 65 64 |(*)" is |inserted|
|00004e50| 20 61 66 74 65 72 20 74 | 68 65 20 74 68 65 20 74 | after t|he the t|
|00004e60| 61 72 67 65 74 20 6e 61 | 6d 65 2e 0a 58 41 6c 73 |arget na|me..XAls|
|00004e70| 6f 2c 20 74 68 65 20 22 | 2d 3e 22 20 73 79 6d 62 |o, the "|->" symb|
|00004e80| 6f 6c 20 69 73 20 6d 6f | 64 69 66 69 65 64 20 77 |ol is mo|dified w|
|00004e90| 68 65 6e 20 61 20 63 79 | 63 6c 65 20 68 61 73 20 |hen a cy|cle has |
|00004ea0| 74 6f 20 62 65 20 62 72 | 6f 6b 65 6e 3a 0a 58 74 |to be br|oken:.Xt|
|00004eb0| 68 65 20 27 3e 27 20 69 | 73 20 63 68 61 6e 67 65 |he '>' i|s change|
|00004ec0| 64 20 74 6f 20 61 20 27 | 5e 27 20 6f 6e 20 74 68 |d to a '|^' on th|
|00004ed0| 65 20 61 63 74 69 6f 6e | 20 70 72 69 6f 72 20 74 |e action| prior t|
|00004ee0| 6f 20 77 68 69 63 68 20 | 74 68 65 20 6f 6c 64 20 |o which |the old |
|00004ef0| 74 61 72 67 65 74 0a 58 | 69 73 20 72 65 6e 61 6d |target.X|is renam|
|00004f00| 65 64 20 74 6f 20 61 20 | 74 65 6d 70 6f 72 61 72 |ed to a |temporar|
|00004f10| 79 2c 0a 58 61 6e 64 20 | 74 68 65 20 27 2d 27 20 |y,.Xand |the '-' |
|00004f20| 69 73 20 63 68 61 6e 67 | 65 64 20 74 6f 20 61 20 |is chang|ed to a |
|00004f30| 27 3d 27 20 6f 6e 20 74 | 68 65 20 61 63 74 69 6f |'=' on t|he actio|
|00004f40| 6e 20 77 68 65 72 65 20 | 74 68 65 20 74 65 6d 70 |n where |the temp|
|00004f50| 6f 72 61 72 79 20 69 73 | 20 75 73 65 64 2e 0a 58 |orary is| used..X|
|00004f60| 2e 50 50 0a 58 55 6e 64 | 65 72 20 2d 6e 2c 20 6e |.PP.XUnd|er -n, n|
|00004f70| 6f 6e 65 20 6f 66 20 74 | 68 65 20 61 63 74 69 6f |one of t|he actio|
|00004f80| 6e 73 20 61 72 65 20 70 | 65 72 66 6f 72 6d 65 64 |ns are p|erformed|
|00004f90| 2c 0a 58 62 75 74 20 6d | 65 73 73 61 67 65 73 20 |,.Xbut m|essages |
|00004fa0| 6c 69 6b 65 20 74 68 65 | 20 61 62 6f 76 65 20 61 |like the| above a|
|00004fb0| 72 65 20 70 72 69 6e 74 | 65 64 20 6f 6e 20 74 68 |re print|ed on th|
|00004fc0| 65 20 73 74 61 6e 64 61 | 72 64 20 6f 75 74 70 75 |e standa|rd outpu|
|00004fd0| 74 0a 58 77 69 74 68 20 | 74 68 65 20 22 3a 20 64 |t.Xwith |the ": d|
|00004fe0| 6f 6e 65 2e 22 20 6f 6d | 69 74 74 65 64 2e 0a 58 |one." om|itted..X|
|00004ff0| 2e 50 50 0a 58 54 68 65 | 20 6f 75 74 70 75 74 20 |.PP.XThe| output |
|00005000| 67 65 6e 65 72 61 74 65 | 64 20 62 79 20 2d 6e 20 |generate|d by -n |
|00005010| 63 61 6e 20 28 61 66 74 | 65 72 20 65 64 69 74 69 |can (aft|er editi|
|00005020| 6e 67 2c 20 69 66 20 64 | 65 73 69 72 65 64 29 0a |ng, if d|esired).|
|00005030| 58 62 65 20 66 65 64 20 | 62 61 63 6b 20 74 6f 0a |Xbe fed |back to.|
|00005040| 58 2e 49 20 6d 6d 76 0a | 58 6f 6e 20 74 68 65 20 |X.I mmv.|Xon the |
|00005050| 73 74 61 6e 64 61 72 64 | 20 69 6e 70 75 74 0a 58 |standard| input.X|
|00005060| 28 62 79 20 6f 6d 69 74 | 74 69 6e 67 20 74 68 65 |(by omit|ting the|
|00005070| 0a 58 2e 49 20 66 72 6f | 6d 0a 58 2d 2d 0a 58 2e |.X.I fro|m.X--.X.|
|00005080| 49 20 74 6f 0a 58 70 61 | 69 72 20 6f 6e 20 74 68 |I to.Xpa|ir on th|
|00005090| 65 0a 58 2e 49 20 6d 6d | 76 0a 58 63 6f 6d 6d 61 |e.X.I mm|v.Xcomma|
|000050a0| 6e 64 20 6c 69 6e 65 29 | 2e 0a 58 54 6f 20 66 61 |nd line)|..XTo fa|
|000050b0| 63 69 6c 69 74 61 74 65 | 20 74 68 69 73 2c 0a 58 |cilitate| this,.X|
|000050c0| 2e 49 20 6d 6d 76 0a 58 | 69 67 6e 6f 72 65 73 20 |.I mmv.X|ignores |
|000050d0| 6c 69 6e 65 73 20 6f 6e | 20 74 68 65 20 73 74 61 |lines on| the sta|
|000050e0| 6e 64 61 72 64 20 69 6e | 70 75 74 20 74 68 61 74 |ndard in|put that|
|000050f0| 20 6c 6f 6f 6b 0a 58 6c | 69 6b 65 20 69 74 73 20 | look.Xl|ike its |
|00005100| 6f 77 6e 20 65 72 72 6f | 72 20 61 6e 64 20 22 64 |own erro|r and "d|
|00005110| 6f 6e 65 22 20 6d 65 73 | 73 61 67 65 73 2c 0a 58 |one" mes|sages,.X|
|00005120| 61 73 20 77 65 6c 6c 20 | 61 73 20 61 6c 6c 20 6c |as well |as all l|
|00005130| 69 6e 65 73 20 62 65 67 | 69 6e 6e 69 6e 67 20 77 |ines beg|inning w|
|00005140| 69 74 68 20 77 68 69 74 | 65 20 73 70 61 63 65 2c |ith whit|e space,|
|00005150| 0a 58 61 6e 64 20 77 69 | 6c 6c 20 61 63 63 65 70 |.Xand wi|ll accep|
|00005160| 74 20 70 61 74 74 65 72 | 6e 20 70 61 69 72 73 20 |t patter|n pairs |
|00005170| 77 69 74 68 20 6f 72 20 | 77 69 74 68 6f 75 74 20 |with or |without |
|00005180| 74 68 65 20 69 6e 74 65 | 72 76 65 6e 69 6e 67 20 |the inte|rvening |
|00005190| 22 2d 3e 22 0a 58 28 6f | 72 20 22 2d 5e 22 2c 20 |"->".X(o|r "-^", |
|000051a0| 22 3d 3e 22 2c 20 6f 72 | 20 22 3d 5e 22 29 2e 0a |"=>", or| "=^")..|
|000051b0| 58 4c 69 6e 65 73 20 77 | 69 74 68 20 22 28 2a 29 |XLines w|ith "(*)|
|000051c0| 22 20 61 66 74 65 72 20 | 74 68 65 20 74 61 72 67 |" after |the targ|
|000051d0| 65 74 20 70 61 74 74 65 | 72 6e 20 68 61 76 65 20 |et patte|rn have |
|000051e0| 74 68 65 20 65 66 66 65 | 63 74 20 6f 66 20 65 6e |the effe|ct of en|
|000051f0| 61 62 6c 69 6e 67 20 2d | 64 0a 58 66 6f 72 20 74 |abling -|d.Xfor t|
|00005200| 68 65 20 66 69 6c 65 73 | 20 6d 61 74 63 68 69 6e |he files| matchin|
|00005210| 67 20 74 68 69 73 20 70 | 61 74 74 65 72 6e 20 6f |g this p|attern o|
|00005220| 6e 6c 79 2c 0a 58 73 6f | 20 74 68 61 74 20 73 75 |nly,.Xso| that su|
|00005230| 63 68 20 64 65 6c 65 74 | 69 6f 6e 73 20 61 72 65 |ch delet|ions are|
|00005240| 20 64 6f 6e 65 20 73 69 | 6c 65 6e 74 6c 79 2e 0a | done si|lently..|
|00005250| 58 57 68 65 6e 20 66 65 | 65 64 69 6e 67 0a 58 2e |XWhen fe|eding.X.|
|00005260| 49 20 6d 6d 76 0a 58 69 | 74 73 20 6f 77 6e 20 6f |I mmv.Xi|ts own o|
|00005270| 75 74 70 75 74 2c 0a 58 | 6f 6e 65 20 6d 75 73 74 |utput,.X|one must|
|00005280| 20 72 65 6d 65 6d 62 65 | 72 20 74 6f 20 73 70 65 | remembe|r to spe|
|00005290| 63 69 66 79 20 61 67 61 | 69 6e 20 74 68 65 20 74 |cify aga|in the t|
|000052a0| 61 73 6b 20 6f 70 74 69 | 6f 6e 20 28 69 66 20 61 |ask opti|on (if a|
|000052b0| 6e 79 29 0a 58 6f 72 69 | 67 69 6e 61 6c 6c 79 20 |ny).Xori|ginally |
|000052c0| 75 73 65 64 20 74 6f 20 | 67 65 6e 65 72 61 74 65 |used to |generate|
|000052d0| 20 69 74 2e 0a 58 2e 50 | 50 0a 58 41 6c 74 68 6f | it..X.P|P.XAltho|
|000052e0| 75 67 68 0a 58 2e 49 20 | 6d 6d 76 0a 58 61 74 74 |ugh.X.I |mmv.Xatt|
|000052f0| 65 6d 70 74 73 20 74 6f | 20 70 72 65 64 69 63 74 |empts to| predict|
|00005300| 20 61 6c 6c 20 6d 69 73 | 68 61 70 73 20 70 72 69 | all mis|haps pri|
|00005310| 6f 72 20 74 6f 20 70 65 | 72 66 6f 72 6d 69 6e 67 |or to pe|rforming|
|00005320| 20 61 6e 79 20 73 70 65 | 63 69 66 69 65 64 20 61 | any spe|cified a|
|00005330| 63 74 69 6f 6e 73 2c 0a | 58 61 63 63 69 64 65 6e |ctions,.|Xacciden|
|00005340| 74 73 20 6d 61 79 20 68 | 61 70 70 65 6e 2e 0a 58 |ts may h|appen..X|
|00005350| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 0a 58 2e 49 |For exam|ple,.X.I|
|00005360| 20 6d 6d 76 0a 58 64 6f | 65 73 20 6e 6f 74 20 63 | mmv.Xdo|es not c|
|00005370| 68 65 63 6b 20 66 6f 72 | 20 61 64 65 71 75 61 74 |heck for| adequat|
|00005380| 65 20 66 72 65 65 20 73 | 70 61 63 65 20 77 68 65 |e free s|pace whe|
|00005390| 6e 20 63 6f 70 79 69 6e | 67 2e 0a 58 54 68 75 73 |n copyin|g..XThus|
|000053a0| 2c 20 64 65 73 70 69 74 | 65 20 61 6c 6c 20 65 66 |, despit|e all ef|
|000053b0| 66 6f 72 74 73 2c 0a 58 | 69 74 20 69 73 20 73 74 |forts,.X|it is st|
|000053c0| 69 6c 6c 20 70 6f 73 73 | 69 62 6c 65 20 66 6f 72 |ill poss|ible for|
|000053d0| 20 61 6e 20 61 63 74 69 | 6f 6e 20 74 6f 20 66 61 | an acti|on to fa|
|000053e0| 69 6c 0a 58 61 66 74 65 | 72 20 73 6f 6d 65 20 6f |il.Xafte|r some o|
|000053f0| 74 68 65 72 73 20 68 61 | 76 65 20 61 6c 72 65 61 |thers ha|ve alrea|
|00005400| 64 79 20 62 65 65 6e 20 | 64 6f 6e 65 2e 0a 58 54 |dy been |done..XT|
|00005410| 6f 20 6d 61 6b 65 20 72 | 65 63 6f 76 65 72 79 20 |o make r|ecovery |
|00005420| 61 73 20 65 61 73 79 20 | 61 73 20 70 6f 73 73 69 |as easy |as possi|
|00005430| 62 6c 65 2c 0a 58 2e 49 | 20 6d 6d 76 0a 58 72 65 |ble,.X.I| mmv.Xre|
|00005440| 70 6f 72 74 73 20 77 68 | 69 63 68 20 61 63 74 69 |ports wh|ich acti|
|00005450| 6f 6e 73 20 68 61 76 65 | 20 61 6c 72 65 61 64 79 |ons have| already|
|00005460| 20 62 65 65 6e 20 64 6f | 6e 65 20 61 6e 64 0a 58 | been do|ne and.X|
|00005470| 77 68 69 63 68 20 61 72 | 65 20 73 74 69 6c 6c 20 |which ar|e still |
|00005480| 74 6f 20 62 65 20 70 65 | 72 66 6f 72 6d 65 64 0a |to be pe|rformed.|
|00005490| 58 61 66 74 65 72 20 73 | 75 63 68 20 61 20 66 61 |Xafter s|uch a fa|
|000054a0| 69 6c 75 72 65 20 6f 63 | 63 75 72 73 2e 0a 58 49 |ilure oc|curs..XI|
|000054b0| 74 20 74 68 65 6e 20 61 | 62 6f 72 74 73 2c 20 6e |t then a|borts, n|
|000054c0| 6f 74 20 61 74 74 65 6d | 70 74 69 6e 67 20 74 6f |ot attem|pting to|
|000054d0| 20 64 6f 20 61 6e 79 74 | 68 69 6e 67 20 65 6c 73 | do anyt|hing els|
|000054e0| 65 2e 0a 58 4f 6e 63 65 | 20 74 68 65 20 75 73 65 |e..XOnce| the use|
|000054f0| 72 20 68 61 73 20 63 6c | 65 61 72 65 64 20 75 70 |r has cl|eared up|
|00005500| 20 74 68 65 20 70 72 6f | 62 6c 65 6d 2c 0a 58 68 | the pro|blem,.Xh|
|00005510| 65 20 63 61 6e 20 66 65 | 65 64 20 74 68 69 73 20 |e can fe|ed this |
|00005520| 72 65 70 6f 72 74 20 62 | 61 63 6b 20 74 6f 0a 58 |report b|ack to.X|
|00005530| 2e 49 20 6d 6d 76 0a 58 | 6f 6e 20 74 68 65 20 73 |.I mmv.X|on the s|
|00005540| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 0a 58 74 |tandard |input.Xt|
|00005550| 6f 20 68 61 76 65 20 69 | 74 20 63 6f 6d 70 6c 65 |o have i|t comple|
|00005560| 74 65 20 74 68 65 20 74 | 61 73 6b 2e 0a 58 28 54 |te the t|ask..X(T|
|00005570| 68 65 20 75 73 65 72 20 | 69 73 20 71 75 65 72 69 |he user |is queri|
|00005580| 65 64 20 66 6f 72 20 61 | 20 66 69 6c 65 20 6e 61 |ed for a| file na|
|00005590| 6d 65 20 74 6f 20 64 75 | 6d 70 20 74 68 69 73 20 |me to du|mp this |
|000055a0| 72 65 70 6f 72 74 0a 58 | 69 66 20 74 68 65 20 73 |report.X|if the s|
|000055b0| 74 61 6e 64 61 72 64 20 | 6f 75 74 70 75 74 20 68 |tandard |output h|
|000055c0| 61 73 20 6e 6f 74 20 62 | 65 65 6e 20 72 65 64 69 |as not b|een redi|
|000055d0| 72 65 63 74 65 64 2e 29 | 0a 58 2e 69 66 20 27 5c |rected.)|.X.if '\|
|000055e0| 6e 4f 27 32 27 20 5c 7b | 5c 0a 58 0a 58 2e 63 65 |nO'2' \{|\.X.X.ce|
|000055f0| 0a 58 5c 66 49 4d 6d 76 | 70 61 74 63 68 5c 66 50 |.X\fIMmv|patch\fP|
|00005600| 0a 58 2e 50 50 0a 58 59 | 6f 75 20 63 61 6e 20 63 |.X.PP.XY|ou can c|
|00005610| 75 73 74 6f 6d 69 7a 65 | 20 61 20 63 6f 70 79 20 |ustomize| a copy |
|00005620| 6f 66 0a 58 2e 49 20 6d | 6d 76 0a 58 76 69 61 20 |of.X.I m|mv.Xvia |
|00005630| 74 68 65 0a 58 2e 49 20 | 6d 6d 76 70 61 74 63 68 |the.X.I |mmvpatch|
|00005640| 0a 58 75 74 69 6c 69 74 | 79 2e 0a 58 49 66 20 79 |.Xutilit|y..XIf y|
|00005650| 6f 75 20 77 69 73 68 20 | 74 6f 20 63 68 61 6e 67 |ou wish |to chang|
|00005660| 65 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 74 61 |e the de|fault ta|
|00005670| 73 6b 20 6f 70 74 69 6f | 6e 2c 0a 58 72 75 6e 0a |sk optio|n,.Xrun.|
|00005680| 58 2e 49 20 6d 6d 76 70 | 61 74 63 68 0a 58 6f 6e |X.I mmvp|atch.Xon|
|00005690| 20 61 20 63 6f 70 79 20 | 6f 66 0a 58 2e 49 20 6d | a copy |of.X.I m|
|000056a0| 6d 76 0a 58 6e 61 6d 65 | 64 20 61 73 20 66 6f 6c |mv.Xname|d as fol|
|000056b0| 6c 6f 77 73 3a 0a 58 0a | 58 09 2d 78 2c 20 2d 6d |lows:.X.|X.-x, -m|
|000056c0| 2c 20 2d 72 09 09 6d 6d | 76 2e 65 78 65 0a 58 2e |, -r..mm|v.exe.X.|
|000056d0| 62 72 0a 58 09 2d 63 2c | 20 2d 6f 09 09 09 6d 63 |br.X.-c,| -o...mc|
|000056e0| 70 2e 65 78 65 0a 58 2e | 62 72 0a 58 09 2d 61 2c |p.exe.X.|br.X.-a,|
|000056f0| 20 2d 7a 09 09 09 6d 61 | 64 2e 65 78 65 0a 58 2e | -z...ma|d.exe.X.|
|00005700| 50 50 0a 58 2e 49 20 4d | 6d 76 70 61 74 63 68 0a |PP.X.I M|mvpatch.|
|00005710| 58 61 6c 73 6f 20 64 65 | 74 65 72 6d 69 6e 65 73 |Xalso de|termines|
|00005720| 20 74 68 65 20 62 65 73 | 74 20 77 61 79 20 74 6f | the bes|t way to|
|00005730| 20 75 6e 69 71 75 65 6c | 79 20 69 64 65 6e 74 69 | uniquel|y identi|
|00005740| 66 79 20 64 69 72 65 63 | 74 6f 72 69 65 73 2e 0a |fy direc|tories..|
|00005750| 58 41 73 20 64 69 73 74 | 72 69 62 75 74 65 64 2c |XAs dist|ributed,|
|00005760| 0a 58 2e 49 20 6d 6d 76 | 0a 58 69 73 20 73 65 74 |.X.I mmv|.Xis set|
|00005770| 20 74 6f 20 75 73 65 20 | 61 20 6d 65 74 68 6f 64 | to use |a method|
|00005780| 20 74 68 61 74 20 69 73 | 20 67 75 61 72 61 6e 74 | that is| guarant|
|00005790| 65 65 64 20 74 6f 20 77 | 6f 72 6b 20 74 68 65 20 |eed to w|ork the |
|000057a0| 73 61 6d 65 20 77 61 79 | 0a 58 66 6f 72 20 61 6c |same way|.Xfor al|
|000057b0| 6c 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 44 4f |l versio|ns of DO|
|000057c0| 53 2c 0a 58 62 75 74 20 | 69 73 20 62 6f 74 68 20 |S,.Xbut |is both |
|000057d0| 73 6c 6f 77 0a 58 61 6e | 64 20 75 6e 61 62 6c 65 |slow.Xan|d unable|
|000057e0| 20 74 6f 20 63 6f 72 72 | 65 63 74 6c 79 20 68 61 | to corr|ectly ha|
|000057f0| 6e 64 6c 65 20 64 72 69 | 76 65 73 0a 58 61 66 66 |ndle dri|ves.Xaff|
|00005800| 65 63 74 65 64 20 62 79 | 20 74 68 65 0a 58 2e 49 |ected by| the.X.I|
|00005810| 20 6a 6f 69 6e 0a 58 61 | 6e 64 0a 58 2e 49 20 73 | join.Xa|nd.X.I s|
|00005820| 75 62 73 74 0a 58 44 4f | 53 20 63 6f 6d 6d 61 6e |ubst.XDO|S comman|
|00005830| 64 73 2e 0a 58 41 6c 74 | 65 72 6e 61 74 69 76 65 |ds..XAlt|ernative|
|00005840| 6c 79 2c 0a 58 74 68 65 | 72 65 20 69 73 20 61 20 |ly,.Xthe|re is a |
|00005850| 6d 65 74 68 6f 64 20 74 | 68 61 74 20 69 73 20 66 |method t|hat is f|
|00005860| 61 73 74 20 61 6e 64 20 | 63 6f 72 72 65 63 74 2c |ast and |correct,|
|00005870| 0a 58 62 75 74 20 75 73 | 65 73 20 61 6e 20 75 6e |.Xbut us|es an un|
|00005880| 64 6f 63 75 6d 65 6e 74 | 65 64 20 44 4f 53 20 66 |document|ed DOS f|
|00005890| 65 61 74 75 72 65 0a 58 | 74 68 61 74 20 6d 61 79 |eature.X|that may|
|000058a0| 20 6e 6f 74 20 77 6f 72 | 6b 20 70 72 6f 70 65 72 | not wor|k proper|
|000058b0| 6c 79 20 75 6e 64 65 72 | 20 61 6c 6c 20 76 65 72 |ly under| all ver|
|000058c0| 73 69 6f 6e 73 20 6f 66 | 20 44 4f 53 2e 0a 58 28 |sions of| DOS..X(|
|000058d0| 48 6f 77 65 76 65 72 2c | 20 32 2e 30 20 61 6e 64 |However,| 2.0 and|
|000058e0| 20 33 2e 33 20 61 72 65 | 20 6b 6e 6f 77 6e 20 74 | 3.3 are| known t|
|000058f0| 6f 20 77 6f 72 6b 2e 29 | 0a 58 2e 49 20 4d 6d 76 |o work.)|.X.I Mmv|
|00005900| 0a 58 64 6f 65 73 0a 58 | 2e 49 20 6e 6f 74 0a 58 |.Xdoes.X|.I not.X|
|00005910| 64 65 74 65 72 6d 69 6e | 65 20 74 68 65 20 62 65 |determin|e the be|
|00005920| 73 74 20 6d 65 74 68 6f | 64 20 74 6f 20 75 73 65 |st metho|d to use|
|00005930| 20 6f 6e 20 79 6f 75 72 | 20 73 79 73 74 65 6d 0a | on your| system.|
|00005940| 58 61 74 20 72 75 6e 2d | 74 69 6d 65 20 73 69 6e |Xat run-|time sin|
|00005950| 63 65 20 74 68 69 73 20 | 69 73 20 74 6f 6f 20 73 |ce this |is too s|
|00005960| 6c 6f 77 2e 0a 58 54 68 | 65 20 63 68 6f 69 63 65 |low..XTh|e choice|
|00005970| 20 69 73 20 6c 65 66 74 | 20 74 6f 0a 58 2e 49 20 | is left| to.X.I |
|00005980| 6d 6d 76 70 61 74 63 68 | 2c 0a 58 77 68 69 63 68 |mmvpatch|,.Xwhich|
|00005990| 20 64 65 74 65 72 6d 69 | 6e 65 73 20 69 66 20 74 | determi|nes if t|
|000059a0| 68 65 20 66 61 73 74 20 | 6d 65 74 68 6f 64 20 77 |he fast |method w|
|000059b0| 6f 72 6b 73 2c 0a 58 62 | 75 74 20 61 6c 73 6f 20 |orks,.Xb|ut also |
|000059c0| 61 6c 6c 6f 77 73 20 79 | 6f 75 20 74 6f 20 72 65 |allows y|ou to re|
|000059d0| 74 75 72 6e 20 74 6f 20 | 74 68 65 20 73 6c 6f 77 |turn to |the slow|
|000059e0| 20 6d 65 74 68 6f 64 2e | 0a 58 5c 7d 0a 58 2e 53 | method.|.X\}.X.S|
|000059f0| 48 20 22 45 58 49 54 20 | 53 54 41 54 55 53 22 0a |H "EXIT |STATUS".|
|00005a00| 58 2e 49 20 4d 6d 76 0a | 58 65 78 69 74 73 20 77 |X.I Mmv.|Xexits w|
|00005a10| 69 74 68 20 73 74 61 74 | 75 73 20 31 20 69 66 20 |ith stat|us 1 if |
|00005a20| 69 74 20 61 62 6f 72 74 | 73 20 62 65 66 6f 72 65 |it abort|s before|
|00005a30| 20 64 6f 69 6e 67 20 61 | 6e 79 74 68 69 6e 67 2c | doing a|nything,|
|00005a40| 0a 58 77 69 74 68 20 73 | 74 61 74 75 73 20 32 20 |.Xwith s|tatus 2 |
|00005a50| 69 66 20 69 74 20 61 62 | 6f 72 74 73 20 64 75 65 |if it ab|orts due|
|00005a60| 20 74 6f 20 66 61 69 6c | 75 72 65 20 61 66 74 65 | to fail|ure afte|
|00005a70| 72 20 63 6f 6d 70 6c 65 | 74 69 6e 67 20 73 6f 6d |r comple|ting som|
|00005a80| 65 20 6f 66 20 74 68 65 | 0a 58 61 63 74 69 6f 6e |e of the|.Xaction|
|00005a90| 73 2c 0a 58 61 6e 64 20 | 77 69 74 68 20 73 74 61 |s,.Xand |with sta|
|00005aa0| 74 75 73 20 30 20 6f 74 | 68 65 72 77 69 73 65 2e |tus 0 ot|herwise.|
|00005ab0| 0a 58 2e 69 66 20 21 27 | 5c 6e 4f 27 32 27 20 5c |.X.if !'|\nO'2' \|
|00005ac0| 7b 5c 0a 58 2e 53 48 20 | 22 53 45 45 20 41 4c 53 |{\.X.SH |"SEE ALS|
|00005ad0| 4f 22 0a 58 6d 76 28 31 | 29 2c 20 63 70 28 31 29 |O".Xmv(1|), cp(1)|
|00005ae0| 2c 20 6c 6e 28 31 29 2c | 20 75 6d 61 73 6b 28 31 |, ln(1),| umask(1|
|00005af0| 29 0a 58 5c 7d 0a 58 2e | 53 48 20 22 41 55 54 48 |).X\}.X.|SH "AUTH|
|00005b00| 4f 52 22 0a 58 56 6c 61 | 64 69 6d 69 72 20 4c 61 |OR".XVla|dimir La|
|00005b10| 6e 69 6e 0a 58 2e 62 72 | 0a 58 6c 61 6e 69 6e 40 |nin.X.br|.Xlanin@|
|00005b20| 63 73 64 32 2e 6e 79 75 | 2e 65 64 75 0a 58 2e 53 |csd2.nyu|.edu.X.S|
|00005b30| 48 20 22 42 55 47 53 22 | 0a 58 2e 69 66 20 21 27 |H "BUGS"|.X.if !'|
|00005b40| 5c 6e 4f 27 32 27 20 5c | 7b 5c 0a 58 49 66 20 74 |\nO'2' \|{\.XIf t|
|00005b50| 68 65 20 73 65 61 72 63 | 68 20 70 61 74 74 65 72 |he searc|h patter|
|00005b60| 6e 20 69 73 20 6e 6f 74 | 20 71 75 6f 74 65 64 2c |n is not| quoted,|
|00005b70| 0a 58 74 68 65 20 73 68 | 65 6c 6c 20 65 78 70 61 |.Xthe sh|ell expa|
|00005b80| 6e 64 73 20 74 68 65 20 | 77 69 6c 64 63 61 72 64 |nds the |wildcard|
|00005b90| 73 2e 0a 58 2e 49 20 4d | 6d 76 0a 58 74 68 65 6e |s..X.I M|mv.Xthen|
|00005ba0| 20 28 75 73 75 61 6c 6c | 79 29 20 67 69 76 65 73 | (usuall|y) gives|
|00005bb0| 20 73 6f 6d 65 20 65 72 | 72 6f 72 20 6d 65 73 73 | some er|ror mess|
|00005bc0| 61 67 65 2c 0a 58 62 75 | 74 20 63 61 6e 20 6e 6f |age,.Xbu|t can no|
|00005bd0| 74 20 64 65 74 65 72 6d | 69 6e 65 20 74 68 61 74 |t determ|ine that|
|00005be0| 20 74 68 65 20 6c 61 63 | 6b 20 6f 66 20 71 75 6f | the lac|k of quo|
|00005bf0| 74 65 73 20 69 73 20 74 | 68 65 20 63 61 75 73 65 |tes is t|he cause|
|00005c00| 2e 0a 58 2e 50 50 0a 58 | 5c 7d 5c 0a 58 54 6f 20 |..X.PP.X|\}\.XTo |
|00005c10| 61 76 6f 69 64 20 64 69 | 66 66 69 63 75 6c 74 69 |avoid di|fficulti|
|00005c20| 65 73 20 69 6e 20 73 65 | 6d 61 6e 74 69 63 73 20 |es in se|mantics |
|00005c30| 61 6e 64 20 65 72 72 6f | 72 20 63 68 65 63 6b 69 |and erro|r checki|
|00005c40| 6e 67 2c 0a 58 2e 49 20 | 6d 6d 76 0a 58 72 65 66 |ng,.X.I |mmv.Xref|
|00005c50| 75 73 65 73 20 74 6f 20 | 6d 6f 76 65 20 6f 72 20 |uses to |move or |
|00005c60| 63 72 65 61 74 65 20 64 | 69 72 65 63 74 6f 72 69 |create d|irectori|
|00005c70| 65 73 2e 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |es..END_|OF_FILE.|
|00005c80| 69 66 20 74 65 73 74 20 | 31 37 30 39 31 20 2d 6e |if test |17091 -n|
|00005c90| 65 20 60 77 63 20 2d 63 | 20 3c 27 6d 6d 76 2e 31 |e `wc -c| <'mmv.1|
|00005ca0| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00005cb0| 6f 20 73 68 61 72 3a 20 | 5c 22 27 6d 6d 76 2e 31 |o shar: |\"'mmv.1|
|00005cc0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00005cd0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00005ce0| 0a 23 20 65 6e 64 20 6f | 66 20 27 6d 6d 76 2e 31 |.# end o|f 'mmv.1|
|00005cf0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00005d00| 27 6d 6d 76 2e 63 2e 32 | 27 20 2d 61 20 22 24 7b |'mmv.c.2|' -a "${|
|00005d10| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00005d20| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00005d30| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00005d40| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00005d50| 5c 22 27 6d 6d 76 2e 63 | 2e 32 27 5c 22 0a 65 6c |\"'mmv.c|.2'\".el|
|00005d60| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00005d70| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 6d 6d 76 2e |tracting| \"'mmv.|
|00005d80| 63 2e 32 27 5c 22 20 5c | 28 37 32 31 34 20 63 68 |c.2'\" \|(7214 ch|
|00005d90| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00005da0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 6d 6d 76 2e 63 2e |s/^X//" |>'mmv.c.|
|00005db0| 32 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |2' <<'EN|D_OF_FIL|
|00005dc0| 45 27 0a 58 73 74 61 74 | 69 63 20 69 6e 74 20 6d |E'.Xstat|ic int m|
|00005dd0| 6f 76 65 61 6c 69 61 73 | 28 66 69 72 73 74 2c 20 |ovealias|(first, |
|00005de0| 70 2c 20 70 70 72 69 6e | 74 61 6c 69 61 73 65 64 |p, pprin|taliased|
|00005df0| 29 0a 58 09 52 45 50 20 | 2a 66 69 72 73 74 2c 20 |).X.REP |*first, |
|00005e00| 2a 70 3b 0a 58 09 69 6e | 74 20 2a 70 70 72 69 6e |*p;.X.in|t *pprin|
|00005e10| 74 61 6c 69 61 73 65 64 | 3b 0a 58 7b 0a 58 09 63 |taliased|;.X{.X.c|
|00005e20| 68 61 72 20 2a 66 73 74 | 61 72 74 3b 0a 58 09 69 |har *fst|art;.X.i|
|00005e30| 6e 74 20 72 65 74 3b 0a | 58 0a 58 09 73 74 72 63 |nt ret;.|X.X.strc|
|00005e40| 70 79 28 70 61 74 68 62 | 75 66 2c 20 70 2d 3e 72 |py(pathb|uf, p->r|
|00005e50| 5f 68 74 6f 2d 3e 68 5f | 6e 61 6d 65 29 3b 0a 58 |_hto->h_|name);.X|
|00005e60| 09 66 73 74 61 72 74 20 | 3d 20 70 61 74 68 62 75 |.fstart |= pathbu|
|00005e70| 66 20 2b 20 73 74 72 6c | 65 6e 28 70 61 74 68 62 |f + strl|en(pathb|
|00005e80| 75 66 29 3b 0a 58 09 73 | 74 72 63 70 79 28 66 73 |uf);.X.s|trcpy(fs|
|00005e90| 74 61 72 74 2c 20 54 45 | 4d 50 29 3b 0a 58 09 66 |tart, TE|MP);.X.f|
|00005ea0| 6f 72 20 28 0a 58 09 09 | 72 65 74 20 3d 20 30 3b |or (.X..|ret = 0;|
|00005eb0| 0a 58 09 09 73 70 72 69 | 6e 74 66 28 66 73 74 61 |.X..spri|ntf(fsta|
|00005ec0| 72 74 20 2b 20 53 54 52 | 4c 45 4e 28 54 45 4d 50 |rt + STR|LEN(TEMP|
|00005ed0| 29 2c 20 22 25 30 33 64 | 22 2c 20 72 65 74 29 2c |), "%03d|", ret),|
|00005ee0| 0a 58 09 09 66 73 65 61 | 72 63 68 28 66 73 74 61 |.X..fsea|rch(fsta|
|00005ef0| 72 74 2c 20 70 2d 3e 72 | 5f 68 74 6f 2d 3e 68 5f |rt, p->r|_hto->h_|
|00005f00| 64 69 29 20 21 3d 20 4e | 55 4c 4c 3b 0a 58 09 09 |di) != N|ULL;.X..|
|00005f10| 72 65 74 2b 2b 0a 58 09 | 29 0a 58 09 09 3b 0a 58 |ret++.X.|).X..;.X|
|00005f20| 09 69 66 20 28 72 65 6e | 61 6d 65 28 66 75 6c 6c |.if (ren|ame(full|
|00005f30| 72 65 70 2c 20 70 61 74 | 68 62 75 66 29 29 20 7b |rep, pat|hbuf)) {|
|00005f40| 0a 58 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |.X..fpri|ntf(stde|
|00005f50| 72 72 2c 0a 58 09 09 09 | 22 25 73 20 2d 3e 20 25 |rr,.X...|"%s -> %|
|00005f60| 73 20 68 61 73 20 66 61 | 69 6c 65 64 2e 5c 6e 22 |s has fa|iled.\n"|
|00005f70| 2c 20 66 75 6c 6c 72 65 | 70 2c 20 70 61 74 68 62 |, fullre|p, pathb|
|00005f80| 75 66 29 3b 0a 58 09 09 | 2a 70 70 72 69 6e 74 61 |uf);.X..|*pprinta|
|00005f90| 6c 69 61 73 65 64 20 3d | 20 73 6e 61 70 28 66 69 |liased =| snap(fi|
|00005fa0| 72 73 74 2c 20 70 29 3b | 0a 58 09 7d 0a 58 09 72 |rst, p);|.X.}.X.r|
|00005fb0| 65 74 75 72 6e 28 72 65 | 74 29 3b 0a 58 7d 0a 58 |eturn(re|t);.X}.X|
|00005fc0| 0a 58 0a 58 73 74 61 74 | 69 63 20 69 6e 74 20 73 |.X.Xstat|ic int s|
|00005fd0| 6e 61 70 28 66 69 72 73 | 74 2c 20 70 29 0a 58 09 |nap(firs|t, p).X.|
|00005fe0| 52 45 50 20 2a 66 69 72 | 73 74 2c 20 2a 70 3b 0a |REP *fir|st, *p;.|
|00005ff0| 58 7b 0a 58 09 63 68 61 | 72 20 66 6e 61 6d 65 5b |X{.X.cha|r fname[|
|00006000| 38 30 5d 3b 0a 58 09 69 | 6e 74 20 72 65 64 69 72 |80];.X.i|nt redir|
|00006010| 65 63 74 65 64 20 3d 20 | 30 3b 0a 58 0a 58 09 69 |ected = |0;.X.X.i|
|00006020| 66 20 28 6e 6f 65 78 29 | 0a 58 09 09 65 78 69 74 |f (noex)|.X..exit|
|00006030| 28 31 29 3b 0a 58 0a 58 | 09 66 61 69 6c 65 64 20 |(1);.X.X|.failed |
|00006040| 3d 20 31 3b 0a 58 23 69 | 66 64 65 66 20 4d 53 44 |= 1;.X#i|fdef MSD|
|00006050| 4f 53 0a 58 09 63 74 72 | 6c 62 72 6b 28 28 69 6e |OS.X.ctr|lbrk((in|
|00006060| 74 20 28 2a 29 28 29 29 | 62 72 65 61 6b 73 74 61 |t (*)())|breaksta|
|00006070| 74 29 3b 0a 58 23 65 6c | 73 65 0a 58 09 73 69 67 |t);.X#el|se.X.sig|
|00006080| 6e 61 6c 28 53 49 47 49 | 4e 54 2c 20 62 72 65 61 |nal(SIGI|NT, brea|
|00006090| 6b 73 74 61 74 29 3b 0a | 58 23 65 6e 64 69 66 0a |kstat);.|X#endif.|
|000060a0| 58 09 69 66 20 28 0a 58 | 09 09 62 61 64 73 74 79 |X.if (.X|..badsty|
|000060b0| 6c 65 20 3d 3d 20 41 53 | 4b 42 41 44 20 26 26 0a |le == AS|KBAD &&.|
|000060c0| 58 09 09 69 73 61 74 74 | 79 28 66 69 6c 65 6e 6f |X..isatt|y(fileno|
|000060d0| 28 73 74 64 6f 75 74 29 | 29 20 26 26 0a 58 09 09 |(stdout)|) &&.X..|
|000060e0| 67 65 74 72 65 70 6c 79 | 28 22 52 65 64 69 72 65 |getreply|("Redire|
|000060f0| 63 74 20 73 74 61 6e 64 | 61 72 64 20 6f 75 74 70 |ct stand|ard outp|
|00006100| 75 74 20 74 6f 20 66 69 | 6c 65 3f 20 22 2c 20 30 |ut to fi|le? ", 0|
|00006110| 29 0a 58 09 29 20 7b 0a | 58 09 09 72 65 64 69 72 |).X.) {.|X..redir|
|00006120| 65 63 74 65 64 20 3d 20 | 31 3b 0a 58 23 69 66 6e |ected = |1;.X#ifn|
|00006130| 64 65 66 20 4d 53 44 4f | 53 0a 58 09 09 75 6d 61 |def MSDO|S.X..uma|
|00006140| 73 6b 28 6f 6c 64 75 6d | 61 73 6b 29 3b 0a 58 23 |sk(oldum|ask);.X#|
|00006150| 65 6e 64 69 66 0a 58 09 | 09 77 68 69 6c 65 20 28 |endif.X.|.while (|
|00006160| 0a 58 09 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |.X...fpr|intf(std|
|00006170| 65 72 72 2c 20 22 46 69 | 6c 65 20 6e 61 6d 65 3e |err, "Fi|le name>|
|00006180| 20 22 29 2c 0a 58 09 09 | 09 28 6f 75 74 66 69 6c | "),.X..|.(outfil|
|00006190| 65 20 3d 20 66 6f 70 65 | 6e 28 67 65 74 73 28 66 |e = fope|n(gets(f|
|000061a0| 6e 61 6d 65 29 2c 20 22 | 77 22 29 29 20 3d 3d 20 |name), "|w")) == |
|000061b0| 4e 55 4c 4c 0a 58 09 09 | 29 0a 58 09 09 09 66 70 |NULL.X..|).X...fp|
|000061c0| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 43 |rintf(st|derr, "C|
|000061d0| 61 6e 27 74 20 6f 70 65 | 6e 20 25 73 2e 5c 6e 22 |an't ope|n %s.\n"|
|000061e0| 2c 20 66 6e 61 6d 65 29 | 3b 0a 58 09 7d 0a 58 09 |, fname)|;.X.}.X.|
|000061f0| 69 66 20 28 72 65 64 69 | 72 65 63 74 65 64 20 7c |if (redi|rected ||
|00006200| 7c 20 21 76 65 72 62 6f | 73 65 29 0a 58 09 09 73 || !verbo|se).X..s|
|00006210| 68 6f 77 64 6f 6e 65 28 | 70 29 3b 0a 58 09 66 70 |howdone(|p);.X.fp|
|00006220| 72 69 6e 74 66 28 6f 75 | 74 66 69 6c 65 2c 20 22 |rintf(ou|tfile, "|
|00006230| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6c 65 |The foll|owing le|
|00006240| 66 74 20 75 6e 64 6f 6e | 65 3a 5c 6e 22 29 3b 0a |ft undon|e:\n");.|
|00006250| 58 09 6e 6f 65 78 20 3d | 20 31 3b 0a 58 09 72 65 |X.noex =| 1;.X.re|
|00006260| 74 75 72 6e 28 66 69 72 | 73 74 20 21 3d 20 70 29 |turn(fir|st != p)|
|00006270| 3b 0a 58 7d 0a 58 0a 58 | 0a 58 73 74 61 74 69 63 |;.X}.X.X|.Xstatic|
|00006280| 20 76 6f 69 64 20 73 68 | 6f 77 64 6f 6e 65 28 66 | void sh|owdone(f|
|00006290| 69 6e 29 0a 58 09 52 45 | 50 20 2a 66 69 6e 3b 0a |in).X.RE|P *fin;.|
|000062a0| 58 7b 0a 58 09 52 45 50 | 20 2a 66 69 72 73 74 2c |X{.X.REP| *first,|
|000062b0| 20 2a 70 3b 0a 58 0a 58 | 09 66 6f 72 20 28 66 69 | *p;.X.X|.for (fi|
|000062c0| 72 73 74 20 3d 20 68 72 | 65 70 2e 72 5f 6e 65 78 |rst = hr|ep.r_nex|
|000062d0| 74 3b 20 3b 20 66 69 72 | 73 74 20 3d 20 66 69 72 |t; ; fir|st = fir|
|000062e0| 73 74 2d 3e 72 5f 6e 65 | 78 74 29 0a 58 09 09 66 |st->r_ne|xt).X..f|
|000062f0| 6f 72 20 28 70 20 3d 20 | 66 69 72 73 74 3b 20 70 |or (p = |first; p|
|00006300| 20 21 3d 20 4e 55 4c 4c | 3b 20 70 20 3d 20 70 2d | != NULL|; p = p-|
|00006310| 3e 72 5f 74 68 65 6e 64 | 6f 29 20 7b 0a 58 09 09 |>r_thend|o) {.X..|
|00006320| 09 69 66 20 28 70 20 3d | 3d 20 66 69 6e 29 0a 58 |.if (p =|= fin).X|
|00006330| 09 09 09 09 72 65 74 75 | 72 6e 3b 0a 58 09 09 09 |....retu|rn;.X...|
|00006340| 66 70 72 69 6e 74 66 28 | 6f 75 74 66 69 6c 65 2c |fprintf(|outfile,|
|00006350| 20 22 25 73 25 73 20 25 | 63 25 63 20 25 73 25 73 | "%s%s %|c%c %s%s|
|00006360| 20 3a 20 64 6f 6e 65 25 | 73 5c 6e 22 2c 0a 58 09 | : done%|s\n",.X.|
|00006370| 09 09 09 70 2d 3e 72 5f | 68 66 72 6f 6d 2d 3e 68 |...p->r_|hfrom->h|
|00006380| 5f 6e 61 6d 65 2c 20 70 | 2d 3e 72 5f 66 66 72 6f |_name, p|->r_ffro|
|00006390| 6d 2d 3e 66 69 5f 6e 61 | 6d 65 2c 0a 58 09 09 09 |m->fi_na|me,.X...|
|000063a0| 09 70 2d 3e 72 5f 66 6c | 61 67 73 20 26 20 52 5f |.p->r_fl|ags & R_|
|000063b0| 49 53 41 4c 49 41 53 45 | 44 20 3f 20 27 3d 27 20 |ISALIASE|D ? '=' |
|000063c0| 3a 20 27 2d 27 2c 0a 58 | 09 09 09 09 70 2d 3e 72 |: '-',.X|....p->r|
|000063d0| 5f 66 6c 61 67 73 20 26 | 20 52 5f 49 53 43 59 43 |_flags &| R_ISCYC|
|000063e0| 4c 45 20 3f 20 27 5e 27 | 20 3a 20 27 3e 27 2c 0a |LE ? '^'| : '>',.|
|000063f0| 58 09 09 09 09 70 2d 3e | 72 5f 68 74 6f 2d 3e 68 |X....p->|r_hto->h|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.