home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume8 / se / part07 < prev    next >
SHell self-extracting ARchive  |  1987-01-25  |  35.4 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

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

You can browse this item here: part07

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 30 38 69 30 30 |Subject:| v08i00|
|00000010| 37 3a 20 20 47 65 6f 72 | 67 69 61 20 54 65 63 68 |7: Geor|gia Tech|
|00000020| 20 27 73 65 27 20 53 63 | 72 65 65 6e 20 45 64 69 | 'se' Sc|reen Edi|
|00000030| 74 6f 72 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |tor.News|groups: |
|00000040| 6d 6f 64 2e 73 6f 75 72 | 63 65 73 0a 41 70 70 72 |mod.sour|ces.Appr|
|00000050| 6f 76 65 64 3a 20 6d 69 | 72 72 6f 72 21 72 73 0a |oved: mi|rror!rs.|
|00000060| 0a 53 75 62 6d 69 74 74 | 65 64 20 62 79 3a 20 65 |.Submitt|ed by: e|
|00000070| 6d 6f 72 79 75 31 21 61 | 72 6e 6f 6c 64 20 28 41 |moryu1!a|rnold (A|
|00000080| 72 6e 6f 6c 64 20 44 2e | 20 52 6f 62 62 69 6e 73 |rnold D.| Robbins|
|00000090| 29 0a 4d 6f 64 2e 73 6f | 75 72 63 65 73 3a 20 56 |).Mod.so|urces: V|
|000000a0| 6f 6c 75 6d 65 20 38 2c | 20 49 73 73 75 65 20 37 |olume 8,| Issue 7|
|000000b0| 0a 41 72 63 68 69 76 65 | 2d 6e 61 6d 65 3a 20 73 |.Archive|-name: s|
|000000c0| 65 2f 50 61 72 74 30 37 | 0a 0a 0a 48 65 72 65 20 |e/Part07|...Here |
|000000d0| 69 73 20 74 68 65 20 73 | 65 63 6f 6e 64 20 72 65 |is the s|econd re|
|000000e0| 6c 65 61 73 65 20 6f 66 | 20 74 68 65 20 47 65 6f |lease of| the Geo|
|000000f0| 72 67 69 61 20 54 65 63 | 68 20 53 63 72 65 65 6e |rgia Tec|h Screen|
|00000100| 20 45 64 69 74 6f 72 2c | 20 27 73 65 27 2e 0a 54 | Editor,| 'se'..T|
|00000110| 68 65 72 65 20 77 65 72 | 65 20 65 6e 6f 75 67 68 |here wer|e enough|
|00000120| 20 63 68 61 6e 67 65 73 | 20 74 68 61 74 20 61 20 | changes| that a |
|00000130| 77 68 6f 6c 65 20 6e 65 | 77 20 70 6f 73 74 69 6e |whole ne|w postin|
|00000140| 67 20 69 73 20 77 61 72 | 72 61 6e 74 65 64 2e 0a |g is war|ranted..|
|00000150| 0a 4d 61 6a 6f 72 20 43 | 68 61 6e 67 65 73 3a 0a |.Major C|hanges:.|
|00000160| 09 41 6c 6c 20 47 65 6f | 72 67 69 61 20 54 65 63 |.All Geo|rgia Tec|
|00000170| 68 20 73 70 65 63 69 66 | 69 63 20 73 74 75 66 66 |h specif|ic stuff|
|00000180| 20 72 65 6d 6f 76 65 64 | 2e 0a 09 49 74 20 75 6e | removed|...It un|
|00000190| 64 65 72 73 74 61 6e 64 | 73 20 77 69 6e 64 6f 77 |derstand|s window|
|000001a0| 20 73 69 7a 65 20 63 68 | 61 6e 67 65 73 20 6f 6e | size ch|anges on|
|000001b0| 20 34 2e 33 42 53 44 20 | 61 6e 64 20 41 54 54 20 | 4.3BSD |and ATT |
|000001c0| 55 6e 69 78 20 50 43 2f | 33 42 31 0a 09 53 75 70 |Unix PC/|3B1..Sup|
|000001d0| 70 6f 72 74 20 66 6f 72 | 20 74 68 65 20 73 68 61 |port for| the sha|
|000001e0| 72 65 64 20 6c 69 62 72 | 61 72 79 20 6f 6e 20 74 |red libr|ary on t|
|000001f0| 68 65 20 41 54 54 20 55 | 6e 69 78 20 50 43 2f 33 |he ATT U|nix PC/3|
|00000200| 42 31 0a 09 43 6f 6e 73 | 69 64 65 72 61 62 6c 65 |B1..Cons|iderable|
|00000210| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 20 72 65 6f | source |code reo|
|00000220| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 20 69 6e 20 63 |rganizat|ion in c|
|00000230| 65 72 74 61 69 6e 20 66 | 69 6c 65 73 2e 0a 0a 45 |ertain f|iles...E|
|00000240| 6e 6a 6f 79 2c 0a 0a 41 | 72 6e 6f 6c 64 20 52 6f |njoy,..A|rnold Ro|
|00000250| 62 62 69 6e 73 0a 0a 23 | 21 20 2f 62 69 6e 2f 73 |bbins..#|! /bin/s|
|00000260| 68 0a 23 20 54 68 69 73 | 20 69 73 20 61 20 73 68 |h.# This| is a sh|
|00000270| 65 6c 6c 20 61 72 63 68 | 69 76 65 2c 20 6d 65 61 |ell arch|ive, mea|
|00000280| 6e 69 6e 67 3a 0a 23 20 | 31 2e 20 52 65 6d 6f 76 |ning:.# |1. Remov|
|00000290| 65 20 65 76 65 72 79 74 | 68 69 6e 67 20 61 62 6f |e everyt|hing abo|
|000002a0| 76 65 20 74 68 65 20 23 | 21 20 2f 62 69 6e 2f 73 |ve the #|! /bin/s|
|000002b0| 68 20 6c 69 6e 65 2e 0a | 23 20 32 2e 20 53 61 76 |h line..|# 2. Sav|
|000002c0| 65 20 74 68 65 20 72 65 | 73 75 6c 74 69 6e 67 20 |e the re|sulting |
|000002d0| 74 65 78 74 20 69 6e 20 | 61 20 66 69 6c 65 2e 0a |text in |a file..|
|000002e0| 23 20 33 2e 20 45 78 65 | 63 75 74 65 20 74 68 65 |# 3. Exe|cute the|
|000002f0| 20 66 69 6c 65 20 77 69 | 74 68 20 2f 62 69 6e 2f | file wi|th /bin/|
|00000300| 73 68 20 28 6e 6f 74 20 | 63 73 68 29 20 74 6f 20 |sh (not |csh) to |
|00000310| 63 72 65 61 74 65 20 74 | 68 65 20 66 69 6c 65 73 |create t|he files|
|00000320| 3a 0a 23 09 6f 0a 23 09 | 6f 2d 0a 23 09 6f 61 0a |:.#.o.#.|o-.#.oa.|
|00000330| 23 09 6f 63 0a 23 09 6f | 64 0a 23 09 6f 66 0a 23 |#.oc.#.o|d.#.of.#|
|00000340| 09 6f 67 0a 23 09 6f 68 | 0a 23 09 6f 69 0a 23 09 |.og.#.oh|.#.oi.#.|
|00000350| 6f 6b 0a 23 09 6f 6c 0a | 23 09 6f 6c 6d 0a 23 09 |ok.#.ol.|#.olm.#.|
|00000360| 6f 6d 0a 23 09 6f 73 0a | 23 09 6f 74 0a 23 09 6f |om.#.os.|#.ot.#.o|
|00000370| 75 0a 23 09 6f 76 0a 23 | 09 6f 77 0a 23 09 6f 78 |u.#.ov.#|.ow.#.ox|
|00000380| 0a 23 09 6f 79 0a 23 09 | 6f 7a 0a 23 09 70 0a 23 |.#.oy.#.|oz.#.p.#|
|00000390| 09 70 61 74 0a 23 09 70 | 61 74 65 78 0a 23 09 71 |.pat.#.p|atex.#.q|
|000003a0| 0a 23 09 71 75 6f 74 65 | 0a 23 09 72 0a 23 09 72 |.#.quote|.#.r.#.r|
|000003b0| 70 74 0a 23 09 73 0a 23 | 09 73 63 61 6e 0a 23 09 |pt.#.s.#|.scan.#.|
|000003c0| 73 65 72 63 0a 23 09 73 | 68 65 6c 6c 0a 23 09 73 |serc.#.s|hell.#.s|
|000003d0| 70 65 63 6c 0a 23 09 74 | 0a 23 09 74 65 72 6d 63 |pecl.#.t|.#.termc|
|000003e0| 68 61 72 0a 23 09 74 69 | 6c 64 65 0a 23 09 75 0a |har.#.ti|lde.#.u.|
|000003f0| 23 09 76 0a 23 09 77 0a | 23 09 78 0a 23 09 79 0a |#.v.#.w.|#.x.#.y.|
|00000400| 23 09 7a 0a 65 78 70 6f | 72 74 20 50 41 54 48 3b |#.z.expo|rt PATH;|
|00000410| 20 50 41 54 48 3d 2f 62 | 69 6e 3a 24 50 41 54 48 | PATH=/b|in:$PATH|
|00000420| 0a 69 66 20 74 65 73 74 | 20 21 20 2d 64 20 27 73 |.if test| ! -d 's|
|00000430| 65 5f 68 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |e_h'.the|n..echo |
|00000440| 73 68 61 72 3a 20 63 72 | 65 61 74 69 6e 67 20 64 |shar: cr|eating d|
|00000450| 69 72 65 63 74 6f 72 79 | 20 22 27 73 65 5f 68 27 |irectory| "'se_h'|
|00000460| 22 0a 09 6d 6b 64 69 72 | 20 27 73 65 5f 68 27 0a |"..mkdir| 'se_h'.|
|00000470| 66 69 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 6e |fi.echo |shar: en|
|00000480| 74 65 72 69 6e 67 20 64 | 69 72 65 63 74 6f 72 79 |tering d|irectory|
|00000490| 20 22 27 73 65 5f 68 27 | 22 0a 63 64 20 27 73 65 | "'se_h'|".cd 'se|
|000004a0| 5f 68 27 0a 65 63 68 6f | 20 73 68 61 72 3a 20 65 |_h'.echo| shar: e|
|000004b0| 78 74 72 61 63 74 69 6e | 67 20 22 27 6f 27 22 20 |xtractin|g "'o'" |
|000004c0| 27 28 36 31 35 20 63 68 | 61 72 61 63 74 65 72 73 |'(615 ch|aracters|
|000004d0| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 6f |)'.if te|st -f 'o|
|000004e0| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|000004f0| 72 3a 20 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: will |not over|
|00000500| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|00000510| 66 69 6c 65 20 22 27 6f | 27 22 0a 65 6c 73 65 0a |file "'o|'".else.|
|00000520| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00000530| 20 3e 20 27 6f 27 0a 20 | 20 20 20 20 20 20 20 6f | > 'o'. | o|
|00000540| 20 2d 2d 20 4f 70 74 69 | 6f 6e 0a 0a 20 20 20 20 | -- Opti|on.. |
|00000550| 20 20 20 20 54 68 65 20 | 22 6f 22 20 28 6f 70 74 | The |"o" (opt|
|00000560| 69 6f 6e 29 20 63 6f 6d | 6d 61 6e 64 20 61 6c 6c |ion) com|mand all|
|00000570| 6f 77 73 20 61 6e 79 20 | 20 6f 66 20 73 65 76 65 |ows any | of seve|
|00000580| 72 61 6c 20 76 61 72 69 | 61 62 6c 65 73 20 20 74 |ral vari|ables t|
|00000590| 68 61 74 0a 20 20 20 20 | 20 20 20 20 61 66 66 65 |hat. | affe|
|000005a0| 63 74 20 20 74 68 65 20 | 20 65 64 69 74 6f 72 27 |ct the | editor'|
|000005b0| 73 20 20 62 65 68 61 76 | 69 6f 72 20 20 74 6f 20 |s behav|ior to |
|000005c0| 20 20 62 65 20 20 73 65 | 74 20 20 6f 72 20 20 74 | be se|t or t|
|000005d0| 65 73 74 65 64 2e 20 20 | 54 68 65 0a 20 20 20 20 |ested. |The. |
|000005e0| 20 20 20 20 62 65 68 61 | 76 69 6f 72 20 6f 66 20 | beha|vior of |
|000005f0| 74 68 65 20 22 6f 22 20 | 20 63 6f 6d 6d 61 6e 64 |the "o" | command|
|00000600| 20 64 65 70 65 6e 64 73 | 20 75 70 6f 6e 20 77 68 | depends| upon wh|
|00000610| 61 74 20 69 73 20 20 74 | 79 70 65 64 20 20 61 66 |at is t|yped af|
|00000620| 74 65 72 0a 20 20 20 20 | 20 20 20 20 74 68 65 20 |ter. | the |
|00000630| 22 6f 22 2e 0a 0a 20 20 | 20 20 20 20 20 20 54 6f |"o"... | To|
|00000640| 20 20 66 69 6e 64 20 6f | 75 74 20 61 62 6f 75 74 | find o|ut about|
|00000650| 20 20 73 70 65 63 69 66 | 69 63 20 6f 70 74 69 6f | specif|ic optio|
|00000660| 6e 73 2c 20 74 79 70 65 | 20 22 68 6f 61 22 2c 20 |ns, type| "hoa", |
|00000670| 22 68 6f 63 22 2c 20 22 | 68 6f 64 22 2c 0a 20 20 |"hoc", "|hod",. |
|00000680| 20 20 20 20 20 20 22 68 | 6f 66 22 2c 20 22 68 6f | "h|of", "ho|
|00000690| 67 22 2c 20 22 68 6f 68 | 22 2c 20 22 68 6f 69 22 |g", "hoh|", "hoi"|
|000006a0| 2c 20 22 68 6f 6b 22 2c | 20 22 68 6f 6c 22 2c 20 |, "hok",| "hol", |
|000006b0| 22 68 6f 6c 6d 22 2c 20 | 22 68 6f 6d 22 2c 20 22 |"holm", |"hom", "|
|000006c0| 68 6f 73 22 2c 0a 09 22 | 68 6f 74 22 2c 20 22 68 |hos",.."|hot", "h|
|000006d0| 6f 75 22 2c 20 22 68 6f | 76 22 2c 20 22 68 6f 77 |ou", "ho|v", "how|
|000006e0| 22 2c 20 22 68 6f 78 22 | 2c 20 22 68 6f 79 22 2c |", "hox"|, "hoy",|
|000006f0| 20 22 68 6f 7a 22 2c 20 | 6f 72 20 22 68 6f 2d 22 | "hoz", |or "ho-"|
|00000700| 2e 0a 0a 20 20 20 20 20 | 20 20 20 54 6f 20 20 73 |... | To s|
|00000710| 65 65 20 68 6f 77 20 74 | 6f 20 73 65 74 20 6f 70 |ee how t|o set op|
|00000720| 74 69 6f 6e 73 20 77 69 | 74 68 20 74 68 65 20 20 |tions wi|th the |
|00000730| 63 6f 6d 6d 61 6e 64 20 | 74 68 61 74 20 69 6e 76 |command |that inv|
|00000740| 6f 6b 65 73 20 27 73 65 | 27 2c 0a 20 20 20 20 20 |okes 'se|',. |
|00000750| 20 20 20 74 79 70 65 20 | 22 68 61 72 67 73 22 2e | type |"hargs".|
|00000760| 0a 0a 20 20 20 20 20 20 | 20 20 54 6f 20 72 65 74 |.. | To ret|
|00000770| 75 72 6e 20 74 6f 20 74 | 68 65 20 63 6f 6d 6d 61 |urn to t|he comma|
|00000780| 6e 64 20 64 69 72 65 63 | 74 6f 72 79 2c 20 74 79 |nd direc|tory, ty|
|00000790| 70 65 20 22 68 63 6f 6d | 64 69 72 22 2e 0a 53 48 |pe "hcom|dir"..SH|
|000007a0| 41 52 5f 45 4f 46 0a 66 | 69 20 23 20 65 6e 64 20 |AR_EOF.f|i # end |
|000007b0| 6f 66 20 6f 76 65 72 77 | 72 69 74 69 6e 67 20 63 |of overw|riting c|
|000007c0| 68 65 63 6b 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |heck.ech|o shar: |
|000007d0| 65 78 74 72 61 63 74 69 | 6e 67 20 22 27 6f 2d 27 |extracti|ng "'o-'|
|000007e0| 22 20 27 28 38 33 30 20 | 63 68 61 72 61 63 74 65 |" '(830 |characte|
|000007f0| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00000800| 27 6f 2d 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |'o-'.the|n..echo |
|00000810| 73 68 61 72 3a 20 77 69 | 6c 6c 20 6e 6f 74 20 6f |shar: wi|ll not o|
|00000820| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00000830| 6e 67 20 66 69 6c 65 20 | 22 27 6f 2d 27 22 0a 65 |ng file |"'o-'".e|
|00000840| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|00000850| 5f 45 4f 46 20 3e 20 27 | 6f 2d 27 0a 20 20 20 20 |_EOF > '|o-'. |
|00000860| 20 20 20 20 6f 2d 20 20 | 2d 2d 20 4f 70 74 69 6f | o- |-- Optio|
|00000870| 6e 20 2d 20 28 64 61 73 | 68 29 0a 0a 20 20 20 20 |n - (das|h).. |
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 64 65 66 61 75 | | defau|
|00000890| 6c 74 20 72 61 6e 67 65 | 20 20 20 20 20 20 20 20 |lt range| |
|000008a0| 20 20 20 20 20 73 79 6e | 74 61 78 0a 20 20 20 20 | syn|tax. |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 2c | | 1,|
|000008c0| 24 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |$ | |
|000008d0| 20 20 20 20 20 20 6f 2d | 5b 6c 69 6e 65 20 6e 75 | o-|[line nu|
|000008e0| 6d 62 65 72 5d 0a 0a 20 | 20 20 20 20 20 20 20 54 |mber].. | T|
|000008f0| 68 65 20 22 2d 22 20 6f | 70 74 69 6f 6e 20 63 6f |he "-" o|ption co|
|00000900| 6e 74 72 6f 6c 73 20 74 | 68 65 20 70 6c 61 63 65 |ntrols t|he place|
|00000910| 6d 65 6e 74 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |ment on |the scre|
|00000920| 65 6e 20 6f 66 20 20 61 | 20 20 72 6f 77 0a 20 20 |en of a| row. |
|00000930| 20 20 20 20 20 20 6f 66 | 20 64 61 73 68 65 73 2c | of| dashes,|
|00000940| 20 77 68 69 63 68 20 6e | 6f 72 6d 61 6c 6c 79 20 | which n|ormally |
|00000950| 69 73 20 6f 66 66 20 74 | 68 65 20 73 63 72 65 65 |is off t|he scree|
|00000960| 6e 20 61 62 6f 76 65 20 | 74 68 65 20 74 6f 70 20 |n above |the top |
|00000970| 6c 69 6e 65 0a 20 20 20 | 20 20 20 20 20 6f 72 20 |line. | or |
|00000980| 20 68 69 64 69 6e 67 20 | 20 62 65 68 69 6e 64 20 | hiding | behind |
|00000990| 20 74 68 65 20 20 62 6f | 74 74 6f 6d 20 6c 69 6e | the bo|ttom lin|
|000009a0| 65 20 6f 66 20 74 68 65 | 20 68 65 6c 70 20 64 69 |e of the| help di|
|000009b0| 73 70 6c 61 79 2e 20 20 | 54 68 65 0a 20 20 20 20 |splay. |The. |
|000009c0| 20 20 20 20 22 77 69 6e | 64 6f 77 22 20 74 68 72 | "win|dow" thr|
|000009d0| 6f 75 67 68 20 77 68 69 | 63 68 20 79 6f 75 20 6c |ough whi|ch you l|
|000009e0| 6f 6f 6b 20 61 74 20 74 | 68 65 20 65 64 69 74 20 |ook at t|he edit |
|000009f0| 62 75 66 66 65 72 20 69 | 73 20 74 68 65 20 70 6f |buffer i|s the po|
|00000a00| 72 2d 0a 20 20 20 20 20 | 20 20 20 74 69 6f 6e 20 |r-. | tion |
|00000a10| 6f 66 20 74 68 65 20 73 | 63 72 65 65 6e 20 42 45 |of the s|creen BE|
|00000a20| 4c 4f 57 20 74 68 65 20 | 20 72 6f 77 20 20 6f 66 |LOW the | row of|
|00000a30| 20 20 64 61 73 68 65 73 | 20 20 62 75 74 20 20 61 | dashes| but a|
|00000a40| 62 6f 76 65 20 20 74 68 | 65 0a 20 20 20 20 20 20 |bove th|e. |
|00000a50| 20 20 63 6f 6d 6d 61 6e | 64 20 20 6c 69 6e 65 20 | comman|d line |
|00000a60| 20 28 77 68 65 6e 20 20 | 69 74 20 65 78 69 73 74 | (when |it exist|
|00000a70| 73 29 20 6f 72 20 73 74 | 61 74 75 73 20 6c 69 6e |s) or st|atus lin|
|00000a80| 65 20 61 74 20 74 68 65 | 20 62 6f 74 74 6f 6d 2e |e at the| bottom.|
|00000a90| 0a 20 20 20 20 20 20 20 | 20 22 6f 2d 22 20 61 6c |. | "o-" al|
|00000aa0| 6f 6e 65 20 70 75 74 73 | 20 74 68 65 20 72 6f 77 |one puts| the row|
|00000ab0| 20 6f 66 20 64 61 73 68 | 65 73 20 61 62 6f 76 65 | of dash|es above|
|00000ac0| 20 20 74 68 65 20 20 74 | 6f 70 20 20 6c 69 6e 65 | the t|op line|
|00000ad0| 3b 20 20 22 6f 2d 22 0a | 20 20 20 20 20 20 20 20 |; "o-".| |
|00000ae0| 66 6f 6c 6c 6f 77 65 64 | 20 20 62 79 20 61 20 53 |followed| by a S|
|00000af0| 49 4e 47 4c 45 20 54 45 | 52 4d 20 6c 69 6e 65 20 |INGLE TE|RM line |
|00000b00| 6e 75 6d 62 65 72 20 70 | 75 74 73 20 69 74 20 69 |number p|uts it i|
|00000b10| 6e 20 70 6c 61 63 65 20 | 6f 66 20 74 68 65 0a 20 |n place |of the. |
|00000b20| 20 20 20 20 20 20 20 6c | 69 6e 65 20 72 65 66 65 | l|ine refe|
|00000b30| 72 72 65 64 20 74 6f 20 | 6f 6e 20 74 68 65 20 73 |rred to |on the s|
|00000b40| 63 72 65 65 6e 2c 20 69 | 66 20 70 6f 73 73 69 62 |creen, i|f possib|
|00000b50| 6c 65 2e 0a 0a 20 20 20 | 20 20 20 20 20 46 6f 72 |le... | For|
|00000b60| 20 67 65 6e 65 72 61 6c | 20 69 6e 66 6f 72 6d 61 | general| informa|
|00000b70| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 6f |tion abo|ut the o|
|00000b80| 70 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 2c 20 74 |ption co|mmand, t|
|00000b90| 79 70 65 20 22 68 6f 22 | 2e 0a 53 48 41 52 5f 45 |ype "ho"|..SHAR_E|
|00000ba0| 4f 46 0a 66 69 20 23 20 | 65 6e 64 20 6f 66 20 6f |OF.fi # |end of o|
|00000bb0| 76 65 72 77 72 69 74 69 | 6e 67 20 63 68 65 63 6b |verwriti|ng check|
|00000bc0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 65 78 74 72 |.echo sh|ar: extr|
|00000bd0| 61 63 74 69 6e 67 20 22 | 27 6f 61 27 22 20 27 28 |acting "|'oa'" '(|
|00000be0| 38 37 36 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |876 char|acters)'|
|00000bf0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 6f 61 27 |.if test| -f 'oa'|
|00000c00| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|00000c10| 3a 20 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d |: will n|ot over-|
|00000c20| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00000c30| 69 6c 65 20 22 27 6f 61 | 27 22 0a 65 6c 73 65 0a |ile "'oa|'".else.|
|00000c40| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00000c50| 20 3e 20 27 6f 61 27 0a | 20 20 20 20 20 20 20 20 | > 'oa'.| |
|00000c60| 6f 61 20 2d 2d 20 4f 70 | 74 69 6f 6e 20 41 62 73 |oa -- Op|tion Abs|
|00000c70| 6f 6c 75 74 65 0a 0a 20 | 20 20 20 20 20 20 20 20 |olute.. | |
|00000c80| 20 20 20 20 20 20 64 65 | 66 61 75 6c 74 20 72 61 | de|fault ra|
|00000c90| 6e 67 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |nge | |
|00000ca0| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00000cb0| 20 20 20 20 20 20 20 20 | 20 20 31 2c 24 20 20 20 | | 1,$ |
|00000cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000cd0| 20 20 6f 61 0a 0a 20 20 | 20 20 20 20 20 20 22 6f | oa.. | "o|
|00000ce0| 61 22 20 74 6f 67 67 6c | 65 73 20 74 68 65 20 41 |a" toggl|es the A|
|00000cf0| 62 73 6f 6c 75 74 65 20 | 6c 69 6e 65 20 6e 75 6d |bsolute |line num|
|00000d00| 62 65 72 73 20 66 6c 61 | 67 2c 20 77 68 69 63 68 |bers fla|g, which|
|00000d10| 20 20 64 65 74 65 72 6d | 69 6e 65 73 0a 20 20 20 | determ|ines. |
|00000d20| 20 20 20 20 20 77 68 65 | 74 68 65 72 20 20 74 68 | whe|ther th|
|00000d30| 65 20 6e 75 6d 62 65 72 | 73 20 69 6e 20 74 68 65 |e number|s in the|
|00000d40| 20 6c 65 66 74 20 6d 61 | 72 67 69 6e 20 73 68 61 | left ma|rgin sha|
|00000d50| 6c 6c 20 62 65 20 61 62 | 73 6f 6c 75 74 65 20 6c |ll be ab|solute l|
|00000d60| 69 6e 65 0a 20 20 20 20 | 20 20 20 20 6e 75 6d 62 |ine. | numb|
|00000d70| 65 72 73 2c 20 6f 72 20 | 74 68 65 20 28 75 73 75 |ers, or |the (usu|
|00000d80| 61 6c 6c 79 20 63 61 70 | 69 74 61 6c 29 20 6c 65 |ally cap|ital) le|
|00000d90| 74 74 65 72 73 20 74 68 | 61 74 20 72 65 66 65 72 |tters th|at refer|
|00000da0| 20 74 6f 20 20 6c 69 6e | 65 73 0a 20 20 20 20 20 | to lin|es. |
|00000db0| 20 20 20 62 79 20 20 74 | 68 65 20 20 70 6f 73 69 | by t|he posi|
|00000dc0| 74 69 6f 6e 20 20 61 74 | 20 20 77 68 69 63 68 20 |tion at| which |
|00000dd0| 20 74 68 65 79 20 20 61 | 72 65 20 62 65 69 6e 67 | they a|re being|
|00000de0| 20 64 69 73 70 6c 61 79 | 65 64 20 6f 6e 20 74 68 | display|ed on th|
|00000df0| 65 0a 20 20 20 20 20 20 | 20 20 73 63 72 65 65 6e |e. | screen|
|00000e00| 2e 20 20 49 6e 20 61 6e | 79 20 63 61 73 65 2c 20 |. In an|y case, |
|00000e10| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 69 6e 65 |the curr|ent line|
|00000e20| 20 69 73 20 61 6c 77 61 | 79 73 20 73 68 6f 77 6e | is alwa|ys shown|
|00000e30| 20 61 73 20 20 22 2e 22 | 0a 20 20 20 20 20 20 20 | as "."|. |
|00000e40| 20 28 77 69 74 68 20 20 | 74 68 65 20 22 2d 3e 22 | (with |the "->"|
|00000e50| 20 61 72 72 6f 77 20 74 | 6f 20 6d 61 6b 65 20 69 | arrow t|o make i|
|00000e60| 74 20 65 61 73 79 20 74 | 6f 20 66 69 6e 64 29 2c |t easy t|o find),|
|00000e70| 20 74 68 65 20 66 69 72 | 73 74 20 6c 69 6e 65 0a | the fir|st line.|
|00000e80| 20 20 20 20 20 20 20 20 | 69 6e 20 74 68 65 20 62 | |in the b|
|00000e90| 75 66 66 65 72 20 69 73 | 20 6c 61 62 65 6c 65 64 |uffer is| labeled|
|00000ea0| 20 22 31 22 2c 20 61 6e | 64 20 20 74 68 65 20 20 | "1", an|d the |
|00000eb0| 6c 61 73 74 2c 20 20 22 | 24 22 20 20 28 77 68 65 |last, "|$" (whe|
|00000ec0| 6e 20 20 6e 6f 74 0a 20 | 20 20 20 20 20 20 20 22 |n not. | "|
|00000ed0| 2e 22 29 2e 20 20 20 4c | 69 6e 65 73 20 20 63 61 |."). L|ines ca|
|00000ee0| 6e 20 20 62 65 20 20 72 | 65 66 65 72 72 65 64 20 |n be r|eferred |
|00000ef0| 20 74 6f 20 20 62 79 20 | 20 6c 65 74 74 65 72 20 | to by | letter |
|00000f00| 4f 4e 4c 59 20 77 68 65 | 6e 20 74 68 65 0a 20 20 |ONLY whe|n the. |
|00000f10| 20 20 20 20 20 20 6c 65 | 74 74 65 72 73 20 61 70 | le|tters ap|
|00000f20| 70 65 61 72 20 69 6e 20 | 74 68 65 20 6c 65 66 74 |pear in |the left|
|00000f30| 20 6d 61 72 67 69 6e 2e | 0a 0a 20 20 20 20 20 20 | margin.|.. |
|00000f40| 20 20 46 6f 72 20 67 65 | 6e 65 72 61 6c 20 69 6e | For ge|neral in|
|00000f50| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about |
|00000f60| 74 68 65 20 6f 70 74 69 | 6f 6e 20 63 6f 6d 6d 61 |the opti|on comma|
|00000f70| 6e 64 2c 20 74 79 70 65 | 20 22 68 6f 22 2e 0a 20 |nd, type| "ho".. |
|00000f80| 20 20 20 20 20 20 20 53 | 65 65 20 61 6c 73 6f 20 | S|ee also |
|00000f90| 22 68 6c 6e 22 20 66 6f | 72 20 68 6f 77 20 6c 69 |"hln" fo|r how li|
|00000fa0| 6e 65 73 20 63 61 6e 20 | 62 65 20 72 65 66 65 72 |nes can |be refer|
|00000fb0| 72 65 64 20 74 6f 20 69 | 6e 20 63 6f 6d 6d 61 6e |red to i|n comman|
|00000fc0| 64 73 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 20 |ds..SHAR|_EOF.fi |
|00000fd0| 23 20 65 6e 64 20 6f 66 | 20 6f 76 65 72 77 72 69 |# end of| overwri|
|00000fe0| 74 69 6e 67 20 63 68 65 | 63 6b 0a 65 63 68 6f 20 |ting che|ck.echo |
|00000ff0| 73 68 61 72 3a 20 65 78 | 74 72 61 63 74 69 6e 67 |shar: ex|tracting|
|00001000| 20 22 27 6f 63 27 22 20 | 27 28 37 30 36 20 63 68 | "'oc'" |'(706 ch|
|00001010| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|00001020| 73 74 20 2d 66 20 27 6f | 63 27 0a 74 68 65 6e 0a |st -f 'o|c'.then.|
|00001030| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c |.echo sh|ar: will|
|00001040| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00001050| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|00001060| 6f 63 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |oc'".els|e.cat <<|
|00001070| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 6f 63 | \SHAR_E|OF > 'oc|
|00001080| 27 0a 20 20 20 20 20 20 | 20 20 6f 63 20 2d 2d 20 |'. | oc -- |
|00001090| 4f 70 74 69 6f 6e 20 43 | 61 73 65 0a 0a 20 20 20 |Option C|ase.. |
|000010a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 65 66 61 | | defa|
|000010b0| 75 6c 74 20 72 61 6e 67 | 65 20 20 20 20 20 20 20 |ult rang|e |
|000010c0| 20 20 20 20 20 20 73 79 | 6e 74 61 78 0a 20 20 20 | sy|ntax. |
|000010d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010e0| 31 2c 24 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1,$ | |
|000010f0| 20 20 20 20 20 20 20 20 | 6f 63 0a 0a 20 20 20 20 | |oc.. |
|00001100| 20 20 20 20 54 68 65 20 | 22 63 22 20 28 63 61 73 | The |"c" (cas|
|00001110| 65 29 20 6f 70 74 69 6f | 6e 20 74 6f 67 67 6c 65 |e) optio|n toggle|
|00001120| 73 20 74 68 65 20 73 61 | 6d 65 20 63 61 73 65 20 |s the sa|me case |
|00001130| 6d 61 70 70 69 6e 67 20 | 66 6c 61 67 20 20 74 68 |mapping |flag th|
|00001140| 61 74 0a 20 20 20 20 20 | 20 20 20 69 73 20 20 74 |at. | is t|
|00001150| 6f 67 67 6c 65 64 20 20 | 62 79 20 74 68 65 20 43 |oggled |by the C|
|00001160| 54 52 4c 2d 5a 20 63 6f | 6e 74 72 6f 6c 20 63 68 |TRL-Z co|ntrol ch|
|00001170| 61 72 61 63 74 65 72 2c | 20 62 75 74 20 61 6c 73 |aracter,| but als|
|00001180| 6f 20 63 68 61 6e 67 65 | 73 0a 20 20 20 20 20 20 |o change|s. |
|00001190| 20 20 74 68 65 20 6d 61 | 72 67 69 6e 61 6c 20 6c | the ma|rginal l|
|000011a0| 69 6e 65 20 6c 65 74 74 | 65 72 73 20 74 6f 20 6c |ine lett|ers to l|
|000011b0| 6f 77 65 72 20 63 61 73 | 65 20 28 6f 72 20 62 61 |ower cas|e (or ba|
|000011c0| 63 6b 20 74 6f 20 75 70 | 70 65 72 29 2c 20 73 6f |ck to up|per), so|
|000011d0| 0a 20 20 20 20 20 20 20 | 20 74 68 61 74 20 74 79 |. | that ty|
|000011e0| 70 69 6e 67 20 61 20 73 | 68 69 66 74 65 64 20 6c |ping a s|hifted l|
|000011f0| 65 74 74 65 72 20 77 69 | 6c 6c 20 73 74 69 6c 6c |etter wi|ll still|
|00001200| 20 72 65 66 65 72 20 74 | 6f 20 61 20 20 6c 69 6e | refer t|o a lin|
|00001210| 65 2c 20 20 61 6e 64 0a | 20 20 20 20 20 20 20 20 |e, and.| |
|00001220| 74 79 70 69 6e 67 20 61 | 6e 20 75 6e 73 68 69 66 |typing a|n unshif|
|00001230| 74 65 64 20 6c 65 74 74 | 65 72 20 77 69 6c 6c 20 |ted lett|er will |
|00001240| 64 6f 20 66 6f 72 20 61 | 20 63 6f 6d 6d 61 6e 64 |do for a| command|
|00001250| 20 6c 65 74 74 65 72 2e | 20 20 54 68 69 73 0a 20 | letter.| This. |
|00001260| 20 20 20 20 20 20 20 69 | 73 20 20 75 73 65 66 75 | i|s usefu|
|00001270| 6c 20 66 6f 72 20 68 61 | 6e 64 6c 69 6e 67 20 6c |l for ha|ndling l|
|00001280| 61 72 67 65 20 61 6d 6f | 75 6e 74 73 20 6f 66 20 |arge amo|unts of |
|00001290| 75 70 70 65 72 20 63 61 | 73 65 20 74 65 78 74 2c |upper ca|se text,|
|000012a0| 20 73 75 63 68 0a 20 20 | 20 20 20 20 20 20 61 73 | such. | as|
|000012b0| 20 46 6f 72 74 72 61 6e | 20 70 72 6f 67 72 61 6d | Fortran| program|
|000012c0| 73 2e 0a 0a 20 20 20 20 | 20 20 20 20 46 6f 72 20 |s... | For |
|000012d0| 67 65 6e 65 72 61 6c 20 | 69 6e 66 6f 72 6d 61 74 |general |informat|
|000012e0| 69 6f 6e 20 61 62 6f 75 | 74 20 74 68 65 20 6f 70 |ion abou|t the op|
|000012f0| 74 69 6f 6e 20 63 6f 6d | 6d 61 6e 64 2c 20 74 79 |tion com|mand, ty|
|00001300| 70 65 20 22 68 6f 22 2e | 0a 20 20 20 20 20 20 20 |pe "ho".|. |
|00001310| 20 53 65 65 20 61 6c 73 | 6f 20 22 68 6f 61 22 2e | See als|o "hoa".|
|00001320| 0a 20 20 20 20 20 20 20 | 20 46 6f 72 74 72 61 6e |. | Fortran|
|00001330| 65 72 73 20 73 65 65 20 | 61 6c 73 6f 20 22 68 6f |ers see |also "ho|
|00001340| 66 22 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 20 |f"..SHAR|_EOF.fi |
|00001350| 23 20 65 6e 64 20 6f 66 | 20 6f 76 65 72 77 72 69 |# end of| overwri|
|00001360| 74 69 6e 67 20 63 68 65 | 63 6b 0a 65 63 68 6f 20 |ting che|ck.echo |
|00001370| 73 68 61 72 3a 20 65 78 | 74 72 61 63 74 69 6e 67 |shar: ex|tracting|
|00001380| 20 22 27 6f 64 27 22 20 | 27 28 37 38 35 20 63 68 | "'od'" |'(785 ch|
|00001390| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|000013a0| 73 74 20 2d 66 20 27 6f | 64 27 0a 74 68 65 6e 0a |st -f 'o|d'.then.|
|000013b0| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c |.echo sh|ar: will|
|000013c0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|000013d0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|000013e0| 6f 64 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |od'".els|e.cat <<|
|000013f0| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 6f 64 | \SHAR_E|OF > 'od|
|00001400| 27 0a 20 20 20 20 20 20 | 20 20 6f 64 20 2d 2d 20 |'. | od -- |
|00001410| 4f 70 74 69 6f 6e 20 44 | 65 6c 65 74 65 0a 0a 20 |Option D|elete.. |
|00001420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 65 | | de|
|00001430| 66 61 75 6c 74 20 72 61 | 6e 67 65 20 20 20 20 20 |fault ra|nge |
|00001440| 20 20 20 20 20 20 20 20 | 73 79 6e 74 61 78 0a 20 | |syntax. |
|00001450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001460| 20 31 2c 24 20 20 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00001470| 20 20 20 20 20 20 20 20 | 20 6f 64 5b 3c 7c 3e 5d | | od[<|>]|
|00001480| 0a 0a 20 20 20 20 20 20 | 20 20 54 68 65 20 22 64 |.. | The "d|
|00001490| 22 20 6f 70 74 69 6f 6e | 20 69 73 20 66 6f 72 20 |" option| is for |
|000014a0| 44 65 6c 65 74 65 20 64 | 69 72 65 63 74 69 6f 6e |Delete d|irection|
|000014b0| 2e 20 20 54 79 70 69 6e | 67 20 22 6f 64 3c 22 20 |. Typin|g "od<" |
|000014c0| 66 69 78 65 73 20 69 74 | 0a 20 20 20 20 20 20 20 |fixes it|. |
|000014d0| 20 73 6f 20 20 74 68 61 | 74 20 20 61 66 74 65 72 | so tha|t after|
|000014e0| 20 20 79 6f 75 20 20 67 | 69 76 65 20 20 61 20 22 | you g|ive a "|
|000014f0| 64 22 20 63 6f 6d 6d 61 | 6e 64 2c 20 74 68 65 20 |d" comma|nd, the |
|00001500| 6c 69 6e 65 20 42 45 46 | 4f 52 45 20 74 68 65 0a |line BEF|ORE the.|
|00001510| 20 20 20 20 20 20 20 20 | 67 72 6f 75 70 20 6f 66 | |group of|
|00001520| 20 6c 69 6e 65 73 20 64 | 65 6c 65 74 65 64 20 62 | lines d|eleted b|
|00001530| 65 63 6f 6d 65 73 20 74 | 68 65 20 63 75 72 72 65 |ecomes t|he curre|
|00001540| 6e 74 20 6c 69 6e 65 20 | 20 28 2e 29 2e 20 20 20 |nt line | (.). |
|00001550| 54 79 70 69 6e 67 0a 20 | 20 20 20 20 20 20 20 22 |Typing. | "|
|00001560| 6f 64 3e 22 20 20 72 65 | 73 65 74 73 20 20 74 68 |od>" re|sets th|
|00001570| 65 20 20 6e 6f 72 6d 61 | 6c 20 62 65 68 61 76 69 |e norma|l behavi|
|00001580| 6f 72 2c 20 69 6e 20 77 | 68 69 63 68 20 74 68 65 |or, in w|hich the|
|00001590| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 0a 20 20 | current| line. |
|000015a0| 20 20 20 20 20 20 70 6f | 69 6e 74 65 72 20 69 73 | po|inter is|
|000015b0| 20 61 6c 77 61 79 73 20 | 70 6f 73 69 74 69 6f 6e | always |position|
|000015c0| 65 64 20 41 46 54 45 52 | 20 74 68 65 20 67 72 6f |ed AFTER| the gro|
|000015d0| 75 70 20 6f 66 20 6c 69 | 6e 65 73 20 20 64 65 6c |up of li|nes del|
|000015e0| 65 74 65 64 0a 20 20 20 | 20 20 20 20 20 62 79 20 |eted. | by |
|000015f0| 20 74 68 65 20 22 64 22 | 20 63 6f 6d 6d 61 6e 64 | the "d"| command|
|00001600| 2c 20 69 66 20 70 6f 73 | 73 69 62 6c 65 20 28 44 |, if pos|sible (D|
|00001610| 65 6c 65 74 69 6e 67 20 | 74 68 65 20 6c 61 73 74 |eleting |the last|
|00001620| 20 6c 69 6e 65 20 6d 61 | 6b 65 73 0a 20 20 20 20 | line ma|kes. |
|00001630| 20 20 20 20 74 68 65 20 | 6e 65 77 20 6c 61 73 74 | the |new last|
|00001640| 20 20 6c 69 6e 65 20 20 | 74 68 65 20 20 63 75 72 | line |the cur|
|00001650| 72 65 6e 74 20 20 6c 69 | 6e 65 29 2e 20 20 20 54 |rent li|ne). T|
|00001660| 79 70 69 6e 67 20 20 22 | 6f 64 22 20 20 61 6c 6f |yping "|od" alo|
|00001670| 6e 65 0a 20 20 20 20 20 | 20 20 20 71 75 65 72 69 |ne. | queri|
|00001680| 65 73 20 20 74 68 65 20 | 20 64 65 6c 65 74 65 20 |es the | delete |
|00001690| 20 64 69 72 65 63 74 69 | 6f 6e 20 66 6c 61 67 2c | directi|on flag,|
|000016a0| 20 63 61 75 73 69 6e 67 | 20 22 3e 22 20 6f 72 20 | causing| ">" or |
|000016b0| 22 3c 22 20 74 6f 20 62 | 65 0a 20 20 20 20 20 20 |"<" to b|e. |
|000016c0| 20 20 64 69 73 70 6c 61 | 79 65 64 2e 0a 0a 20 20 | displa|yed... |
|000016d0| 20 20 20 20 20 20 46 6f | 72 20 67 65 6e 65 72 61 | Fo|r genera|
|000016e0| 6c 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |l inform|ation ab|
|000016f0| 6f 75 74 20 74 68 65 20 | 6f 70 74 69 6f 6e 20 63 |out the |option c|
|00001700| 6f 6d 6d 61 6e 64 2c 20 | 74 79 70 65 20 22 68 6f |ommand, |type "ho|
|00001710| 22 2e 0a 53 48 41 52 5f | 45 4f 46 0a 66 69 20 23 |"..SHAR_|EOF.fi #|
|00001720| 20 65 6e 64 20 6f 66 20 | 6f 76 65 72 77 72 69 74 | end of |overwrit|
|00001730| 69 6e 67 20 63 68 65 63 | 6b 0a 65 63 68 6f 20 73 |ing chec|k.echo s|
|00001740| 68 61 72 3a 20 65 78 74 | 72 61 63 74 69 6e 67 20 |har: ext|racting |
|00001750| 22 27 6f 66 27 22 20 27 | 28 35 37 39 20 63 68 61 |"'of'" '|(579 cha|
|00001760| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00001770| 74 20 2d 66 20 27 6f 66 | 27 0a 74 68 65 6e 0a 09 |t -f 'of|'.then..|
|00001780| 65 63 68 6f 20 73 68 61 | 72 3a 20 77 69 6c 6c 20 |echo sha|r: will |
|00001790| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|000017a0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 22 27 6f |xisting |file "'o|
|000017b0| 66 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |f'".else|.cat << |
|000017c0| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 6f 66 27 |\SHAR_EO|F > 'of'|
|000017d0| 0a 0a 20 20 20 20 20 20 | 20 20 6f 66 20 2d 2d 20 |.. | of -- |
|000017e0| 4f 70 74 69 6f 6e 20 46 | 6f 72 74 72 61 6e 0a 0a |Option F|ortran..|
|000017f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00001800| 65 66 61 75 6c 74 20 72 | 61 6e 67 65 20 20 20 20 |efault r|ange |
|00001810| 20 20 20 20 20 20 20 20 | 20 73 79 6e 74 61 78 0a | | syntax.|
|00001820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001830| 20 20 31 2c 24 20 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00001840| 20 20 20 20 20 20 20 20 | 20 20 20 6f 66 0a 0a 20 | | of.. |
|00001850| 20 20 20 20 20 20 20 54 | 79 70 69 6e 67 20 20 22 | T|yping "|
|00001860| 6f 66 22 20 20 74 75 72 | 6e 73 20 20 6f 6e 20 20 |of" tur|ns on |
|00001870| 61 20 20 70 61 63 6b 61 | 67 65 20 20 6f 66 20 20 |a packa|ge of |
|00001880| 6f 70 74 69 6f 6e 73 20 | 20 63 6f 6e 73 69 64 65 |options | conside|
|00001890| 72 65 64 0a 20 20 20 20 | 20 20 20 20 63 6f 6e 76 |red. | conv|
|000018a0| 65 6e 69 65 6e 74 20 66 | 6f 72 20 65 64 69 74 69 |enient f|or editi|
|000018b0| 6e 67 20 46 6f 72 74 72 | 61 6e 2e 20 20 54 68 65 |ng Fortr|an. The|
|000018c0| 20 77 61 72 6e 69 6e 67 | 20 63 6f 6c 75 6d 6e 20 | warning| column |
|000018d0| 20 69 73 20 20 73 65 74 | 0a 20 20 20 20 20 20 20 | is set|. |
|000018e0| 20 74 6f 20 20 37 32 2c | 20 20 61 6e 64 20 74 61 | to 72,| and ta|
|000018f0| 62 20 73 70 61 63 69 6e | 67 20 69 73 20 73 65 74 |b spacin|g is set|
|00001900| 20 74 6f 20 37 20 2b 33 | 20 73 6f 20 74 68 61 74 | to 7 +3| so that|
|00001910| 20 74 61 62 62 69 6e 67 | 20 6f 6e 63 65 0a 20 20 | tabbing| once. |
|00001920| 20 20 20 20 20 20 67 65 | 74 73 20 79 6f 75 20 74 | ge|ts you t|
|00001930| 6f 20 63 6f 6c 75 6d 6e | 20 37 2e 20 20 20 54 61 |o column| 7. Ta|
|00001940| 62 20 20 65 78 70 61 6e | 73 69 6f 6e 20 20 69 73 |b expan|sion is|
|00001950| 20 20 61 6c 73 6f 20 20 | 74 75 72 6e 65 64 20 20 | also |turned |
|00001960| 6f 6e 0a 20 20 20 20 20 | 20 20 20 28 58 54 41 42 |on. | (XTAB|
|00001970| 53 29 2e 20 20 20 54 6f | 20 20 75 6e 64 6f 20 20 |S). To| undo |
|00001980| 22 6f 66 22 20 69 74 20 | 69 73 20 6e 65 63 65 73 |"of" it |is neces|
|00001990| 73 61 72 79 20 74 6f 20 | 74 79 70 65 20 22 6f 74 |sary to |type "ot|
|000019a0| 2b 33 22 20 61 6e 64 0a | 20 20 20 20 20 20 20 20 |+3" and.| |
|000019b0| 22 6f 78 22 2e 0a 0a 20 | 20 20 20 20 20 20 20 46 |"ox"... | F|
|000019c0| 6f 72 20 67 65 6e 65 72 | 61 6c 20 69 6e 66 6f 72 |or gener|al infor|
|000019d0| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 74 68 65 |mation a|bout the|
|000019e0| 20 6f 70 74 69 6f 6e 20 | 63 6f 6d 6d 61 6e 64 2c | option |command,|
|000019f0| 20 74 79 70 65 20 22 68 | 6f 22 2e 0a 20 20 20 20 | type "h|o".. |
|00001a00| 20 20 20 20 53 65 65 20 | 61 6c 73 6f 20 22 6f 61 | See |also "oa|
|00001a10| 22 2e 0a 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 20 |"...SHAR|_EOF.fi |
|00001a20| 23 20 65 6e 64 20 6f 66 | 20 6f 76 65 72 77 72 69 |# end of| overwri|
|00001a30| 74 69 6e 67 20 63 68 65 | 63 6b 0a 65 63 68 6f 20 |ting che|ck.echo |
|00001a40| 73 68 61 72 3a 20 65 78 | 74 72 61 63 74 69 6e 67 |shar: ex|tracting|
|00001a50| 20 22 27 6f 67 27 22 20 | 27 28 37 31 39 20 63 68 | "'og'" |'(719 ch|
|00001a60| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|00001a70| 73 74 20 2d 66 20 27 6f | 67 27 0a 74 68 65 6e 0a |st -f 'o|g'.then.|
|00001a80| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c |.echo sh|ar: will|
|00001a90| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00001aa0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|00001ab0| 6f 67 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |og'".els|e.cat <<|
|00001ac0| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 6f 67 | \SHAR_E|OF > 'og|
|00001ad0| 27 0a 0a 20 20 20 20 20 | 20 20 20 6f 67 20 2d 2d |'.. | og --|
|00001ae0| 20 4f 70 74 69 6f 6e 20 | 47 6c 6f 62 61 6c 0a 0a | Option |Global..|
|00001af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00001b00| 65 66 61 75 6c 74 20 72 | 61 6e 67 65 20 20 20 20 |efault r|ange |
|00001b10| 20 20 20 20 20 20 20 20 | 20 73 79 6e 74 61 78 0a | | syntax.|
|00001b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b30| 20 20 31 2c 24 20 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00001b40| 20 20 20 20 20 20 20 20 | 20 20 6f 67 0a 0a 20 20 | | og.. |
|00001b50| 20 20 20 20 20 20 54 68 | 65 20 22 67 22 20 6f 70 | Th|e "g" op|
|00001b60| 74 69 6f 6e 20 63 6f 6e | 74 72 6f 6c 73 20 74 68 |tion con|trols th|
|00001b70| 65 20 62 65 68 61 76 69 | 6f 72 20 6f 66 20 74 68 |e behavi|or of th|
|00001b80| 65 20 53 75 62 73 74 69 | 74 75 74 65 20 20 63 6f |e Substi|tute co|
|00001b90| 6d 6d 61 6e 64 0a 20 20 | 20 20 20 20 20 20 77 68 |mmand. | wh|
|00001ba0| 65 6e 20 69 74 20 20 69 | 73 20 75 6e 64 65 72 20 |en it i|s under |
|00001bb0| 74 68 65 20 63 6f 6e 74 | 72 6f 6c 20 6f 66 20 61 |the cont|rol of a|
|00001bc0| 20 47 6c 6f 62 61 6c 20 | 20 63 6f 6d 6d 61 6e 64 | Global | command|
|00001bd0| 2e 20 20 49 6e 69 74 69 | 61 6c 6c 79 2c 0a 20 20 |. Initi|ally,. |
|00001be0| 20 20 20 20 20 20 69 66 | 20 61 20 73 75 62 73 74 | if| a subst|
|00001bf0| 69 74 75 74 65 20 69 6e | 73 69 64 65 20 61 20 67 |itute in|side a g|
|00001c00| 6c 6f 62 61 6c 20 63 6f | 6d 6d 61 6e 64 20 66 61 |lobal co|mmand fa|
|00001c10| 69 6c 73 2c 20 73 65 20 | 77 69 6c 6c 20 6e 6f 74 |ils, se |will not|
|00001c20| 20 63 6f 6e 2d 0a 20 20 | 20 20 20 20 20 20 74 69 | con-. | ti|
|00001c30| 6e 75 65 20 77 69 74 68 | 20 20 74 68 65 20 72 65 |nue with| the re|
|00001c40| 73 74 20 6f 66 20 74 68 | 65 20 6c 69 6e 65 73 20 |st of th|e lines |
|00001c50| 20 77 68 69 63 68 20 6d | 69 67 68 74 20 73 75 63 | which m|ight suc|
|00001c60| 63 65 65 64 2e 20 49 66 | 20 22 6f 67 22 0a 20 20 |ceed. If| "og". |
|00001c70| 20 20 20 20 20 20 69 73 | 20 67 69 76 65 6e 2c 20 | is| given, |
|00001c80| 74 68 65 6e 20 20 74 68 | 65 20 67 6c 6f 62 61 6c |then th|e global|
|00001c90| 20 73 75 62 73 74 69 74 | 75 74 65 20 20 77 69 6c | substit|ute wil|
|00001ca0| 6c 20 63 6f 6e 74 69 6e | 75 65 2c 20 61 6e 64 20 |l contin|ue, and |
|00001cb0| 6c 69 6e 65 73 0a 20 20 | 20 20 20 20 20 20 77 68 |lines. | wh|
|00001cc0| 69 63 68 20 66 61 69 6c | 65 64 20 77 69 6c 6c 20 |ich fail|ed will |
|00001cd0| 6e 6f 74 20 62 65 20 61 | 66 66 65 63 74 65 64 2e |not be a|ffected.|
|00001ce0| 20 53 75 63 63 65 73 69 | 76 65 20 22 6f 67 22 20 | Succesi|ve "og" |
|00001cf0| 63 6f 6d 6d 61 6e 64 73 | 20 77 69 6c 6c 0a 20 20 |commands| will. |
|00001d00| 20 20 20 20 20 20 74 6f | 67 67 6c 65 20 74 68 69 | to|ggle thi|
|00001d10| 73 20 62 65 68 61 76 69 | 6f 72 2e 20 20 41 6e 20 |s behavi|or. An |
|00001d20| 65 78 70 6c 61 6e 61 74 | 6f 72 79 20 6d 65 73 73 |explanat|ory mess|
|00001d30| 61 67 65 20 69 73 20 70 | 6c 61 63 65 64 20 69 6e |age is p|laced in|
|00001d40| 20 20 74 68 65 0a 20 20 | 20 20 20 20 20 20 73 74 | the. | st|
|00001d50| 61 74 75 73 20 6c 69 6e | 65 2e 0a 0a 20 20 20 20 |atus lin|e... |
|00001d60| 20 20 20 20 46 6f 72 20 | 67 65 6e 65 72 61 6c 20 | For |general |
|00001d70| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00001d80| 74 20 74 68 65 20 6f 70 | 74 69 6f 6e 20 63 6f 6d |t the op|tion com|
|00001d90| 6d 61 6e 64 2c 20 74 79 | 70 65 20 22 68 6f 22 2e |mand, ty|pe "ho".|
|00001da0| 0a 53 48 41 52 5f 45 4f | 46 0a 66 69 20 23 20 65 |.SHAR_EO|F.fi # e|
|00001db0| 6e 64 20 6f 66 20 6f 76 | 65 72 77 72 69 74 69 6e |nd of ov|erwritin|
|00001dc0| 67 20 63 68 65 63 6b 0a | 65 63 68 6f 20 73 68 61 |g check.|echo sha|
|00001dd0| 72 3a 20 65 78 74 72 61 | 63 74 69 6e 67 20 22 27 |r: extra|cting "'|
|00001de0| 6f 68 27 22 20 27 28 37 | 37 34 20 63 68 61 72 61 |oh'" '(7|74 chara|
|00001df0| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00001e00| 2d 66 20 27 6f 68 27 0a | 74 68 65 6e 0a 09 65 63 |-f 'oh'.|then..ec|
|00001e10| 68 6f 20 73 68 61 72 3a | 20 77 69 6c 6c 20 6e 6f |ho shar:| will no|
|00001e20| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00001e30| 73 74 69 6e 67 20 66 69 | 6c 65 20 22 27 6f 68 27 |sting fi|le "'oh'|
|00001e40| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|00001e50| 48 41 52 5f 45 4f 46 20 | 3e 20 27 6f 68 27 0a 0a |HAR_EOF |> 'oh'..|
|00001e60| 20 20 20 20 20 20 20 20 | 6f 68 20 2d 2d 20 4f 70 | |oh -- Op|
|00001e70| 74 69 6f 6e 20 48 61 72 | 64 77 61 72 65 20 49 6e |tion Har|dware In|
|00001e80| 73 65 72 74 2f 44 65 6c | 65 74 65 0a 0a 20 20 20 |sert/Del|ete.. |
|00001e90| 20 20 20 20 20 20 20 20 | 20 20 20 64 65 66 61 75 | | defau|
|00001ea0| 6c 74 20 72 61 6e 67 65 | 20 20 20 20 20 20 20 20 |lt range| |
|00001eb0| 20 20 20 20 20 73 79 6e | 74 61 78 0a 20 20 20 20 | syn|tax. |
|00001ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 2c 24 | | 1,$|
|00001ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ee0| 20 20 20 20 20 6f 68 0a | 0a 20 20 20 20 20 20 20 | oh.|. |
|00001ef0| 20 54 68 65 20 20 20 22 | 68 22 20 20 20 6f 70 74 | The "|h" opt|
|00001f00| 69 6f 6e 20 20 20 63 6f | 6e 74 72 6f 6c 73 20 20 |ion co|ntrols |
|00001f10| 20 74 68 65 20 20 75 73 | 65 20 20 6f 66 20 20 68 | the us|e of h|
|00001f20| 61 72 64 77 61 72 65 20 | 20 6c 69 6e 65 0a 20 20 |ardware | line. |
|00001f30| 20 20 20 20 20 20 69 6e | 73 65 72 74 2f 64 65 6c | in|sert/del|
|00001f40| 65 74 65 20 6f 6e 20 74 | 65 72 6d 69 6e 61 6c 73 |ete on t|erminals|
|00001f50| 20 74 68 61 74 20 68 61 | 76 65 20 20 74 68 61 74 | that ha|ve that|
|00001f60| 20 20 63 61 70 61 62 69 | 6c 69 74 79 2e 20 20 20 | capabi|lity. |
|00001f70| 42 79 0a 20 20 20 20 20 | 20 20 20 64 65 66 61 75 |By. | defau|
|00001f80| 6c 74 2c 20 20 6c 69 6e | 65 20 20 69 6e 73 65 72 |lt, lin|e inser|
|00001f90| 74 2f 64 65 6c 65 74 65 | 20 77 69 6c 6c 20 62 65 |t/delete| will be|
|00001fa0| 20 75 73 65 64 20 69 66 | 20 61 76 61 69 6c 61 62 | used if| availab|
|00001fb0| 6c 65 2e 20 20 49 74 0a | 20 20 20 20 20 20 20 20 |le. It.| |
|00001fc0| 69 73 20 6f 63 63 61 73 | 69 6f 6e 61 6c 6c 79 20 |is occas|ionally |
|00001fd0| 75 73 65 66 75 6c 20 74 | 6f 20 74 75 72 6e 20 74 |useful t|o turn t|
|00001fe0| 68 69 73 20 6f 70 74 69 | 6f 6e 20 20 6f 66 66 20 |his opti|on off |
|00001ff0| 20 77 68 65 6e 20 20 75 | 73 69 6e 67 0a 20 20 20 | when u|sing. |
|00002000| 20 20 20 20 20 74 68 65 | 20 65 64 69 74 6f 72 20 | the| editor |
|00002010| 6f 6e 20 61 20 74 65 72 | 6d 69 6e 61 6c 20 77 68 |on a ter|minal wh|
|00002020| 69 63 68 20 63 61 6e 27 | 74 20 6b 65 65 70 20 75 |ich can'|t keep u|
|00002030| 70 2c 20 6f 72 20 69 66 | 20 74 68 65 20 63 6f 6d |p, or if| the com|
|00002040| 2d 0a 20 20 20 20 20 20 | 20 20 6d 75 6e 69 63 61 |-. | munica|
|00002050| 74 69 6f 6e 73 20 20 6c | 69 6e 65 73 20 6d 61 79 |tions l|ines may|
|00002060| 20 62 65 20 73 63 72 61 | 6d 62 6c 69 6e 67 20 74 | be scra|mbling t|
|00002070| 68 65 20 63 6f 6e 74 72 | 6f 6c 20 63 68 61 72 61 |he contr|ol chara|
|00002080| 63 74 65 72 73 2e 0a 20 | 20 20 20 20 20 20 20 45 |cters.. | E|
|00002090| 61 63 68 20 73 75 63 63 | 65 73 73 69 76 65 20 22 |ach succ|essive "|
|000020a0| 6f 68 22 20 6d 65 72 65 | 6c 79 20 20 74 6f 67 67 |oh" mere|ly togg|
|000020b0| 6c 65 73 20 20 61 20 20 | 73 77 69 74 63 68 20 20 |les a |switch |
|000020c0| 77 69 74 68 69 6e 20 20 | 74 68 65 0a 20 20 20 20 |within |the. |
|000020d0| 20 20 20 20 65 64 69 74 | 6f 72 2e 20 20 20 41 6e | edit|or. An|
|000020e0| 20 20 65 78 70 6c 61 6e | 61 74 6f 72 79 20 20 6d | explan|atory m|
|000020f0| 65 73 73 61 67 65 20 20 | 69 73 20 20 70 6c 61 63 |essage |is plac|
|00002100| 65 64 20 69 6e 20 74 68 | 65 20 73 74 61 74 75 73 |ed in th|e status|
|00002110| 0a 20 20 20 20 20 20 20 | 20 6c 69 6e 65 2e 0a 0a |. | line...|
|00002120| 20 20 20 20 20 20 20 20 | 46 6f 72 20 67 65 6e 65 | |For gene|
|00002130| 72 61 6c 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ral info|rmation |
|00002140| 61 62 6f 75 74 20 74 68 | 65 20 6f 70 74 69 6f 6e |about th|e option|
|00002150| 20 63 6f 6d 6d 61 6e 64 | 2c 20 74 79 70 65 20 22 | command|, type "|
|00002160| 68 6f 22 2e 0a 53 48 41 | 52 5f 45 4f 46 0a 66 69 |ho"..SHA|R_EOF.fi|
|00002170| 20 23 20 65 6e 64 20 6f | 66 20 6f 76 65 72 77 72 | # end o|f overwr|
|00002180| 69 74 69 6e 67 20 63 68 | 65 63 6b 0a 65 63 68 6f |iting ch|eck.echo|
|00002190| 20 73 68 61 72 3a 20 65 | 78 74 72 61 63 74 69 6e | shar: e|xtractin|
|000021a0| 67 20 22 27 6f 69 27 22 | 20 27 28 35 33 37 20 63 |g "'oi'"| '(537 c|
|000021b0| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|000021c0| 65 73 74 20 2d 66 20 27 | 6f 69 27 0a 74 68 65 6e |est -f '|oi'.then|
|000021d0| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 77 69 6c |..echo s|har: wil|
|000021e0| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|000021f0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 22 | existin|g file "|
|00002200| 27 6f 69 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |'oi'".el|se.cat <|
|00002210| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 6f |< \SHAR_|EOF > 'o|
|00002220| 69 27 0a 0a 20 20 20 20 | 20 20 20 20 6f 69 20 2d |i'.. | oi -|
|00002230| 2d 20 4f 70 74 69 6f 6e | 20 49 6e 64 65 6e 74 0a |- Option| Indent.|
|00002240| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002250| 20 64 65 66 61 75 6c 74 | 20 72 61 6e 67 65 20 20 | default| range |
|00002260| 20 20 20 20 20 20 20 20 | 20 73 79 6e 74 61 78 0a | | syntax.|
|00002270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002280| 20 20 20 20 31 2c 20 24 | 20 20 20 20 20 20 20 20 | 1, $| |
|00002290| 20 20 20 20 20 20 20 20 | 20 20 6f 69 5b 61 20 7c | | oi[a ||
|000022a0| 20 3c 69 6e 64 65 6e 74 | 3e 5d 0a 0a 20 20 20 20 | <indent|>].. |
|000022b0| 20 20 20 20 22 6f 69 22 | 20 73 65 6c 65 63 74 73 | "oi"| selects|
|000022c0| 20 74 68 65 20 69 6e 64 | 65 6e 74 20 76 61 6c 75 | the ind|ent valu|
|000022d0| 65 20 66 6f 72 20 6c 69 | 6e 65 73 20 20 69 6e 73 |e for li|nes ins|
|000022e0| 65 72 74 65 64 20 77 69 | 74 68 20 22 61 22 20 61 |erted wi|th "a" a|
|000022f0| 6e 64 0a 20 20 20 20 20 | 20 20 20 22 69 22 20 63 |nd. | "i" c|
|00002300| 6f 6d 6d 61 6e 64 73 20 | 28 69 6e 69 74 69 61 6c |ommands |(initial|
|00002310| 6c 79 20 31 29 2e 20 22 | 61 22 20 73 65 6c 65 63 |ly 1). "|a" selec|
|00002320| 74 73 20 61 75 74 6f 2d | 69 6e 64 65 6e 74 20 77 |ts auto-|indent w|
|00002330| 68 69 63 68 20 73 65 74 | 73 0a 20 20 20 20 20 20 |hich set|s. |
|00002340| 20 20 74 68 65 20 69 6e | 64 65 6e 74 20 74 6f 20 | the in|dent to |
|00002350| 74 68 65 20 76 61 6c 75 | 65 20 20 77 68 69 63 68 |the valu|e which|
|00002360| 20 65 71 75 61 6c 73 20 | 74 68 65 20 69 6e 64 65 | equals |the inde|
|00002370| 6e 74 20 6f 66 20 74 68 | 65 20 70 72 65 76 69 2d |nt of th|e previ-|
|00002380| 0a 20 20 20 20 20 20 20 | 20 6f 75 73 20 6c 69 6e |. | ous lin|
|00002390| 65 2e 20 20 49 66 20 20 | 6e 65 69 74 68 65 72 20 |e. If |neither |
|000023a0| 20 22 61 22 20 6e 6f 72 | 20 20 22 3c 69 6e 64 65 | "a" nor| "<inde|
|000023b0| 6e 74 3e 22 20 69 73 20 | 20 73 70 65 63 69 66 69 |nt>" is | specifi|
|000023c0| 65 64 2c 20 74 68 65 0a | 20 20 20 20 20 20 20 20 |ed, the.| |
|000023d0| 63 75 72 72 65 6e 74 20 | 76 61 6c 75 65 20 6f 66 |current |value of|
|000023e0| 20 69 6e 64 65 6e 74 20 | 69 73 20 64 69 73 70 6c | indent |is displ|
|000023f0| 61 79 65 64 2e 0a 0a 20 | 20 20 20 20 20 20 20 46 |ayed... | F|
|00002400| 6f 72 20 67 65 6e 65 72 | 61 6c 20 69 6e 66 6f 72 |or gener|al infor|
|00002410| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 74 68 65 |mation a|bout the|
|00002420| 20 6f 70 74 69 6f 6e 20 | 63 6f 6d 6d 61 6e 64 2c | option |command,|
|00002430| 20 74 79 70 65 20 22 68 | 6f 22 2e 0a 53 48 41 52 | type "h|o"..SHAR|
|00002440| 5f 45 4f 46 0a 66 69 20 | 23 20 65 6e 64 20 6f 66 |_EOF.fi |# end of|
|00002450| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|00002460| 63 6b 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |ck.echo |shar: ex|
|00002470| 74 72 61 63 74 69 6e 67 | 20 22 27 6f 6b 27 22 20 |tracting| "'ok'" |
|00002480| 27 28 34 36 30 20 63 68 | 61 72 61 63 74 65 72 73 |'(460 ch|aracters|
|00002490| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 6f |)'.if te|st -f 'o|
|000024a0| 6b 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |k'.then.|.echo sh|
|000024b0| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|000024c0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|000024d0| 20 66 69 6c 65 20 22 27 | 6f 6b 27 22 0a 65 6c 73 | file "'|ok'".els|
|000024e0| 65 0a 63 61 74 20 3c 3c | 20 5c 53 48 41 52 5f 45 |e.cat <<| \SHAR_E|
|000024f0| 4f 46 20 3e 20 27 6f 6b | 27 0a 20 20 20 20 20 20 |OF > 'ok|'. |
|00002500| 20 20 6f 6b 20 2d 2d 20 | 4f 70 74 69 6f 6e 20 4f | ok -- |Option O|
|00002510| 4b 0a 0a 20 20 20 20 20 | 20 20 20 64 65 66 61 75 |K.. | defau|
|00002520| 6c 74 20 72 61 6e 67 65 | 20 20 20 20 20 20 20 20 |lt range| |
|00002530| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 79 6e 74 | | synt|
|00002540| 61 78 0a 20 20 20 20 20 | 20 20 20 20 20 31 2c 24 |ax. | 1,$|
|00002550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6f 6b 0a | | ok.|
|00002570| 0a 20 20 20 20 20 20 20 | 20 54 79 70 69 6e 67 20 |. | Typing |
|00002580| 20 22 6f 6b 22 20 20 73 | 69 6d 70 6c 79 20 74 65 | "ok" s|imply te|
|00002590| 73 74 73 20 74 68 65 20 | 66 6c 61 67 20 74 68 61 |sts the |flag tha|
|000025a0| 74 20 69 6e 64 69 63 61 | 74 65 73 20 77 68 65 74 |t indica|tes whet|
|000025b0| 68 65 72 20 74 68 65 0a | 20 20 20 20 20 20 20 20 |her the.| |
|000025c0| 65 64 69 74 20 62 75 66 | 66 65 72 20 68 61 73 20 |edit buf|fer has |
|000025d0| 62 65 65 6e 20 73 61 76 | 65 64 20 73 69 6e 63 65 |been sav|ed since|
|000025e0| 20 74 68 65 20 6c 61 73 | 74 20 63 68 61 6e 67 65 | the las|t change|
|000025f0| 20 77 61 73 20 20 6d 61 | 64 65 20 20 74 6f 0a 20 | was ma|de to. |
|00002600| 20 20 20 20 20 20 20 69 | 74 2e 20 20 20 22 53 61 | i|t. "Sa|
|00002610| 76 65 64 22 20 20 6f 72 | 20 20 22 4e 6f 74 20 73 |ved" or| "Not s|
|00002620| 61 76 65 64 22 20 69 73 | 20 61 63 63 6f 72 64 69 |aved" is| accordi|
|00002630| 6e 67 6c 79 20 64 69 73 | 70 6c 61 79 65 64 20 69 |ngly dis|played i|
|00002640| 6e 20 74 68 65 0a 20 20 | 20 20 20 20 20 20 72 65 |n the. | re|
|00002650| 6d 61 72 6b 20 66 69 65 | 6c 64 20 61 74 20 74 68 |mark fie|ld at th|
|00002660| 65 20 62 6f 74 74 6f 6d | 20 6f 66 20 74 68 65 20 |e bottom| of the |
|00002670| 73 63 72 65 65 6e 2e 0a | 0a 20 20 20 20 20 20 20 |screen..|. |
|00002680| 20 54 6f 20 72 65 74 75 | 72 6e 20 74 6f 20 74 68 | To retu|rn to th|
|00002690| 65 20 6f 70 74 69 6f 6e | 20 64 69 72 65 63 74 6f |e option| directo|
|000026a0| 72 79 2c 20 74 79 70 65 | 20 22 68 6f 22 2e 0a 20 |ry, type| "ho".. |
|000026b0| 20 20 20 20 20 20 20 53 | 65 65 20 61 6c 73 6f 20 | S|ee also |
|000026c0| 22 68 71 22 2e 0a 53 48 | 41 52 5f 45 4f 46 0a 66 |"hq"..SH|AR_EOF.f|
|000026d0| 69 20 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i # end |of overw|
|000026e0| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 65 63 68 |riting c|heck.ech|
|000026f0| 6f 20 73 68 61 72 3a 20 | 65 78 74 72 61 63 74 69 |o shar: |extracti|
|00002700| 6e 67 20 22 27 6f 6c 27 | 22 20 27 28 36 34 36 20 |ng "'ol'|" '(646 |
|00002710| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00002720| 74 65 73 74 20 2d 66 20 | 27 6f 6c 27 0a 74 68 65 |test -f |'ol'.the|
|00002730| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|00002740| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00002750| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00002760| 22 27 6f 6c 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |"'ol'".e|lse.cat |
|00002770| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00002780| 6f 6c 27 0a 20 20 20 20 | 20 20 20 20 6f 6c 20 2d |ol'. | ol -|
|00002790| 2d 20 4f 70 74 69 6f 6e | 20 4c 69 6e 65 0a 0a 20 |- Option| Line.. |
|000027a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 65 | | de|
|000027b0| 66 61 75 6c 74 20 72 61 | 6e 67 65 20 20 20 20 20 |fault ra|nge |
|000027c0| 20 20 20 20 20 20 20 20 | 73 79 6e 74 61 78 0a 20 | |syntax. |
|000027d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027e0| 31 2c 24 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1,$ | |
|000027f0| 20 20 20 20 20 20 20 20 | 20 6f 6c 5b 24 20 7c 20 | | ol[$ | |
|00002800| 2e 20 7c 20 23 20 7c 20 | 42 4c 41 4e 4b 5d 0a 0a |. | # | |BLANK]..|
|00002810| 20 20 20 20 20 20 20 20 | 54 68 65 20 20 22 6c 22 | |The "l"|
|00002820| 20 20 6f 70 74 69 6f 6e | 20 20 69 73 20 74 68 65 | option| is the|
|00002830| 20 4c 69 6e 65 20 6e 75 | 6d 62 65 72 20 6d 6f 6e | Line nu|mber mon|
|00002840| 69 74 6f 72 69 6e 67 20 | 6f 70 74 69 6f 6e 2e 20 |itoring |option. |
|00002850| 54 79 70 69 6e 67 0a 20 | 20 20 20 20 20 20 20 22 |Typing. | "|
|00002860| 6c 22 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 22 |l" follo|wed by "|
|00002870| 24 22 20 63 6f 6e 73 74 | 61 6e 74 6c 79 20 64 69 |$" const|antly di|
|00002880| 73 70 6c 61 79 73 20 74 | 68 65 20 6c 61 73 74 20 |splays t|he last |
|00002890| 20 6c 69 6e 65 20 20 6e | 75 6d 62 65 72 0a 20 20 | line n|umber. |
|000028a0| 20 20 20 20 20 20 69 6e | 20 74 68 65 20 66 69 6c | in| the fil|
|000028b0| 65 20 28 63 75 72 72 65 | 6e 74 20 6c 65 6e 67 74 |e (curre|nt lengt|
|000028c0| 68 20 6f 66 20 74 68 65 | 20 66 69 6c 65 29 2e 20 |h of the| file). |
|000028d0| 20 54 79 70 69 6e 67 20 | 22 6c 22 20 66 6f 6c 6c | Typing |"l" foll|
|000028e0| 6f 77 65 64 0a 20 20 20 | 20 20 20 20 20 62 79 20 |owed. | by |
|000028f0| 20 22 2e 22 20 20 20 63 | 6f 6e 73 74 61 6e 74 6c | "." c|onstantl|
|00002900| 79 20 20 64 69 73 70 6c | 61 79 73 20 20 74 68 65 |y displ|ays the|
|00002910| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 20 6e 75 | current| line nu|
|00002920| 6d 62 65 72 2e 20 20 54 | 68 69 73 0a 20 20 20 20 |mber. T|his. |
|00002930| 20 20 20 20 75 73 75 61 | 6c 6c 79 20 6d 61 6b 65 | usua|lly make|
|00002940| 20 73 65 6e 73 65 20 6f | 6e 6c 79 20 69 6e 20 63 | sense o|nly in c|
|00002950| 6f 6e 6a 75 6e 63 74 69 | 6f 6e 20 77 69 74 68 20 |onjuncti|on with |
|00002960| 74 68 65 20 20 22 6f 61 | 22 20 20 6f 70 74 69 6f |the "oa|" optio|
|00002970| 6e 2c 0a 20 20 20 20 20 | 20 20 20 74 68 61 74 20 |n,. | that |
|00002980| 75 73 65 73 20 6c 65 74 | 74 65 72 73 20 66 6f 72 |uses let|ters for|
|00002990| 20 6c 69 6e 65 20 6e 61 | 6d 65 73 2e 0a 0a 20 20 | line na|mes... |
|000029a0| 20 20 20 20 20 20 46 6f | 72 20 67 65 6e 65 72 61 | Fo|r genera|
|000029b0| 6c 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |l inform|ation ab|
|000029c0| 6f 75 74 20 74 68 65 20 | 6f 70 74 69 6f 6e 20 63 |out the |option c|
|000029d0| 6f 6d 6d 61 6e 64 2c 20 | 74 79 70 65 20 22 68 6f |ommand, |type "ho|
|000029e0| 22 2e 0a 20 20 20 20 20 | 20 20 20 53 65 65 20 61 |".. | See a|
|000029f0| 6c 73 6f 3a 20 20 22 68 | 6f 61 22 20 61 6e 64 20 |lso: "h|oa" and |
|00002a00| 22 68 65 71 75 61 6c 22 | 2e 0a 53 48 41 52 5f 45 |"hequal"|..SHAR_E|
|00002a10| 4f 46 0a 66 69 20 23 20 | 65 6e 64 20 6f 66 20 6f |OF.fi # |end of o|
|00002a20| 76 65 72 77 72 69 74 69 | 6e 67 20 63 68 65 63 6b |verwriti|ng check|
|00002a30| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 65 78 74 72 |.echo sh|ar: extr|
|00002a40| 61 63 74 69 6e 67 20 22 | 27 6f 6c 6d 27 22 20 27 |acting "|'olm'" '|
|00002a50| 28 36 36 34 20 63 68 61 | 72 61 63 74 65 72 73 29 |(664 cha|racters)|
|00002a60| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 6f 6c |'.if tes|t -f 'ol|
|00002a70| 6d 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |m'.then.|.echo sh|
|00002a80| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|00002a90| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00002aa0| 20 66 69 6c 65 20 22 27 | 6f 6c 6d 27 22 0a 65 6c | file "'|olm'".el|
|00002ab0| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|00002ac0| 45 4f 46 20 3e 20 27 6f | 6c 6d 27 0a 0a 20 20 20 |EOF > 'o|lm'.. |
|00002ad0| 20 20 20 20 20 6f 6c 6d | 20 2d 2d 20 4f 70 74 69 | olm| -- Opti|
|00002ae0| 6f 6e 20 4c 69 6e 65 20 | 4d 61 72 67 69 6e 0a 0a |on Line |Margin..|
|00002af0| 20 20 20 20 20 20 20 20 | 64 65 66 61 75 6c 74 20 | |default |
|00002b00| 72 61 6e 67 65 20 20 20 | 20 20 20 20 20 20 20 20 |range | |
|00002b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b20| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00002b30| 20 20 31 2c 24 20 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00002b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b50| 20 20 20 20 20 20 20 20 | 6f 6c 6d 5b 3c 63 6f 6c | |olm[<col|
|00002b60| 3e 5d 0a 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 |>]. | . |
|00002b70| 20 20 20 20 53 65 74 73 | 20 74 68 65 20 6c 65 66 | Sets| the lef|
|00002b80| 74 20 6d 61 72 67 69 6e | 20 74 6f 20 3c 63 6f 6c |t margin| to <col|
|00002b90| 3e 20 20 77 68 69 63 68 | 20 6d 75 73 74 20 62 65 |> which| must be|
|00002ba0| 20 61 20 70 6f 73 69 74 | 69 76 65 20 69 6e 74 65 | a posit|ive inte|
|00002bb0| 67 65 72 2e 0a 20 20 20 | 20 20 20 20 20 54 68 69 |ger.. | Thi|
|00002bc0| 73 20 73 68 69 66 74 73 | 20 74 68 65 20 65 6e 74 |s shifts| the ent|
|00002bd0| 69 72 65 20 73 63 72 65 | 65 6e 20 74 6f 20 20 74 |ire scre|en to t|
|00002be0| 68 65 20 6c 65 66 74 3b | 20 74 68 65 20 63 68 61 |he left;| the cha|
|00002bf0| 72 61 63 74 65 72 73 20 | 20 74 68 61 74 0a 20 20 |racters | that. |
|00002c00| 20 20 20 20 20 20 77 65 | 72 65 20 69 6e 20 63 6f | we|re in co|
|00002c10| 6c 75 6d 6e 73 20 31 20 | 20 74 68 72 6f 75 67 68 |lumns 1 | through|
|00002c20| 20 3c 63 6f 6c 3e 20 2d | 20 31 20 20 77 69 6c 6c | <col> -| 1 will|
|00002c30| 20 20 6e 6f 74 20 62 65 | 20 76 69 73 69 62 6c 65 | not be| visible|
|00002c40| 2e 20 20 59 6f 75 0a 20 | 20 20 20 20 20 20 20 6d |. You. | m|
|00002c50| 61 79 20 63 6f 6e 74 69 | 6e 75 65 20 65 64 69 74 |ay conti|nue edit|
|00002c60| 69 6e 67 20 69 6e 20 74 | 68 65 20 6e 6f 72 6d 61 |ing in t|he norma|
|00002c70| 6c 20 66 61 73 68 69 6f | 6e 2e 20 54 6f 20 72 65 |l fashio|n. To re|
|00002c80| 73 65 74 20 79 6f 75 72 | 20 73 63 72 65 65 6e 0a |set your| screen.|
|00002c90| 20 20 20 20 20 20 20 20 | 74 6f 20 6e 6f 72 6d 61 | |to norma|
|00002ca0| 6c 2c 20 65 6e 74 65 72 | 20 74 68 65 20 63 6f 6d |l, enter| the com|
|00002cb0| 6d 61 6e 64 20 22 6f 6c | 6d 20 31 22 2e 20 20 49 |mand "ol|m 1". I|
|00002cc0| 66 20 3c 63 6f 6c 3e 20 | 69 73 20 6f 6d 69 74 74 |f <col> |is omitt|
|00002cd0| 65 64 2c 20 20 74 68 65 | 0a 20 20 20 20 20 20 20 |ed, the|. |
|00002ce0| 20 63 75 72 72 65 6e 74 | 20 6c 65 66 74 20 6d 61 | current| left ma|
|00002cf0| 72 67 69 6e 20 63 6f 6c | 75 6d 6e 20 69 73 20 64 |rgin col|umn is d|
|00002d00| 69 73 70 6c 61 79 65 64 | 20 69 6e 20 74 68 65 20 |isplayed| in the |
|00002d10| 73 74 61 74 75 73 20 6c | 69 6e 65 2e 0a 0a 20 20 |status l|ine... |
|00002d20| 20 20 20 20 20 20 46 6f | 72 20 67 65 6e 65 72 61 | Fo|r genera|
|00002d30| 6c 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |l inform|ation ab|
|00002d40| 6f 75 74 20 74 68 65 20 | 6f 70 74 69 6f 6e 73 20 |out the |options |
|00002d50| 63 6f 6d 6d 61 6e 64 2c | 20 74 79 70 65 20 22 68 |command,| type "h|
|00002d60| 6f 22 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 20 |o"..SHAR|_EOF.fi |
|00002d70| 23 20 65 6e 64 20 6f 66 | 20 6f 76 65 72 77 72 69 |# end of| overwri|
|00002d80| 74 69 6e 67 20 63 68 65 | 63 6b 0a 65 63 68 6f 20 |ting che|ck.echo |
|00002d90| 73 68 61 72 3a 20 65 78 | 74 72 61 63 74 69 6e 67 |shar: ex|tracting|
|00002da0| 20 22 27 6f 6d 27 22 20 | 27 28 37 33 33 20 63 68 | "'om'" |'(733 ch|
|00002db0| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|00002dc0| 73 74 20 2d 66 20 27 6f | 6d 27 0a 74 68 65 6e 0a |st -f 'o|m'.then.|
|00002dd0| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c |.echo sh|ar: will|
|00002de0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00002df0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|00002e00| 6f 6d 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |om'".els|e.cat <<|
|00002e10| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 6f 6d | \SHAR_E|OF > 'om|
|00002e20| 27 0a 0a 20 20 20 20 20 | 20 20 20 6f 6d 20 2d 2d |'.. | om --|
|00002e30| 20 4f 70 74 69 6f 6e 20 | 4d 61 69 6c 0a 0a 20 20 | Option |Mail.. |
|00002e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 65 66 | | def|
|00002e50| 61 75 6c 74 20 72 61 6e | 67 65 20 20 20 20 20 20 |ault ran|ge |
|00002e60| 20 20 20 20 20 20 20 73 | 79 6e 74 61 78 0a 20 20 | s|yntax. |
|00002e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e80| 31 2c 24 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1,$ | |
|00002e90| 20 20 20 20 20 20 20 20 | 6f 6d 0a 0a 20 20 20 20 | |om.. |
|00002ea0| 20 20 20 20 22 6f 6d 22 | 20 69 73 20 61 6e 20 6f | "om"| is an o|
|00002eb0| 70 74 69 6f 6e 20 77 68 | 69 63 68 20 61 6c 6c 6f |ption wh|ich allo|
|00002ec0| 77 73 20 74 68 65 20 75 | 73 65 72 20 63 6f 6e 74 |ws the u|ser cont|
|00002ed0| 72 6f 6c 20 20 20 6f 76 | 65 72 20 20 77 68 65 74 |rol ov|er whet|
|00002ee0| 68 65 72 0a 20 20 20 20 | 20 20 20 20 6f 72 20 20 |her. | or |
|00002ef0| 6e 6f 74 20 68 65 20 77 | 69 6c 6c 20 20 62 65 20 |not he w|ill be |
|00002f00| 20 6e 6f 74 69 66 69 65 | 64 20 20 61 62 6f 75 74 | notifie|d about|
|00002f10| 20 70 65 6e 64 69 6e 67 | 20 6d 61 69 6c 2e 20 20 | pending| mail. |
|00002f20| 54 79 70 69 6e 67 20 22 | 6f 6d 22 0a 20 20 20 20 |Typing "|om". |
|00002f30| 20 20 20 20 73 69 6d 70 | 6c 79 20 74 6f 67 67 6c | simp|ly toggl|
|00002f40| 65 73 20 74 68 65 20 73 | 77 69 74 63 68 20 63 6f |es the s|witch co|
|00002f50| 6e 74 72 6f 6c 6c 69 6e | 67 20 6e 6f 74 69 66 69 |ntrollin|g notifi|
|00002f60| 63 61 74 69 6f 6e 2e 0a | 20 20 20 20 20 20 20 20 |cation..| |
|00002f70| 20 20 20 20 54 68 65 20 | 64 65 66 61 75 6c 74 20 | The |default |
|00002f80| 69 73 20 66 6f 72 20 74 | 68 65 20 65 64 69 74 6f |is for t|he edito|
|00002f90| 72 20 74 6f 20 6e 6f 74 | 69 66 79 20 74 68 65 20 |r to not|ify the |
|00002fa0| 20 75 73 65 72 20 61 62 | 6f 75 74 20 68 69 73 0a | user ab|out his.|
|00002fb0| 20 20 20 20 20 20 20 20 | 6d 61 69 6c 2e 20 20 54 | |mail. T|
|00002fc0| 68 65 20 20 6d 61 69 6c | 20 20 62 6f 78 20 20 77 |he mail| box w|
|00002fd0| 68 69 63 68 20 74 68 65 | 20 65 64 69 74 6f 72 20 |hich the| editor |
|00002fe0| 75 73 65 73 20 69 73 20 | 74 61 6b 65 6e 20 66 72 |uses is |taken fr|
|00002ff0| 6f 6d 20 20 74 68 65 0a | 20 20 20 20 20 20 20 20 |om the.| |
|00003000| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 76 61 72 69 |environm|ent vari|
|00003010| 61 62 6c 65 20 4d 41 49 | 4c 2e 20 49 66 20 74 68 |able MAI|L. If th|
|00003020| 65 20 6d 61 69 6c 20 62 | 6f 78 20 65 78 69 73 74 |e mail b|ox exist|
|00003030| 73 2c 20 62 75 74 20 69 | 73 20 65 6d 70 74 79 0a |s, but i|s empty.|
|00003040| 20 20 20 20 20 20 20 20 | 74 68 65 20 75 73 65 72 | |the user|
|00003050| 20 77 69 6c 6c 20 6e 6f | 74 20 62 65 20 6e 6f 74 | will no|t be not|
|00003060| 69 66 69 65 64 2e 0a 0a | 20 20 20 20 20 20 20 20 |ified...| |
|00003070| 54 6f 20 20 72 65 61 64 | 20 79 6f 75 72 20 6d 61 |To read| your ma|
|00003080| 69 6c 2c 20 75 73 65 20 | 61 20 73 68 65 6c 6c 20 |il, use |a shell |
|00003090| 65 73 63 61 70 65 20 6f | 6e 20 77 68 69 63 68 65 |escape o|n whiche|
|000030a0| 76 65 72 20 6f 66 20 74 | 68 65 20 66 6f 6c 2d 0a |ver of t|he fol-.|
|000030b0| 20 20 20 20 20 20 20 20 | 6c 6f 77 69 6e 67 20 70 | |lowing p|
|000030c0| 72 6f 67 72 61 6d 73 20 | 69 73 20 61 70 70 72 6f |rograms |is appro|
|000030d0| 70 72 69 61 74 65 3a 0a | 0a 20 20 20 20 20 20 20 |priate:.|. |
|000030e0| 20 20 20 20 20 20 20 20 | 20 4d 61 69 6c 20 20 20 | | Mail |
|000030f0| 20 20 6d 73 67 20 20 20 | 20 20 6d 61 69 6c 0a 53 | msg | mail.S|
|00003100| 48 41 52 5f 45 4f 46 0a | 66 69 20 23 20 65 6e 64 |HAR_EOF.|fi # end|
|00003110| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00003120| 63 68 65 63 6b 0a 65 63 | 68 6f 20 73 68 61 72 3a |check.ec|ho shar:|
|00003130| 20 65 78 74 72 61 63 74 | 69 6e 67 20 22 27 6f 73 | extract|ing "'os|
|00003140| 27 22 20 27 28 36 31 33 | 20 63 68 61 72 61 63 74 |'" '(613| charact|
|00003150| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|00003160| 20 27 6f 73 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f | 'os'.th|en..echo|
|00003170| 20 73 68 61 72 3a 20 77 | 69 6c 6c 20 6e 6f 74 20 | shar: w|ill not |
|00003180| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00003190| 69 6e 67 20 66 69 6c 65 | 20 22 27 6f 73 27 22 0a |ing file| "'os'".|
|000031a0| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|000031b0| 52 5f 45 4f 46 20 3e 20 | 27 6f 73 27 0a 0a 20 20 |R_EOF > |'os'.. |
|000031c0| 20 20 20 20 20 20 6f 73 | 20 2d 2d 2d 20 6f 70 74 | os| --- opt|
|000031d0| 69 6f 6e 20 73 6f 75 72 | 63 65 0a 0a 20 20 20 20 |ion sour|ce.. |
|000031e0| 20 20 20 20 64 65 66 61 | 75 6c 74 20 72 61 6e 67 | defa|ult rang|
|000031f0| 65 20 20 20 20 20 20 20 | 20 20 20 20 73 79 6e 74 |e | synt|
|00003200| 61 78 0a 20 20 20 20 20 | 20 20 20 20 20 20 31 2c |ax. | 1,|
|00003210| 24 20 20 20 20 20 20 20 | 73 5b 61 73 20 7c 20 63 |$ |s[as | c|
|00003220| 20 7c 20 64 20 7c 20 64 | 61 74 61 20 7c 20 66 20 | | d | d|ata | f |
|00003230| 7c 20 68 20 7c 20 6e 20 | 7c 20 6e 72 20 7c 20 6e || h | n || nr | n|
|00003240| 72 6f 66 66 20 7c 20 70 | 20 7c 20 72 20 7c 20 73 |roff | p| | r | s|
|00003250| 5d 0a 20 20 20 20 20 20 | 20 20 0a 20 20 20 20 20 |]. | . |
|00003260| 20 20 20 54 68 69 73 20 | 6f 70 74 69 6f 6e 20 73 | This |option s|
|00003270| 65 74 73 20 6f 74 68 65 | 72 20 6f 70 74 69 6f 6e |ets othe|r option|
|00003280| 73 20 66 6f 72 20 63 61 | 73 65 2c 20 74 61 62 73 |s for ca|se, tabs|
|00003290| 2c 20 65 74 63 2e 0a 20 | 20 20 20 20 20 20 20 20 |, etc.. | |
|000032a0| 20 20 20 61 73 2c 20 73 | 20 20 20 2d 2d 20 61 73 | as, s| -- as|
|000032b0| 73 65 6d 62 6c 65 72 20 | 66 69 6c 65 73 20 20 20 |sembler |files |
|000032c0| 63 20 20 20 20 20 20 20 | 20 20 20 2d 2d 20 43 20 |c | -- C |
|000032d0| 66 69 6c 65 73 0a 20 20 | 20 20 20 20 20 20 20 20 |files. | |
|000032e0| 20 20 64 2c 20 64 61 74 | 61 20 2d 2d 20 64 61 74 | d, dat|a -- dat|
|000032f0| 61 20 66 69 6c 65 73 20 | 20 20 20 20 20 20 20 66 |a files | f|
|00003300| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 20 66 6f 72 | | -- for|
|00003310| 74 72 61 6e 20 66 69 6c | 65 73 0a 20 20 20 20 20 |tran fil|es. |
|00003320| 20 20 20 20 20 20 20 68 | 20 20 20 20 20 20 20 2d | h| -|
|00003330| 2d 20 68 65 61 64 65 72 | 20 66 69 6c 65 73 20 20 |- header| files |
|00003340| 20 20 20 20 6e 2c 6e 72 | 2c 6e 72 6f 66 66 20 2d | n,nr|,nroff -|
|00003350| 2d 20 6e 72 6f 66 66 20 | 73 6f 75 72 63 65 20 66 |- nroff |source f|
|00003360| 69 6c 65 73 0a 20 20 20 | 20 20 20 20 20 20 20 20 |iles. | |
|00003370| 20 70 20 20 20 20 20 20 | 20 2d 2d 20 70 61 73 63 | p | -- pasc|
|00003380| 61 6c 20 66 69 6c 65 73 | 20 20 20 20 20 20 72 20 |al files| r |
|00003390| 20 20 20 20 20 20 20 20 | 20 2d 2d 20 72 61 74 66 | | -- ratf|
|000033a0| 6f 72 20 66 69 6c 65 73 | 0a 20 20 20 20 20 20 20 |or files|. |
|000033b0| 20 0a 20 20 20 20 20 20 | 20 20 53 65 65 20 74 68 | . | See th|
|000033c0| 65 20 6d 61 6e 75 61 6c | 20 70 61 67 65 20 66 6f |e manual| page fo|
|000033d0| 72 20 64 65 74 61 69 6c | 73 2e 0a 0a 20 20 20 20 |r detail|s... |
|000033e0| 20 20 20 20 46 6f 72 20 | 67 65 6e 65 72 61 6c 20 | For |general |
|000033f0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00003400| 74 20 74 68 65 20 6f 70 | 74 69 6f 6e 73 20 63 6f |t the op|tions co|
|00003410| 6d 6d 61 6e 64 2c 20 74 | 79 70 65 20 22 68 6f 22 |mmand, t|ype "ho"|
|00003420| 2e 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 20 23 20 |..SHAR_E|OF.fi # |
|00003430| 65 6e 64 20 6f 66 20 6f | 76 65 72 77 72 69 74 69 |end of o|verwriti|
|00003440| 6e 67 20 63 68 65 63 6b | 0a 65 63 68 6f 20 73 68 |ng check|.echo sh|
|00003450| 61 72 3a 20 65 78 74 72 | 61 63 74 69 6e 67 20 22 |ar: extr|acting "|
|00003460| 27 6f 74 27 22 20 27 28 | 37 31 30 20 63 68 61 72 |'ot'" '(|710 char|
|00003470| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|00003480| 20 2d 66 20 27 6f 74 27 | 0a 74 68 65 6e 0a 09 65 | -f 'ot'|.then..e|
|00003490| 63 68 6f 20 73 68 61 72 | 3a 20 77 69 6c 6c 20 6e |cho shar|: will n|
|000034a0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|000034b0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 22 27 6f 74 |isting f|ile "'ot|
|000034c0| 27 22 0a 65 6c 73 65 0a | 63 61 74 20 3c 3c 20 5c |'".else.|cat << \|
|000034d0| 53 48 41 52 5f 45 4f 46 | 20 3e 20 27 6f 74 27 0a |SHAR_EOF| > 'ot'.|
|000034e0| 20 20 20 20 20 20 20 20 | 6f 74 20 2d 2d 20 4f 70 | |ot -- Op|
|000034f0| 74 69 6f 6e 20 54 61 62 | 0a 0a 20 20 20 20 20 20 |tion Tab|.. |
|00003500| 20 20 72 61 6e 67 65 20 | 20 20 20 20 20 20 20 20 | range | |
|00003510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 | | s|
|00003520| 79 6e 74 61 78 0a 20 20 | 20 20 20 20 20 20 20 31 |yntax. | 1|
|00003530| 2c 24 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,$ | |
|00003540| 20 20 6f 74 5b 5b 5b 2b | 5d 69 6e 74 65 67 65 72 | ot[[[+|]integer|
|00003550| 20 5b 2b 5d 69 6e 74 65 | 67 65 72 5d 5d 0a 0a 0a | [+]inte|ger]]...|
|00003560| 20 20 20 20 20 20 20 20 | 22 6f 74 2b 33 22 20 73 | |"ot+3" s|
|00003570| 65 74 73 20 74 68 65 20 | 73 70 61 63 69 6e 67 20 |ets the |spacing |
|00003580| 62 65 74 77 65 65 6e 20 | 74 61 62 20 73 74 6f 70 |between |tab stop|
|00003590| 73 2e 20 20 54 68 65 20 | 20 64 65 66 61 75 6c 74 |s. The | default|
|000035a0| 20 20 76 61 6c 75 65 0a | 20 20 20 20 20 20 20 20 | value.| |
|000035b0| 77 68 65 6e 20 20 27 73 | 65 27 20 20 63 6f 6d 65 |when 's|e' come|
|000035c0| 73 20 20 75 70 20 20 69 | 73 20 33 2e 20 20 54 79 |s up i|s 3. Ty|
|000035d0| 70 69 6e 67 20 22 6f 74 | 22 20 62 79 20 69 74 73 |ping "ot|" by its|
|000035e0| 65 6c 66 20 63 61 75 73 | 65 73 20 74 68 65 0a 20 |elf caus|es the. |
|000035f0| 20 20 20 20 20 20 20 63 | 75 72 72 65 6e 74 20 76 | c|urrent v|
|00003600| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 70 61 72 61 |alue of |the para|
|00003610| 6d 65 74 65 72 20 74 6f | 20 62 65 20 64 69 73 70 |meter to| be disp|
|00003620| 6c 61 79 65 64 2e 20 20 | 41 73 20 61 6e 20 65 78 |layed. |As an ex|
|00003630| 61 6d 70 6c 65 0a 20 20 | 20 20 20 20 20 20 6f 66 |ample. | of|
|00003640| 20 68 6f 77 20 74 61 62 | 73 20 61 72 65 20 73 70 | how tab|s are sp|
|00003650| 61 63 65 64 20 6f 75 74 | 2c 20 69 66 20 6f 74 2b |aced out|, if ot+|
|00003660| 36 20 69 73 20 69 6e 20 | 65 66 66 65 63 74 2c 20 |6 is in |effect, |
|00003670| 74 61 62 20 73 74 6f 70 | 73 20 61 72 65 0a 20 20 |tab stop|s are. |
|00003680| 20 20 20 20 20 20 61 74 | 20 37 2c 20 31 33 2c 20 | at| 7, 13, |
|00003690| 31 39 2c 20 65 74 63 2e | 0a 20 20 20 20 20 20 20 |19, etc.|. |
|000036a0| 20 56 61 72 69 61 62 6c | 65 20 20 74 61 62 73 20 | Variabl|e tabs |
|000036b0| 63 61 6e 20 62 65 20 73 | 65 74 20 62 79 20 74 79 |can be s|et by ty|
|000036c0| 70 69 6e 67 20 22 6f 74 | 20 35 20 31 33 20 32 34 |ping "ot| 5 13 24|
|000036d0| 20 2e 2e 20 20 22 2e 20 | 20 69 66 20 79 6f 75 0a | .. ". | if you.|
|000036e0| 20 20 20 20 20 20 20 20 | 64 6f 20 6e 6f 74 20 70 | |do not p|
|000036f0| 72 65 66 65 72 20 65 71 | 75 61 6c 6c 79 20 73 70 |refer eq|ually sp|
|00003700| 61 63 65 64 20 6f 6e 65 | 73 2e 0a 0a 20 20 20 20 |aced one|s... |
|00003710| 20 20 20 20 53 65 65 20 | 61 6c 73 6f 20 22 68 6f | See |also "ho|
|00003720| 66 22 2e 0a 20 20 20 20 | 20 20 20 20 46 6f 72 20 |f".. | For |
|00003730| 67 65 6e 65 72 61 6c 20 | 69 6e 66 6f 72 6d 61 74 |general |informat|
|00003740| 69 6f 6e 20 61 62 6f 75 | 74 20 74 68 65 20 6f 70 |ion abou|t the op|
|00003750| 74 69 6f 6e 20 63 6f 6d | 6d 61 6e 64 2c 20 74 79 |tion com|mand, ty|
|00003760| 70 65 20 22 68 6f 22 2e | 0a 20 20 20 20 20 20 20 |pe "ho".|. |
|00003770| 20 46 6f 72 20 6d 6f 72 | 65 20 61 62 6f 75 74 20 | For mor|e about |
|00003780| 74 68 65 20 75 73 65 20 | 6f 66 20 74 61 62 20 73 |the use |of tab s|
|00003790| 74 6f 70 73 2c 20 74 79 | 70 65 20 22 68 6d 6f 74 |tops, ty|pe "hmot|
|000037a0| 69 6f 6e 22 2e 0a 53 48 | 41 52 5f 45 4f 46 0a 66 |ion"..SH|AR_EOF.f|
|000037b0| 69 20 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i # end |of overw|
|000037c0| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 65 63 68 |riting c|heck.ech|
|000037d0| 6f 20 73 68 61 72 3a 20 | 65 78 74 72 61 63 74 69 |o shar: |extracti|
|000037e0| 6e 67 20 22 27 6f 75 27 | 22 20 27 28 38 32 33 20 |ng "'ou'|" '(823 |
|000037f0| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00003800| 74 65 73 74 20 2d 66 20 | 27 6f 75 27 0a 74 68 65 |test -f |'ou'.the|
|00003810| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|00003820| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00003830| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00003840| 22 27 6f 75 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |"'ou'".e|lse.cat |
|00003850| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00003860| 6f 75 27 0a 20 20 20 20 | 20 20 20 20 6f 75 20 2d |ou'. | ou -|
|00003870| 2d 20 4f 70 74 69 6f 6e | 20 55 6e 70 72 69 6e 74 |- Option| Unprint|
|00003880| 61 62 6c 65 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |able.. | |
|00003890| 20 20 20 20 20 64 65 66 | 61 75 6c 74 20 72 61 6e | def|ault ran|
|000038a0| 67 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 |ge | s|
|000038b0| 79 6e 74 61 78 0a 20 20 | 20 20 20 20 20 20 20 20 |yntax. | |
|000038c0| 20 20 20 20 20 20 20 31 | 2c 24 20 20 20 20 20 20 | 1|,$ |
|000038d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o|
|000038e0| 75 5b 63 68 61 72 61 63 | 74 65 72 5d 0a 0a 20 20 |u[charac|ter].. |
|000038f0| 20 20 20 20 20 20 54 68 | 65 20 20 22 75 22 20 20 | Th|e "u" |
|00003900| 6f 70 74 69 6f 6e 20 20 | 69 73 20 20 66 6f 72 20 |option |is for |
|00003910| 20 6d 6f 6e 69 74 6f 72 | 69 6e 67 20 20 75 6e 70 | monitor|ing unp|
|00003920| 72 69 6e 74 61 62 6c 65 | 20 63 68 61 72 61 63 74 |rintable| charact|
|00003930| 65 72 73 2e 0a 20 20 20 | 20 20 20 20 20 54 79 70 |ers.. | Typ|
|00003940| 69 6e 67 20 22 6f 75 22 | 20 62 79 20 69 74 73 65 |ing "ou"| by itse|
|00003950| 6c 66 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 74 |lf will |return t|
|00003960| 68 65 20 63 75 72 72 65 | 6e 74 20 20 63 68 61 72 |he curre|nt char|
|00003970| 61 63 74 65 72 20 20 75 | 73 65 64 0a 20 20 20 20 |acter u|sed. |
|00003980| 20 20 20 20 74 6f 20 64 | 69 73 70 6c 61 79 20 75 | to d|isplay u|
|00003990| 6e 70 72 69 6e 74 61 62 | 6c 65 20 63 68 61 72 61 |nprintab|le chara|
|000039a0| 63 74 65 72 73 2e 20 20 | 49 66 20 69 74 20 69 73 |cters. |If it is|
|000039b0| 20 27 20 27 20 28 62 6c | 61 6e 6b 29 2c 20 74 68 | ' ' (bl|ank), th|
|000039c0| 65 6e 0a 20 20 20 20 20 | 20 20 20 75 6e 70 72 69 |en. | unpri|
|000039d0| 6e 74 61 62 6c 65 20 20 | 63 68 61 72 61 63 74 65 |ntable |characte|
|000039e0| 72 73 20 20 61 72 65 20 | 20 6e 6f 74 20 20 63 68 |rs are | not ch|
|000039f0| 65 63 6b 65 64 20 61 6e | 64 20 6d 61 79 20 6d 65 |ecked an|d may me|
|00003a00| 73 73 20 75 70 20 74 68 | 65 0a 20 20 20 20 20 20 |ss up th|e. |
|00003a10| 20 20 64 69 73 70 6c 61 | 79 2e 20 20 54 79 70 69 | displa|y. Typi|
|00003a20| 6e 67 20 22 6f 75 78 22 | 20 77 68 65 72 65 20 22 |ng "oux"| where "|
|00003a30| 78 22 20 69 73 20 61 20 | 70 72 69 6e 74 61 62 6c |x" is a |printabl|
|00003a40| 65 20 63 68 61 72 61 63 | 74 65 72 20 77 69 6c 6c |e charac|ter will|
|00003a50| 0a 20 20 20 20 20 20 20 | 20 74 75 72 6e 20 6f 6e |. | turn on|
|00003a60| 20 20 63 68 61 72 61 63 | 74 65 72 20 20 63 68 65 | charac|ter che|
|00003a70| 63 6b 69 6e 67 20 20 61 | 6e 64 20 20 64 69 73 70 |cking a|nd disp|
|00003a80| 6c 61 79 20 20 22 78 22 | 20 20 65 76 65 72 79 74 |lay "x"| everyt|
|00003a90| 69 6d 65 20 20 61 6e 0a | 20 20 20 20 20 20 20 20 |ime an.| |
|00003aa0| 75 6e 70 72 69 6e 74 61 | 62 6c 65 20 20 63 68 61 |unprinta|ble cha|
|00003ab0| 72 61 63 74 65 72 20 69 | 73 20 65 6e 63 6f 75 6e |racter i|s encoun|
|00003ac0| 74 65 72 65 64 2e 20 20 | 55 6e 70 72 69 6e 74 61 |tered. |Unprinta|
|00003ad0| 62 6c 65 20 63 68 61 72 | 61 63 74 65 72 73 0a 20 |ble char|acters. |
|00003ae0| 20 20 20 20 20 20 20 61 | 72 65 20 6e 6f 74 20 64 | a|re not d|
|00003af0| 69 73 74 75 72 62 65 64 | 20 69 6e 20 74 68 65 20 |isturbed| in the |
|00003b00| 66 69 6c 65 2c 20 62 75 | 74 20 63 61 6e 20 62 65 |file, bu|t can be|
|00003b10| 20 22 65 64 69 74 65 64 | 22 20 6f 75 74 2e 0a 0a | "edited|" out...|
|00003b20| 20 20 20 20 20 20 20 20 | 53 65 65 20 61 6c 73 6f | |See also|
|00003b30| 20 68 63 63 6d 69 73 63 | 20 66 6f 72 20 72 65 66 | hccmisc| for ref|
|00003b40| 72 65 73 68 69 6e 67 20 | 74 68 65 20 64 69 73 70 |reshing |the disp|
|00003b50| 6c 61 79 2e 0a 0a 20 20 | 20 20 20 20 20 20 46 6f |lay... | Fo|
|00003b60| 72 20 67 65 6e 65 72 61 | 6c 20 69 6e 66 6f 72 6d |r genera|l inform|
|00003b70| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 74 68 65 20 |ation ab|out the |
|00003b80| 6f 70 74 69 6f 6e 20 63 | 6f 6d 6d 61 6e 64 2c 20 |option c|ommand, |
|00003b90| 74 79 70 65 20 22 68 6f | 22 2e 0a 53 48 41 52 5f |type "ho|"..SHAR_|
|00003ba0| 45 4f 46 0a 66 69 20 23 | 20 65 6e 64 20 6f 66 20 |EOF.fi #| end of |
|00003bb0| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|00003bc0| 6b 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 65 78 74 |k.echo s|har: ext|
|00003bd0| 72 61 63 74 69 6e 67 20 | 22 27 6f 76 27 22 20 27 |racting |"'ov'" '|
|00003be0| 28 35 37 35 20 63 68 61 | 72 61 63 74 65 72 73 29 |(575 cha|racters)|
|00003bf0| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 6f 76 |'.if tes|t -f 'ov|
|00003c00| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00003c10| 72 3a 20 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: will |not over|
|00003c20| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|00003c30| 66 69 6c 65 20 22 27 6f | 76 27 22 0a 65 6c 73 65 |file "'o|v'".else|
|00003c40| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00003c50| 46 20 3e 20 27 6f 76 27 | 0a 20 20 20 20 20 20 20 |F > 'ov'|. |
|00003c60| 20 6f 76 20 2d 2d 20 6f | 56 65 72 6c 61 79 20 4f | ov -- o|Verlay O|
|00003c70| 70 74 69 6f 6e 0a 0a 20 | 20 20 20 20 20 20 20 20 |ption.. | |
|00003c80| 20 20 20 20 20 20 64 65 | 66 61 75 6c 74 20 72 61 | de|fault ra|
|00003c90| 6e 67 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |nge | |
|00003ca0| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00003cb0| 20 20 20 20 20 20 20 20 | 20 31 2c 24 20 20 20 20 | | 1,$ |
|00003cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003cd0| 6f 76 5b 69 6e 74 65 67 | 65 72 5d 0a 0a 20 20 20 |ov[integ|er].. |
|00003ce0| 20 20 20 20 20 54 68 65 | 20 22 76 22 20 6f 70 74 | The| "v" opt|
|00003cf0| 69 6f 6e 20 69 73 20 74 | 68 65 20 20 6f 76 65 72 |ion is t|he over|
|00003d00| 6c 61 79 20 20 63 6f 6c | 75 6d 6e 20 20 6e 75 6d |lay col|umn num|
|00003d10| 62 65 72 2e 20 20 20 54 | 79 70 69 6e 67 20 20 22 |ber. T|yping "|
|00003d20| 6f 76 22 0a 20 20 20 20 | 20 20 20 20 66 6f 6c 6c |ov". | foll|
|00003d30| 6f 77 65 64 20 20 62 79 | 20 20 61 20 20 73 70 61 |owed by| a spa|
|00003d40| 63 65 20 20 61 6e 64 20 | 20 61 20 6e 75 6d 62 65 |ce and | a numbe|
|00003d50| 72 20 73 65 74 73 20 74 | 68 65 20 63 6f 6c 75 6d |r sets t|he colum|
|00003d60| 6e 20 74 68 61 74 20 74 | 68 65 0a 20 20 20 20 20 |n that t|he. |
|00003d70| 20 20 20 63 75 72 73 6f | 72 20 77 69 6c 6c 20 62 | curso|r will b|
|00003d80| 65 20 70 6f 73 69 74 69 | 6f 6e 65 64 20 61 74 20 |e positi|oned at |
|00003d90| 77 68 65 6e 20 20 69 73 | 73 75 69 6e 67 20 20 74 |when is|suing t|
|00003da0| 68 65 20 20 22 76 22 20 | 20 63 6f 6d 6d 61 6e 64 |he "v" | command|
|00003db0| 2e 0a 20 20 20 20 20 20 | 20 20 54 79 70 69 6e 67 |.. | Typing|
|00003dc0| 20 22 6f 76 20 24 22 20 | 77 69 6c 6c 20 70 6f 73 | "ov $" |will pos|
|00003dd0| 69 74 69 6f 6e 20 74 68 | 65 20 63 75 72 73 6f 72 |ition th|e cursor|
|00003de0| 20 61 74 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | at the |end of t|
|00003df0| 68 65 20 6c 69 6e 65 2e | 0a 20 20 20 20 20 20 20 |he line.|. |
|00003e00| 20 54 79 70 69 6e 67 20 | 22 6f 76 22 20 62 79 20 | Typing |"ov" by |
|00003e10| 69 74 73 65 6c 66 20 77 | 69 6c 6c 20 64 69 73 70 |itself w|ill disp|
|00003e20| 6c 61 79 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |lay the |current |
|00003e30| 76 61 6c 75 65 2e 0a 0a | 20 20 20 20 20 20 20 20 |value...| |
|00003e40| 53 65 65 20 61 6c 73 6f | 20 68 6d 6f 74 69 6f 6e |See also| hmotion|
|00003e50| 2e 0a 0a 20 20 20 20 20 | 20 20 20 46 6f 72 20 67 |... | For g|
|00003e60| 65 6e 65 72 61 6c 20 69 | 6e 66 6f 72 6d 61 74 69 |eneral i|nformati|
|00003e70| 6f 6e 20 61 62 6f 75 74 | 20 74 68 65 20 6f 70 74 |on about| the opt|
|00003e80| 69 6f 6e 20 63 6f 6d 6d | 61 6e 64 2c 20 74 79 70 |ion comm|and, typ|
|00003e90| 65 20 22 68 6f 22 2e 0a | 53 48 41 52 5f 45 4f 46 |e "ho"..|SHAR_EOF|
|00003ea0| 0a 66 69 20 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |.fi # en|d of ove|
|00003eb0| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 65 |rwriting| check.e|
|00003ec0| 63 68 6f 20 73 68 61 72 | 3a 20 65 78 74 72 61 63 |cho shar|: extrac|
|00003ed0| 74 69 6e 67 20 22 27 6f | 77 27 22 20 27 28 36 35 |ting "'o|w'" '(65|
|00003ee0| 38 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |8 charac|ters)'.i|
|00003ef0| 66 20 74 65 73 74 20 2d | 66 20 27 6f 77 27 0a 74 |f test -|f 'ow'.t|
|00003f00| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00003f10| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00003f20| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00003f30| 65 20 22 27 6f 77 27 22 | 0a 65 6c 73 65 0a 63 61 |e "'ow'"|.else.ca|
|00003f40| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00003f50| 20 27 6f 77 27 0a 20 20 | 20 20 20 20 20 20 6f 77 | 'ow'. | ow|
|00003f60| 20 2d 2d 20 4f 70 74 69 | 6f 6e 20 57 61 72 6e 69 | -- Opti|on Warni|
|00003f70| 6e 67 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ng.. | |
|00003f80| 20 20 20 64 65 66 61 75 | 6c 74 20 72 61 6e 67 65 | defau|lt range|
|00003f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 79 | | sy|
|00003fa0| 6e 74 61 78 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ntax. | |
|00003fb0| 20 20 20 20 20 20 31 2c | 24 20 20 20 20 20 20 20 | 1,|$ |
|00003fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o|
|00003fd0| 77 5b 69 6e 74 65 67 65 | 72 5d 0a 0a 20 20 20 20 |w[intege|r].. |
|00003fe0| 20 20 20 20 54 68 65 20 | 22 77 22 20 6f 70 74 69 | The |"w" opti|
|00003ff0| 6f 6e 20 69 73 20 74 68 | 65 20 20 57 61 72 6e 69 |on is th|e Warni|
|00004000| 6e 67 20 20 63 6f 6c 75 | 6d 6e 20 20 6e 75 6d 62 |ng colu|mn numb|
|00004010| 65 72 2e 20 20 20 54 79 | 70 69 6e 67 20 20 22 6f |er. Ty|ping "o|
|00004020| 77 22 0a 20 20 20 20 20 | 20 20 20 66 6f 6c 6c 6f |w". | follo|
|00004030| 77 65 64 20 62 79 20 61 | 20 6e 75 6d 62 65 72 20 |wed by a| number |
|00004040| 73 65 74 73 20 74 68 65 | 20 77 61 72 6e 69 6e 67 |sets the| warning|
|00004050| 20 63 6f 6c 75 6d 6e 20 | 74 68 72 65 73 68 6f 6c | column |threshol|
|00004060| 64 3b 20 73 69 6d 70 6c | 79 0a 20 20 20 20 20 20 |d; simpl|y. |
|00004070| 20 20 74 79 70 69 6e 67 | 20 20 22 6f 77 22 20 20 | typing| "ow" |
|00004080| 63 61 75 73 65 73 20 20 | 69 74 73 20 63 75 72 72 |causes |its curr|
|00004090| 65 6e 74 20 76 61 6c 75 | 65 20 74 6f 20 62 65 20 |ent valu|e to be |
|000040a0| 64 69 73 70 6c 61 79 65 | 64 2e 20 20 57 68 65 6e |displaye|d. When|
|000040b0| 0a 20 20 20 20 20 20 20 | 20 79 6f 75 20 61 72 65 |. | you are|
|000040c0| 20 61 62 6f 75 74 20 74 | 6f 20 74 79 70 65 20 69 | about t|o type i|
|000040d0| 6e 74 6f 20 61 20 63 6f | 6c 75 6d 6e 20 6f 66 20 |nto a co|lumn of |
|000040e0| 65 71 75 61 6c 20 6f 72 | 20 67 72 65 61 74 65 72 |equal or| greater|
|000040f0| 20 6e 75 6d 62 65 72 0a | 20 20 20 20 20 20 20 20 | number.| |
|00004100| 74 68 61 6e 20 74 68 65 | 20 77 61 72 6e 69 6e 67 |than the| warning|
|00004110| 20 63 6f 6c 75 6d 6e 2c | 20 74 68 65 20 6e 75 6d | column,| the num|
|00004120| 62 65 72 20 20 6f 66 20 | 20 74 68 65 20 20 63 6f |ber of | the co|
|00004130| 6c 75 6d 6e 20 20 79 6f | 75 20 20 61 72 65 0a 20 |lumn yo|u are. |
|00004140| 20 20 20 20 20 20 20 61 | 62 6f 75 74 20 20 74 6f | a|bout to|
|00004150| 20 74 79 70 65 20 69 6e | 74 6f 20 69 73 20 64 69 | type in|to is di|
|00004160| 73 70 6c 61 79 65 64 20 | 6f 6e 20 74 68 65 20 62 |splayed |on the b|
|00004170| 6f 74 74 6f 6d 20 6c 69 | 6e 65 20 61 6c 6f 6e 67 |ottom li|ne along|
|00004180| 20 77 69 74 68 0a 20 20 | 20 20 20 20 20 20 74 68 | with. | th|
|00004190| 65 20 73 74 72 69 6e 67 | 20 22 63 6f 6c 20 20 22 |e string| "col "|
|000041a0| 2e 0a 0a 20 20 20 20 20 | 20 20 20 46 6f 72 20 67 |... | For g|
|000041b0| 65 6e 65 72 61 6c 20 69 | 6e 66 6f 72 6d 61 74 69 |eneral i|nformati|
|000041c0| 6f 6e 20 61 62 6f 75 74 | 20 74 68 65 20 6f 70 74 |on about| the opt|
|000041d0| 69 6f 6e 20 63 6f 6d 6d | 61 6e 64 2c 20 74 79 70 |ion comm|and, typ|
|000041e0| 65 20 22 68 6f 22 2e 0a | 53 48 41 52 5f 45 4f 46 |e "ho"..|SHAR_EOF|
|000041f0| 0a 66 69 20 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |.fi # en|d of ove|
|00004200| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 65 |rwriting| check.e|
|00004210| 63 68 6f 20 73 68 61 72 | 3a 20 65 78 74 72 61 63 |cho shar|: extrac|
|00004220| 74 69 6e 67 20 22 27 6f | 78 27 22 20 27 28 36 32 |ting "'o|x'" '(62|
|00004230| 34 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |4 charac|ters)'.i|
|00004240| 66 20 74 65 73 74 20 2d | 66 20 27 6f 78 27 0a 74 |f test -|f 'ox'.t|
|00004250| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00004260| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00004270| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00004280| 65 20 22 27 6f 78 27 22 | 0a 65 6c 73 65 0a 63 61 |e "'ox'"|.else.ca|
|00004290| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|000042a0| 20 27 6f 78 27 0a 20 20 | 20 20 20 20 20 20 20 20 | 'ox'. | |
|000042b0| 20 20 6f 78 20 2d 2d 20 | 74 6f 67 67 6c 65 20 74 | ox -- |toggle t|
|000042c0| 61 62 20 63 6f 6d 70 72 | 65 73 73 69 6f 6e 2f 65 |ab compr|ession/e|
|000042d0| 78 70 61 6e 73 69 6f 6e | 0a 0a 20 20 20 20 20 20 |xpansion|.. |
|000042e0| 20 20 20 20 20 20 64 65 | 66 61 75 6c 74 20 72 61 | de|fault ra|
|000042f0| 6e 67 65 20 20 20 20 20 | 20 20 20 20 20 20 73 79 |nge | sy|
|00004300| 6e 74 61 78 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ntax. | |
|00004310| 20 20 20 20 20 2e 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00004320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6f 78 0a | | ox.|
|00004330| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 22 6f |.. | "o|
|00004340| 78 22 20 74 75 72 6e 73 | 20 63 6f 6d 70 72 65 73 |x" turns| compres|
|00004350| 73 69 6f 6e 20 6f 66 20 | 74 61 62 73 20 6f 6e 20 |sion of |tabs on |
|00004360| 6f 72 20 6f 66 66 2e 20 | 49 66 20 61 20 66 69 6c |or off. |If a fil|
|00004370| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 68 61 |e. | ha|
|00004380| 73 20 74 61 62 73 20 69 | 6e 20 69 74 2c 20 74 68 |s tabs i|n it, th|
|00004390| 65 79 20 77 69 6c 6c 20 | 62 65 20 20 65 78 70 61 |ey will |be expa|
|000043a0| 6e 64 65 64 20 20 69 66 | 20 63 6f 6d 70 72 65 73 |nded if| compres|
|000043b0| 2d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 73 69 |-. | si|
|000043c0| 6f 6e 20 69 73 20 6f 6e | 2e 20 4f 74 68 65 72 77 |on is on|. Otherw|
|000043d0| 69 73 65 20 74 68 65 79 | 20 77 69 6c 6c 20 62 65 |ise they| will be|
|000043e0| 20 6c 65 66 74 20 61 6c | 6f 6e 65 2c 20 20 61 6e | left al|one, an|
|000043f0| 64 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 77 69 |d. | wi|
|00004400| 6c 6c 20 73 68 6f 77 20 | 75 70 20 61 73 20 74 68 |ll show |up as th|
|00004410| 65 20 64 65 66 61 75 6c | 74 20 75 6e 70 72 69 6e |e defaul|t unprin|
|00004420| 74 61 62 6c 65 20 63 68 | 61 72 61 63 74 65 72 2e |table ch|aracter.|
|00004430| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 54 68 |.. | Th|
|00004440| 65 20 6d 65 73 73 61 67 | 65 20 22 58 54 41 42 53 |e messag|e "XTABS|
|00004450| 22 20 77 69 6c 6c 20 62 | 65 20 64 69 73 70 6c 61 |" will b|e displa|
|00004460| 79 65 64 20 69 6e 20 74 | 68 65 20 73 74 61 74 75 |yed in t|he statu|
|00004470| 73 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 6c 69 |s. | li|
|00004480| 6e 65 20 69 66 20 74 61 | 62 20 63 6f 6d 70 72 65 |ne if ta|b compre|
|00004490| 73 73 69 6f 6e 20 69 73 | 20 6f 6e 2e 0a 0a 20 20 |ssion is| on... |
|000044a0| 20 20 20 20 20 20 20 20 | 20 20 54 79 70 65 20 22 | | Type "|
|000044b0| 68 64 69 72 22 20 74 6f | 20 67 6f 20 62 61 63 6b |hdir" to| go back|
|000044c0| 20 74 6f 20 74 68 65 20 | 67 65 6e 65 72 61 6c 20 | to the |general |
|000044d0| 68 65 6c 70 20 64 69 72 | 65 63 74 6f 72 79 2e 0a |help dir|ectory..|
|000044e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 79 70 65 | | Type|
|000044f0| 20 22 68 6f 22 20 66 6f | 72 20 68 65 6c 70 20 6f | "ho" fo|r help o|
|00004500| 6e 20 74 68 65 20 6f 70 | 74 69 6f 6e 20 63 6f 6d |n the op|tion com|
|00004510| 6d 61 6e 64 2e 0a 53 48 | 41 52 5f 45 4f 46 0a 66 |mand..SH|AR_EOF.f|
|00004520| 69 20 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i # end |of overw|
|00004530| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 65 63 68 |riting c|heck.ech|
|00004540| 6f 20 73 68 61 72 3a 20 | 65 78 74 72 61 63 74 69 |o shar: |extracti|
|00004550| 6e 67 20 22 27 6f 79 27 | 22 20 27 28 37 34 39 20 |ng "'oy'|" '(749 |
|00004560| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00004570| 74 65 73 74 20 2d 66 20 | 27 6f 79 27 0a 74 68 65 |test -f |'oy'.the|
|00004580| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|00004590| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|000045a0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|000045b0| 22 27 6f 79 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |"'oy'".e|lse.cat |
|000045c0| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|000045d0| 6f 79 27 0a 0a 20 20 20 | 20 20 20 20 20 6f 79 20 |oy'.. | oy |
|000045e0| 2d 2d 2d 20 6f 70 74 69 | 6f 6e 20 65 6e 63 72 59 |--- opti|on encrY|
|000045f0| 70 74 69 6f 6e 20 0a 0a | 20 20 20 20 20 20 20 20 |ption ..| |
|00004600| 64 65 66 61 75 6c 74 20 | 72 61 6e 67 65 20 20 20 |default |range |
|00004610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004630| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00004640| 20 20 31 2c 24 20 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00004650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004670| 20 6f 79 5b 6b 65 79 5d | 0a 20 20 20 20 20 20 20 | oy[key]|. |
|00004680| 20 0a 20 20 20 20 20 20 | 20 20 54 68 69 73 20 6f | . | This o|
|00004690| 70 74 69 6f 6e 20 61 6c | 6c 6f 77 73 20 79 6f 75 |ption al|lows you|
|000046a0| 20 74 6f 20 65 64 69 74 | 20 65 6e 63 72 79 70 74 | to edit| encrypt|
|000046b0| 65 64 20 66 69 6c 65 73 | 2e 20 6f 79 20 66 6f 6c |ed files|. oy fol|
|000046c0| 6c 6f 77 65 64 20 62 79 | 20 61 20 6b 65 79 0a 20 |lowed by| a key. |
|000046d0| 20 20 20 20 20 20 20 77 | 69 6c 6c 20 63 61 75 73 | w|ill caus|
|000046e0| 65 20 65 2c 20 72 2c 20 | 61 6e 64 20 77 2c 20 63 |e e, r, |and w, c|
|000046f0| 6f 6d 6d 61 6e 64 73 20 | 74 6f 20 65 6e 63 72 79 |ommands |to encry|
|00004700| 70 74 20 20 61 6e 64 20 | 64 65 63 72 79 70 74 20 |pt and |decrypt |
|00004710| 66 69 6c 65 73 20 75 73 | 69 6e 67 0a 20 20 20 20 |files us|ing. |
|00004720| 20 20 20 20 63 72 79 70 | 74 28 31 29 2e 20 20 6f | cryp|t(1). o|
|00004730| 79 20 77 69 6c 6c 20 74 | 6f 67 67 6c 65 20 74 68 |y will t|oggle th|
|00004740| 65 20 63 75 72 72 65 6e | 74 20 20 65 6e 63 72 79 |e curren|t encry|
|00004750| 70 74 69 6f 6e 20 73 65 | 74 74 69 6e 67 2e 20 20 |ption se|tting. |
|00004760| 49 66 20 74 68 65 72 65 | 0a 20 20 20 20 20 20 20 |If there|. |
|00004770| 20 69 73 20 20 6e 6f 20 | 63 75 72 72 65 6e 74 20 | is no |current |
|00004780| 6b 65 79 2c 20 73 65 20 | 77 69 6c 6c 20 61 73 6b |key, se |will ask|
|00004790| 20 79 6f 75 20 66 6f 72 | 20 6f 6e 65 2e 20 49 66 | you for| one. If|
|000047a0| 20 65 6e 63 72 79 70 74 | 69 6f 6e 20 69 73 20 74 | encrypt|ion is t|
|000047b0| 75 72 6e 65 64 0a 20 20 | 20 20 20 20 20 20 6f 6e |urned. | on|
|000047c0| 2c 20 69 74 20 77 69 6c | 6c 20 62 65 20 20 74 75 |, it wil|l be tu|
|000047d0| 72 6e 65 64 20 6f 66 66 | 2e 20 20 20 45 6e 63 72 |rned off|. Encr|
|000047e0| 79 70 74 69 6f 6e 20 69 | 6e 20 69 6e 64 69 63 61 |yption i|n indica|
|000047f0| 74 65 64 20 62 79 20 74 | 68 65 20 6d 65 73 73 61 |ted by t|he messa|
|00004800| 67 65 0a 20 20 20 20 20 | 20 20 20 22 45 4e 43 52 |ge. | "ENCR|
|00004810| 59 50 54 22 20 69 6e 20 | 74 68 65 20 73 74 61 74 |YPT" in |the stat|
|00004820| 75 73 20 6c 69 6e 65 2e | 20 54 68 65 20 6b 65 79 |us line.| The key|
|00004830| 20 69 73 20 6e 65 76 65 | 72 20 73 68 6f 77 6e 20 | is neve|r shown |
|00004840| 6f 6e 20 79 6f 75 72 20 | 73 63 72 65 65 6e 2e 0a |on your |screen..|
|00004850| 0a 20 20 20 20 20 20 20 | 20 54 79 70 65 20 22 68 |. | Type "h|
|00004860| 6f 22 20 66 6f 72 20 68 | 65 6c 70 20 6f 6e 20 74 |o" for h|elp on t|
|00004870| 68 65 20 6f 70 74 69 6f | 6e 20 63 6f 6d 6d 61 6e |he optio|n comman|
|00004880| 64 2e 0a 20 20 20 20 20 | 20 20 20 54 79 70 65 20 |d.. | Type |
|00004890| 22 68 64 69 72 22 20 74 | 6f 20 67 6f 20 62 61 63 |"hdir" t|o go bac|
|000048a0| 6b 20 74 6f 20 74 68 65 | 20 67 65 6e 65 72 61 6c |k to the| general|
|000048b0| 20 68 65 6c 70 20 64 69 | 72 65 63 74 6f 72 79 2e | help di|rectory.|
|000048c0| 0a 53 48 41 52 5f 45 4f | 46 0a 66 69 20 23 20 65 |.SHAR_EO|F.fi # e|
|000048d0| 6e 64 20 6f 66 20 6f 76 | 65 72 77 72 69 74 69 6e |nd of ov|erwritin|
|000048e0| 67 20 63 68 65 63 6b 0a | 65 63 68 6f 20 73 68 61 |g check.|echo sha|
|000048f0| 72 3a 20 65 78 74 72 61 | 63 74 69 6e 67 20 22 27 |r: extra|cting "'|
|00004900| 6f 7a 27 22 20 27 28 34 | 34 37 20 63 68 61 72 61 |oz'" '(4|47 chara|
|00004910| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00004920| 2d 66 20 27 6f 7a 27 0a | 74 68 65 6e 0a 09 65 63 |-f 'oz'.|then..ec|
|00004930| 68 6f 20 73 68 61 72 3a | 20 77 69 6c 6c 20 6e 6f |ho shar:| will no|
|00004940| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00004950| 73 74 69 6e 67 20 66 69 | 6c 65 20 22 27 6f 7a 27 |sting fi|le "'oz'|
|00004960| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|00004970| 48 41 52 5f 45 4f 46 20 | 3e 20 27 6f 7a 27 0a 0a |HAR_EOF |> 'oz'..|
|00004980| 20 20 20 20 20 20 20 20 | 6f 7a 20 2d 2d 20 6f 70 | |oz -- op|
|00004990| 74 69 6f 6e 20 73 6c 65 | 65 70 20 28 7a 7a 7a 7a |tion sle|ep (zzzz|
|000049a0| 27 73 29 0a 0a 20 20 20 | 20 20 20 20 20 64 65 66 |'s).. | def|
|000049b0| 61 75 6c 74 20 72 61 6e | 67 65 20 20 20 20 20 20 |ault ran|ge |
|000049c0| 20 20 20 20 20 73 79 6e | 74 61 78 0a 20 20 20 20 | syn|tax. |
|000049d0| 20 20 20 20 20 20 31 2c | 24 20 20 20 20 20 20 20 | 1,|$ |
|000049e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 7a | | oz|
|000049f0| 0a 0a 20 20 20 20 20 20 | 20 20 49 66 20 79 6f 75 |.. | If you|
|00004a00| 20 61 72 65 20 72 75 6e | 6e 69 6e 67 20 22 73 68 | are run|ning "sh|
|00004a10| 22 2c 20 74 68 69 73 20 | 6f 70 74 69 6f 6e 20 68 |", this |option h|
|00004a20| 61 73 20 61 62 73 6f 6c | 75 74 65 6c 79 20 6e 6f |as absol|utely no|
|00004a30| 20 65 66 66 65 63 74 20 | 61 74 0a 20 20 20 20 20 | effect |at. |
|00004a40| 20 20 20 61 6c 6c 2e 20 | 20 49 66 20 79 6f 75 20 | all. | If you |
|00004a50| 61 72 65 20 72 75 6e 6e | 69 6e 67 20 74 68 65 20 |are runn|ing the |
|00004a60| 22 63 73 68 22 2c 20 74 | 68 69 73 20 6f 70 74 69 |"csh", t|his opti|
|00004a70| 6f 6e 20 77 69 6c 6c 20 | 73 75 73 70 65 6e 64 20 |on will |suspend |
|00004a80| 20 73 65 0a 20 20 20 20 | 20 20 20 20 69 6e 20 74 | se. | in t|
|00004a90| 68 65 20 62 61 63 6b 67 | 72 6f 75 6e 64 2e 20 20 |he backg|round. |
|00004aa0| 53 65 20 77 69 6c 6c 20 | 69 73 73 75 65 20 20 61 |Se will |issue a|
|00004ab0| 20 77 61 72 6e 69 6e 67 | 20 20 69 66 20 20 74 68 | warning| if th|
|00004ac0| 65 20 62 75 66 66 65 72 | 20 68 61 73 0a 20 20 20 |e buffer| has. |
|00004ad0| 20 20 20 20 20 6e 6f 74 | 20 62 65 65 6e 20 73 61 | not| been sa|
|00004ae0| 76 65 64 2c 20 77 68 65 | 6e 20 74 68 69 73 20 69 |ved, whe|n this i|
|00004af0| 73 20 64 6f 6e 65 2e 0a | 0a 20 20 20 20 20 20 20 |s done..|. |
|00004b00| 20 46 6f 72 20 67 65 6e | 65 72 61 6c 20 69 6e 66 | For gen|eral inf|
|00004b10| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 74 |ormation| about t|
|00004b20| 68 65 20 6f 70 74 69 6f | 6e 20 63 6f 6d 6d 61 6e |he optio|n comman|
|00004b30| 64 2c 20 74 79 70 65 20 | 22 68 6f 22 2e 0a 53 48 |d, type |"ho"..SH|
|00004b40| 41 52 5f 45 4f 46 0a 66 | 69 20 23 20 65 6e 64 20 |AR_EOF.f|i # end |
|00004b50| 6f 66 20 6f 76 65 72 77 | 72 69 74 69 6e 67 20 63 |of overw|riting c|
|00004b60| 68 65 63 6b 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |heck.ech|o shar: |
|00004b70| 65 78 74 72 61 63 74 69 | 6e 67 20 22 27 70 27 22 |extracti|ng "'p'"|
|00004b80| 20 27 28 36 34 32 20 63 | 68 61 72 61 63 74 65 72 | '(642 c|haracter|
|00004b90| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00004ba0| 70 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |p'.then.|.echo sh|
|00004bb0| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|00004bc0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00004bd0| 20 66 69 6c 65 20 22 27 | 70 27 22 0a 65 6c 73 65 | file "'|p'".else|
|00004be0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00004bf0| 46 20 3e 20 27 70 27 0a | 20 20 20 20 20 20 20 20 |F > 'p'.| |
|00004c00| 20 20 70 20 20 20 20 2d | 2d 20 50 72 69 6e 74 2f | p -|- Print/|
|00004c10| 50 72 65 76 69 6f 75 73 | 20 73 63 72 65 65 6e 20 |Previous| screen |
|00004c20| 63 6f 6d 6d 61 6e 64 0a | 0a 20 20 20 20 20 20 20 |command.|. |
|00004c30| 20 20 20 20 20 20 20 20 | 64 65 66 61 75 6c 74 20 | |default |
|00004c40| 72 61 6e 67 65 20 20 20 | 20 20 20 20 20 20 20 20 |range | |
|00004c50| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00004c60| 20 20 20 20 20 20 73 65 | 65 20 62 65 6c 6f 77 20 | se|e below |
|00004c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 5b 72 | | [r|
|00004c80| 61 6e 67 65 5d 20 70 0a | 0a 20 20 20 20 20 20 20 |ange] p.|. |
|00004c90| 20 22 70 22 20 20 70 72 | 69 6e 74 73 20 20 61 20 | "p" pr|ints a |
|00004ca0| 20 72 61 6e 67 65 20 6f | 66 20 6c 69 6e 65 73 20 | range o|f lines |
|00004cb0| 6f 72 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |or the p|revious |
|00004cc0| 73 63 72 65 65 6e 20 28 | 77 68 65 6e 20 6e 6f 0a |screen (|when no.|
|00004cd0| 20 20 20 20 20 20 20 20 | 72 61 6e 67 65 20 69 73 | |range is|
|00004ce0| 20 70 72 6f 76 69 64 65 | 64 29 2e 20 20 54 68 65 | provide|d). The|
|00004cf0| 20 6c 69 6e 65 20 70 6f | 69 6e 74 65 72 20 69 73 | line po|inter is|
|00004d00| 20 73 65 74 20 74 6f 20 | 74 68 65 20 6c 61 73 74 | set to |the last|
|00004d10| 20 20 6c 69 6e 65 0a 20 | 20 20 20 20 20 20 20 70 | line. | p|
|00004d20| 72 69 6e 74 65 64 20 20 | 28 61 20 20 6e 65 77 20 |rinted |(a new |
|00004d30| 20 73 63 72 65 65 6e 20 | 20 6d 61 79 20 20 62 65 | screen | may be|
|00004d40| 20 70 72 69 6e 74 65 64 | 29 2e 20 20 57 68 65 6e | printed|). When|
|00004d50| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 0a 20 20 | the pre|vious. |
|00004d60| 20 20 20 20 20 20 73 63 | 72 65 65 6e 20 69 73 20 | sc|reen is |
|00004d70| 70 72 69 6e 74 65 64 2c | 20 74 68 65 20 66 69 72 |printed,| the fir|
|00004d80| 73 74 20 6c 69 6e 65 20 | 6f 6e 20 74 68 65 20 20 |st line |on the |
|00004d90| 63 75 72 72 65 6e 74 20 | 20 73 63 72 65 65 6e 20 |current | screen |
|00004da0| 20 62 65 2d 0a 20 20 20 | 20 20 20 20 20 63 6f 6d | be-. | com|
|00004db0| 65 73 20 20 74 68 65 20 | 20 6c 69 6e 65 20 20 70 |es the | line p|
|00004dc0| 6f 69 6e 74 65 72 2c 20 | 75 73 75 61 6c 6c 79 20 |ointer, |usually |
|00004dd0| 74 68 65 20 6c 61 73 74 | 20 6c 69 6e 65 20 6f 6e |the last| line on|
|00004de0| 20 74 68 65 20 73 63 72 | 65 65 6e 0a 20 20 20 20 | the scr|een. |
|00004df0| 20 20 20 20 28 65 78 63 | 65 70 74 69 6f 6e 20 69 | (exc|eption i|
|00004e00| 73 20 77 68 65 6e 20 74 | 68 65 20 66 69 72 73 74 |s when t|he first|
|00004e10| 20 70 61 67 65 20 69 73 | 20 70 72 69 6e 74 65 64 | page is| printed|
|00004e20| 29 2e 0a 0a 20 20 20 20 | 20 20 20 20 54 6f 20 72 |)... | To r|
|00004e30| 65 74 75 72 6e 20 74 6f | 20 74 68 65 20 63 6f 6d |eturn to| the com|
|00004e40| 6d 61 6e 64 20 64 69 72 | 65 63 74 6f 72 79 2c 20 |mand dir|ectory, |
|00004e50| 74 79 70 65 20 22 68 63 | 6f 6d 64 69 72 2e 22 0a |type "hc|omdir.".|
|00004e60| 20 20 20 20 20 20 20 20 | 53 65 65 20 61 6c 73 6f | |See also|
|00004e70| 20 22 68 73 70 65 63 6c | 22 0a 53 48 41 52 5f 45 | "hspecl|".SHAR_E|
|00004e80| 4f 46 0a 66 69 20 23 20 | 65 6e 64 20 6f 66 20 6f |OF.fi # |end of o|
|00004e90| 76 65 72 77 72 69 74 69 | 6e 67 20 63 68 65 63 6b |verwriti|ng check|
|00004ea0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 65 78 74 72 |.echo sh|ar: extr|
|00004eb0| 61 63 74 69 6e 67 20 22 | 27 70 61 74 27 22 20 27 |acting "|'pat'" '|
|00004ec0| 28 39 33 30 20 63 68 61 | 72 61 63 74 65 72 73 29 |(930 cha|racters)|
|00004ed0| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 70 61 |'.if tes|t -f 'pa|
|00004ee0| 74 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |t'.then.|.echo sh|
|00004ef0| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|00004f00| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00004f10| 20 66 69 6c 65 20 22 27 | 70 61 74 27 22 0a 65 6c | file "'|pat'".el|
|00004f20| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|00004f30| 45 4f 46 20 3e 20 27 70 | 61 74 27 0a 20 20 20 20 |EOF > 'p|at'. |
|00004f40| 20 20 20 20 41 20 50 41 | 54 54 45 52 4e 20 69 73 | A PA|TTERN is|
|00004f50| 20 61 20 73 74 72 69 6e | 67 20 6f 66 20 63 68 61 | a strin|g of cha|
|00004f60| 72 61 63 74 65 72 73 20 | 74 68 61 74 20 73 70 65 |racters |that spe|
|00004f70| 63 69 66 69 65 73 20 20 | 61 20 20 73 65 74 20 20 |cifies |a set |
|00004f80| 6f 66 0a 20 20 20 20 20 | 20 20 20 70 6f 73 73 69 |of. | possi|
|00004f90| 62 6c 65 20 20 73 74 72 | 69 6e 67 73 20 20 6f 66 |ble str|ings of|
|00004fa0| 20 20 63 68 61 72 61 63 | 74 65 72 73 20 20 74 68 | charac|ters th|
|00004fb0| 61 74 20 20 61 72 65 20 | 73 61 69 64 20 74 6f 20 |at are |said to |
|00004fc0| 4d 41 54 43 48 20 74 68 | 65 0a 20 20 20 20 20 20 |MATCH th|e. |
|00004fd0| 20 20 70 61 74 74 65 72 | 6e 2e 20 20 4d 6f 73 74 | patter|n. Most|
|00004fe0| 20 63 68 61 72 61 63 74 | 65 72 73 20 69 6e 20 70 | charact|ers in p|
|00004ff0| 61 74 74 65 72 6e 73 20 | 20 73 74 61 6e 64 20 20 |atterns | stand |
|00005000| 66 6f 72 20 20 74 68 65 | 6d 73 65 6c 76 65 73 2c |for the|mselves,|
|00005010| 0a 20 20 20 20 20 20 20 | 20 62 75 74 20 20 20 74 |. | but t|
|00005020| 68 65 72 65 20 20 20 61 | 72 65 20 20 20 6d 65 74 |here a|re met|
|00005030| 61 63 68 61 72 61 63 74 | 65 72 73 3a 20 20 20 22 |acharact|ers: "|
|00005040| 2e 22 20 20 20 74 68 61 | 74 20 20 6d 61 74 63 68 |." tha|t match|
|00005050| 65 73 20 20 61 6e 79 0a | 20 20 20 20 20 20 20 20 |es any.| |
|00005060| 63 68 61 72 61 63 74 65 | 72 2c 20 22 2a 22 20 74 |characte|r, "*" t|
|00005070| 68 61 74 20 61 6c 6f 6e | 67 20 77 69 74 68 20 74 |hat alon|g with t|
|00005080| 68 65 20 70 72 65 76 69 | 6f 75 73 20 63 68 61 72 |he previ|ous char|
|00005090| 61 63 74 65 72 2c 20 6d | 61 74 63 68 65 73 0a 20 |acter, m|atches. |
|000050a0| 20 20 20 20 20 20 20 61 | 6e 79 20 6e 75 6d 62 65 | a|ny numbe|
|000050b0| 72 20 6f 66 20 72 65 70 | 65 74 69 74 69 6f 6e 73 |r of rep|etitions|
|000050c0| 20 6f 66 20 20 69 74 20 | 20 28 69 6e 63 6c 75 64 | of it | (includ|
|000050d0| 69 6e 67 20 20 6e 6f 6e | 65 29 2c 20 20 22 5e 22 |ing non|e), "^"|
|000050e0| 20 20 66 6f 72 0a 20 20 | 20 20 20 20 20 20 62 65 | for. | be|
|000050f0| 67 69 6e 6e 69 6e 67 20 | 20 6f 66 20 20 6c 69 6e |ginning | of lin|
|00005100| 65 2c 20 20 22 24 22 20 | 20 66 6f 72 20 20 65 6e |e, "$" | for en|
|00005110| 64 20 6f 66 20 6c 69 6e | 65 2c 20 61 6e 64 20 63 |d of lin|e, and c|
|00005120| 68 61 72 61 63 74 65 72 | 73 20 69 6e 0a 20 20 20 |haracter|s in. |
|00005130| 20 20 20 20 20 62 72 61 | 63 6b 65 74 73 20 22 5b | bra|ckets "[|
|00005140| 5d 22 20 74 6f 20 6d 61 | 74 63 68 20 61 6e 79 20 |]" to ma|tch any |
|00005150| 6f 66 20 20 74 68 65 20 | 20 63 68 61 72 61 63 74 |of the | charact|
|00005160| 65 72 73 2e 20 20 20 54 | 68 65 20 20 73 70 65 63 |ers. T|he spec|
|00005170| 69 61 6c 0a 20 20 20 20 | 20 20 20 20 73 65 6e 73 |ial. | sens|
|00005180| 65 20 20 6f 66 20 20 6d | 65 74 61 63 68 61 72 61 |e of m|etachara|
|00005190| 63 74 65 72 73 20 20 61 | 6e 64 20 20 6f 66 20 74 |cters a|nd of t|
|000051a0| 68 65 20 64 65 6c 69 6d | 69 74 65 72 73 20 69 6e |he delim|iters in|
|000051b0| 20 77 68 69 63 68 20 74 | 68 65 0a 20 20 20 20 20 | which t|he. |
|000051c0| 20 20 20 70 61 74 74 65 | 72 6e 20 69 73 20 65 6e | patte|rn is en|
|000051d0| 63 6c 6f 73 65 64 20 63 | 61 6e 20 61 6c 77 61 79 |closed c|an alway|
|000051e0| 73 20 62 65 20 20 74 75 | 72 6e 65 64 20 20 6f 66 |s be tu|rned of|
|000051f0| 66 20 20 62 79 20 20 70 | 72 65 63 65 65 64 69 6e |f by p|receedin|
|00005200| 67 0a 20 20 20 20 20 20 | 20 20 74 68 65 6d 20 77 |g. | them w|
|00005210| 69 74 68 20 74 68 65 20 | 65 73 63 61 70 65 20 63 |ith the |escape c|
|00005220| 68 61 72 61 63 74 65 72 | 20 22 5c 22 2e 0a 0a 20 |haracter| "\"... |
|00005230| 20 20 20 20 20 20 20 53 | 65 65 20 61 6c 73 6f 20 | S|ee also |
|00005240| 22 68 73 22 2c 20 22 68 | 67 22 2c 20 22 68 78 22 |"hs", "h|g", "hx"|
|00005250| 20 66 6f 72 20 75 73 65 | 73 20 6f 66 20 70 61 74 | for use|s of pat|
|00005260| 74 65 72 6e 73 2e 0a 20 | 20 20 20 20 20 20 20 46 |terns.. | F|
|00005270| 6f 72 20 74 68 65 20 75 | 73 65 20 6f 66 20 70 61 |or the u|se of pa|
|00005280| 74 74 65 72 6e 73 20 69 | 6e 20 6c 69 6e 65 20 6e |tterns i|n line n|
|00005290| 75 6d 62 65 72 73 2c 20 | 74 79 70 65 20 22 68 73 |umbers, |type "hs|
|000052a0| 63 61 6e 22 2e 0a 20 20 | 20 20 20 20 20 20 46 6f |can".. | Fo|
|000052b0| 72 20 65 78 61 6d 70 6c | 65 73 20 6f 66 20 70 61 |r exampl|es of pa|
|000052c0| 74 74 65 72 6e 20 6d 61 | 74 63 68 65 73 2c 20 74 |ttern ma|tches, t|
|000052d0| 79 70 65 20 22 68 70 61 | 74 65 78 22 2e 0a 53 48 |ype "hpa|tex"..SH|
|000052e0| 41 52 5f 45 4f 46 0a 66 | 69 20 23 20 65 6e 64 20 |AR_EOF.f|i # end |
|000052f0| 6f 66 20 6f 76 65 72 77 | 72 69 74 69 6e 67 20 63 |of overw|riting c|
|00005300| 68 65 63 6b 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |heck.ech|o shar: |
|00005310| 65 78 74 72 61 63 74 69 | 6e 67 20 22 27 70 61 74 |extracti|ng "'pat|
|00005320| 65 78 27 22 20 27 28 34 | 38 35 20 63 68 61 72 61 |ex'" '(4|85 chara|
|00005330| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00005340| 2d 66 20 27 70 61 74 65 | 78 27 0a 74 68 65 6e 0a |-f 'pate|x'.then.|
|00005350| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c |.echo sh|ar: will|
|00005360| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00005370| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|00005380| 70 61 74 65 78 27 22 0a | 65 6c 73 65 0a 63 61 74 |patex'".|else.cat|
|00005390| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000053a0| 27 70 61 74 65 78 27 0a | 20 20 20 20 20 20 20 20 |'patex'.| |
|000053b0| 20 50 41 54 54 45 52 4e | 20 20 20 20 20 20 20 4d | PATTERN| M|
|000053c0| 41 54 43 48 45 53 20 20 | 20 20 20 44 4f 45 53 4e |ATCHES | DOESN|
|000053d0| 27 54 20 4d 41 54 43 48 | 0a 0a 20 20 20 20 20 20 |'T MATCH|.. |
|000053e0| 20 20 22 74 65 73 74 22 | 20 20 20 20 20 20 20 20 | "test"| |
|000053f0| 20 22 74 65 73 74 66 6f | 6f 22 20 20 20 22 66 6f | "testfo|o" "fo|
|00005400| 6f 62 61 72 22 0a 20 20 | 20 20 20 20 20 20 22 74 |obar". | "t|
|00005410| 65 73 74 24 22 20 20 20 | 20 20 20 20 20 22 66 6f |est$" | "fo|
|00005420| 6f 74 65 73 74 22 20 20 | 20 22 74 65 73 74 20 22 |otest" | "test "|
|00005430| 0a 20 20 20 20 20 20 20 | 20 22 24 22 20 20 20 20 |. | "$" |
|00005440| 20 20 20 20 20 20 20 20 | 61 6e 79 74 68 69 6e 67 | |anything|
|00005450| 0a 20 20 20 20 20 20 20 | 20 22 61 62 2a 63 22 20 |. | "ab*c" |
|00005460| 20 20 20 20 20 20 20 20 | 22 61 62 62 62 62 62 62 | |"abbbbbb|
|00005470| 63 22 20 20 22 62 62 62 | 62 62 62 63 22 0a 20 20 |c" "bbb|bbbc". |
|00005480| 20 20 20 20 20 20 22 61 | 62 2a 63 22 20 20 20 20 | "a|b*c" |
|00005490| 20 20 20 20 20 22 61 63 | 20 63 75 72 22 20 20 20 | "ac| cur" |
|000054a0| 20 22 61 62 2a 63 22 0a | 20 20 20 20 20 20 20 20 | "ab*c".| |
|000054b0| 22 5e 61 62 63 22 20 20 | 20 20 20 20 20 20 20 22 |"^abc" | "|
|000054c0| 61 62 63 61 63 22 20 20 | 20 20 20 22 62 63 61 62 |abcac" | "bcab|
|000054d0| 63 22 0a 20 20 20 20 20 | 20 20 20 22 61 62 63 5e |c". | "abc^|
|000054e0| 22 20 20 20 20 20 20 20 | 20 20 22 61 62 63 5e 64 |" | "abc^d|
|000054f0| 22 20 20 20 20 20 22 61 | 62 2a 63 22 0a 20 20 20 |" "a|b*c". |
|00005500| 20 20 20 20 20 22 61 5b | 62 63 64 5d 2a 65 22 20 | "a[|bcd]*e" |
|00005510| 20 20 20 20 22 61 62 64 | 64 63 65 61 62 22 20 20 | "abd|dceab" |
|00005520| 22 65 65 65 61 61 61 22 | 0a 20 20 20 20 20 20 20 |"eeeaaa"|. |
|00005530| 20 22 61 5b 62 63 64 5d | 2a 65 22 20 20 20 20 20 | "a[bcd]|*e" |
|00005540| 22 61 61 61 65 65 65 22 | 20 20 20 20 22 62 63 64 |"aaaeee"| "bcd|
|00005550| 62 63 64 65 22 0a 0a 20 | 20 20 20 20 20 20 20 46 |bcde".. | F|
|00005560| 6f 72 20 67 65 6e 65 72 | 61 6c 20 69 6e 66 6f 20 |or gener|al info |
|00005570| 61 62 6f 75 74 20 70 61 | 74 74 65 72 6e 73 2c 20 |about pa|tterns, |
|00005580| 74 79 70 65 20 22 68 70 | 61 74 22 2e 0a 53 48 41 |type "hp|at"..SHA|
|00005590| 52 5f 45 4f 46 0a 66 69 | 20 23 20 65 6e 64 20 6f |R_EOF.fi| # end o|
|000055a0| 66 20 6f 76 65 72 77 72 | 69 74 69 6e 67 20 63 68 |f overwr|iting ch|
|000055b0| 65 63 6b 0a 65 63 68 6f | 20 73 68 61 72 3a 20 65 |eck.echo| shar: e|
|000055c0| 78 74 72 61 63 74 69 6e | 67 20 22 27 71 27 22 20 |xtractin|g "'q'" |
|000055d0| 27 28 35 31 34 20 63 68 | 61 72 61 63 74 65 72 73 |'(514 ch|aracters|
|000055e0| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 71 |)'.if te|st -f 'q|
|000055f0| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00005600| 72 3a 20 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: will |not over|
|00005610| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|00005620| 66 69 6c 65 20 22 27 71 | 27 22 0a 65 6c 73 65 0a |file "'q|'".else.|
|00005630| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00005640| 20 3e 20 27 71 27 0a 20 | 20 20 20 20 20 20 20 20 | > 'q'. | |
|00005650| 20 71 20 20 20 2d 2d 20 | 20 51 75 69 74 20 63 6f | q -- | Quit co|
|00005660| 6d 6d 61 6e 64 0a 0a 20 | 20 20 20 20 20 20 20 20 |mmand.. | |
|00005670| 20 20 20 20 20 20 64 65 | 66 61 75 6c 74 20 72 61 | de|fault ra|
|00005680| 6e 67 65 20 20 20 20 20 | 20 20 20 20 20 20 73 79 |nge | sy|
|00005690| 6e 74 61 78 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ntax. | |
|000056a0| 20 20 20 20 20 20 20 20 | 6e 2f 61 20 20 20 20 20 | |n/a |
|000056b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 71 | | q|
|000056c0| 0a 0a 20 20 20 20 20 20 | 20 20 22 71 22 20 69 73 |.. | "q" is|
|000056d0| 20 75 73 65 64 20 74 6f | 20 71 75 69 74 20 74 68 | used to| quit th|
|000056e0| 65 20 73 63 72 65 65 6e | 20 65 64 69 74 6f 72 20 |e screen| editor |
|000056f0| 20 61 6e 64 20 20 72 65 | 74 75 72 6e 20 20 74 6f | and re|turn to|
|00005700| 20 20 73 79 73 74 65 6d | 0a 20 20 20 20 20 20 20 | system|. |
|00005710| 20 63 6f 6d 6d 61 6e 64 | 20 20 6c 65 76 65 6c 2e | command| level.|
|00005720| 20 20 49 66 20 63 68 61 | 6e 67 65 73 20 68 61 76 | If cha|nges hav|
|00005730| 65 20 62 65 65 6e 20 6d | 61 64 65 20 74 6f 20 74 |e been m|ade to t|
|00005740| 68 65 20 62 75 66 66 65 | 72 20 73 69 6e 63 65 0a |he buffe|r since.|
|00005750| 20 20 20 20 20 20 20 20 | 74 68 65 20 6c 61 73 74 | |the last|
|00005760| 20 77 72 69 74 65 20 28 | 22 77 22 29 2c 20 79 6f | write (|"w"), yo|
|00005770| 75 20 77 69 6c 6c 20 62 | 65 20 61 73 6b 65 64 20 |u will b|e asked |
|00005780| 69 66 20 79 6f 75 20 72 | 65 61 6c 6c 79 20 77 61 |if you r|eally wa|
|00005790| 6e 74 20 20 74 6f 0a 20 | 20 20 20 20 20 20 20 71 |nt to. | q|
|000057a0| 75 69 74 2e 20 20 20 49 | 66 20 73 6f 2c 20 6a 75 |uit. I|f so, ju|
|000057b0| 73 74 20 64 6f 20 61 6e | 6f 74 68 65 72 20 22 71 |st do an|other "q|
|000057c0| 22 20 63 6f 6d 6d 61 6e | 64 20 28 52 45 54 55 52 |" comman|d (RETUR|
|000057d0| 4e 20 69 73 20 61 6c 6c | 20 74 68 61 74 0a 20 20 |N is all| that. |
|000057e0| 20 20 20 20 20 20 72 65 | 71 75 69 72 65 64 29 2e | re|quired).|
|000057f0| 0a 0a 0a 20 20 20 20 20 | 20 20 20 54 6f 20 72 65 |... | To re|
|00005800| 74 75 72 6e 20 74 6f 20 | 74 68 65 20 63 6f 6d 6d |turn to |the comm|
|00005810| 61 6e 64 20 64 69 72 65 | 63 74 6f 72 79 2c 20 74 |and dire|ctory, t|
|00005820| 79 70 65 20 22 68 63 6f | 6d 64 69 72 2e 22 0a 20 |ype "hco|mdir.". |
|00005830| 20 20 20 20 20 20 20 53 | 65 65 20 61 6c 73 6f 3a | S|ee also:|
|00005840| 20 20 22 68 6f 6b 22 2e | 0a 53 48 41 52 5f 45 4f | "hok".|.SHAR_EO|
|00005850| 46 0a 66 69 20 23 20 65 | 6e 64 20 6f 66 20 6f 76 |F.fi # e|nd of ov|
|00005860| 65 72 77 72 69 74 69 6e | 67 20 63 68 65 63 6b 0a |erwritin|g check.|
|00005870| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 78 74 72 61 |echo sha|r: extra|
|00005880| 63 74 69 6e 67 20 22 27 | 71 75 6f 74 65 27 22 20 |cting "'|quote'" |
|00005890| 27 28 33 34 30 20 63 68 | 61 72 61 63 74 65 72 73 |'(340 ch|aracters|
|000058a0| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 71 |)'.if te|st -f 'q|
|000058b0| 75 6f 74 65 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |uote'.th|en..echo|
|000058c0| 20 73 68 61 72 3a 20 77 | 69 6c 6c 20 6e 6f 74 20 | shar: w|ill not |
|000058d0| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|000058e0| 69 6e 67 20 66 69 6c 65 | 20 22 27 71 75 6f 74 65 |ing file| "'quote|
|000058f0| 27 22 0a 65 6c 73 65 0a | 63 61 74 20 3c 3c 20 5c |'".else.|cat << \|
|00005900| 53 48 41 52 5f 45 4f 46 | 20 3e 20 27 71 75 6f 74 |SHAR_EOF| > 'quot|
|00005910| 65 27 0a 0a 20 20 20 20 | 20 20 20 20 27 20 2d 2d |e'.. | ' --|
|00005920| 2d 20 67 6c 6f 62 61 6c | 20 6f 6e 20 6d 61 72 6b |- global| on mark|
|00005930| 6e 61 6d 65 0a 0a 20 20 | 20 20 20 20 20 20 64 65 |name.. | de|
|00005940| 66 61 75 6c 74 20 72 61 | 6e 67 65 20 20 20 20 20 |fault ra|nge |
|00005950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 79 | | sy|
|00005960| 6e 74 61 78 0a 20 20 20 | 20 20 20 20 20 20 20 31 |ntax. | 1|
|00005970| 2c 24 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,$ | |
|00005980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 27 | | '|
|00005990| 3c 6d 3e 63 6f 6d 6d 61 | 6e 64 0a 20 20 20 20 20 |<m>comma|nd. |
|000059a0| 20 20 20 0a 20 20 20 20 | 20 20 20 20 53 69 6d 69 | . | Simi|
|000059b0| 6c 61 72 20 74 6f 20 74 | 68 65 20 22 67 22 20 70 |lar to t|he "g" p|
|000059c0| 72 65 66 69 78 2c 20 65 | 78 63 65 70 74 20 74 68 |refix, e|xcept th|
|000059d0| 61 74 20 22 63 6f 6d 6d | 61 6e 64 22 20 69 73 20 |at "comm|and" is |
|000059e0| 70 65 72 66 6f 72 6d 65 | 64 0a 20 20 20 20 20 20 |performe|d. |
|000059f0| 20 20 66 6f 72 20 61 6c | 6c 20 6c 69 6e 65 73 20 | for al|l lines |
|00005a00| 69 6e 20 74 68 65 20 72 | 61 6e 67 65 20 74 68 61 |in the r|ange tha|
|00005a10| 74 20 68 61 76 65 20 74 | 68 65 20 6d 61 72 6b 20 |t have t|he mark |
|00005a20| 6e 61 6d 65 20 3c 6d 3e | 2e 0a 0a 20 20 20 20 20 |name <m>|... |
|00005a30| 20 20 20 54 6f 20 72 65 | 74 75 72 6e 20 74 6f 20 | To re|turn to |
|00005a40| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 64 69 72 65 |the comm|and dire|
|00005a50| 63 74 6f 72 79 2c 20 74 | 79 70 65 20 22 68 63 6f |ctory, t|ype "hco|
|00005a60| 6d 64 69 72 22 2e 0a 53 | 48 41 52 5f 45 4f 46 0a |mdir"..S|HAR_EOF.|
|00005a70| 66 69 20 23 20 65 6e 64 | 20 6f 66 20 6f 76 65 72 |fi # end| of over|
|00005a80| 77 72 69 74 69 6e 67 20 | 63 68 65 63 6b 0a 65 63 |writing |check.ec|
|00005a90| 68 6f 20 73 68 61 72 3a | 20 65 78 74 72 61 63 74 |ho shar:| extract|
|00005aa0| 69 6e 67 20 22 27 72 27 | 22 20 27 28 35 30 30 20 |ing "'r'|" '(500 |
|00005ab0| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00005ac0| 74 65 73 74 20 2d 66 20 | 27 72 27 0a 74 68 65 6e |test -f |'r'.then|
|00005ad0| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 77 69 6c |..echo s|har: wil|
|00005ae0| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00005af0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 22 | existin|g file "|
|00005b00| 27 72 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |'r'".els|e.cat <<|
|00005b10| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 72 27 | \SHAR_E|OF > 'r'|
|00005b20| 0a 20 20 20 20 20 20 20 | 20 20 20 72 20 20 20 20 |. | r |
|00005b30| 2d 2d 20 52 65 61 64 20 | 63 6f 6d 6d 61 6e 64 0a |-- Read |command.|
|00005b40| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005b50| 64 65 66 61 75 6c 74 20 | 72 61 6e 67 65 20 20 20 |default |range |
|00005b60| 20 20 20 20 20 20 20 20 | 73 79 6e 74 61 78 0a 20 | |syntax. |
|00005b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b80| 20 20 20 20 20 2e 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00005b90| 20 72 20 5b 66 69 6c 65 | 20 6e 61 6d 65 5d 0a 20 | r [file| name]. |
|00005ba0| 20 20 20 20 20 20 20 22 | 72 22 20 69 73 20 75 73 | "|r" is us|
|00005bb0| 65 64 20 74 6f 20 72 65 | 61 64 20 61 20 66 69 6c |ed to re|ad a fil|
|00005bc0| 65 20 69 6e 74 6f 20 20 | 74 68 65 20 20 62 75 66 |e into |the buf|
|00005bd0| 66 65 72 20 20 61 74 20 | 20 28 61 66 74 65 72 29 |fer at | (after)|
|00005be0| 20 20 74 68 65 0a 20 20 | 20 20 20 20 20 20 6e 61 | the. | na|
|00005bf0| 6d 65 64 20 20 70 6c 61 | 63 65 20 20 28 72 61 6e |med pla|ce (ran|
|00005c00| 67 65 20 66 69 65 6c 64 | 29 2e 20 20 49 66 20 6e |ge field|). If n|
|00005c10| 6f 20 66 69 6c 65 20 6e | 61 6d 65 20 69 73 20 70 |o file n|ame is p|
|00005c20| 72 6f 76 69 64 65 64 2c | 20 74 68 65 0a 20 20 20 |rovided,| the. |
|00005c30| 20 20 20 20 20 63 75 72 | 72 65 6e 74 20 20 66 69 | cur|rent fi|
|00005c40| 6c 65 20 6e 61 6d 65 20 | 28 61 73 20 20 69 64 65 |le name |(as ide|
|00005c50| 6e 74 69 66 69 65 64 20 | 62 79 20 74 68 65 20 22 |ntified |by the "|
|00005c60| 66 22 20 63 6f 6d 6d 61 | 6e 64 29 20 69 73 20 75 |f" comma|nd) is u|
|00005c70| 73 65 64 2e 0a 20 20 20 | 20 20 20 20 20 53 65 20 |sed.. | Se |
|00005c80| 65 78 70 61 6e 64 20 65 | 6e 76 69 72 6f 6e 6d 65 |expand e|nvironme|
|00005c90| 6e 74 20 76 61 72 69 61 | 62 6c 65 73 20 6f 63 63 |nt varia|bles occ|
|00005ca0| 75 72 69 6e 67 20 69 6e | 20 66 69 6c 65 20 6e 61 |uring in| file na|
|00005cb0| 6d 65 73 2e 0a 0a 0a 20 | 20 20 20 20 20 20 20 54 |mes.... | T|
|00005cc0| 6f 20 72 65 74 75 72 6e | 20 74 6f 20 74 68 65 20 |o return| to the |
|00005cd0| 63 6f 6d 6d 61 6e 64 20 | 64 69 72 65 63 74 6f 72 |command |director|
|00005ce0| 79 2c 20 74 79 70 65 20 | 22 68 63 6f 6d 64 69 72 |y, type |"hcomdir|
|00005cf0| 2e 22 0a 20 20 20 20 20 | 20 20 20 53 65 65 20 61 |.". | See a|
|00005d00| 6c 73 6f 3a 20 20 22 68 | 66 22 20 61 6e 64 20 22 |lso: "h|f" and "|
|00005d10| 68 65 22 2e 0a 53 48 41 | 52 5f 45 4f 46 0a 66 69 |he"..SHA|R_EOF.fi|
|00005d20| 20 23 20 65 6e 64 20 6f | 66 20 6f 76 65 72 77 72 | # end o|f overwr|
|00005d30| 69 74 69 6e 67 20 63 68 | 65 63 6b 0a 65 63 68 6f |iting ch|eck.echo|
|00005d40| 20 73 68 61 72 3a 20 65 | 78 74 72 61 63 74 69 6e | shar: e|xtractin|
|00005d50| 67 20 22 27 72 70 74 27 | 22 20 27 28 35 32 33 20 |g "'rpt'|" '(523 |
|00005d60| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00005d70| 74 65 73 74 20 2d 66 20 | 27 72 70 74 27 0a 74 68 |test -f |'rpt'.th|
|00005d80| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 77 |en..echo| shar: w|
|00005d90| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00005da0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00005db0| 20 22 27 72 70 74 27 22 | 0a 65 6c 73 65 0a 63 61 | "'rpt'"|.else.ca|
|00005dc0| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00005dd0| 20 27 72 70 74 27 0a 20 | 20 20 20 20 20 20 20 54 | 'rpt'. | T|
|00005de0| 68 65 20 43 54 52 4c 2d | 46 20 28 22 46 75 6e 6e |he CTRL-|F ("Funn|
|00005df0| 79 20 52 65 74 75 72 6e | 22 29 20 6b 65 79 20 20 |y Return|") key |
|00005e00| 63 61 6e 20 20 62 65 20 | 20 75 73 65 64 20 20 66 |can be | used f|
|00005e10| 6f 72 20 20 72 65 70 65 | 61 74 69 6e 67 0a 20 20 |or repe|ating. |
|00005e20| 20 20 20 20 20 20 6c 69 | 6e 65 73 20 77 68 69 6c | li|nes whil|
|00005e30| 65 20 69 6e 20 41 70 70 | 65 6e 64 20 4d 6f 64 65 |e in App|end Mode|
|00005e40| 20 6f 72 20 69 6e 20 43 | 6f 6d 6d 61 6e 64 20 4d | or in C|ommand M|
|00005e50| 6f 64 65 2e 20 20 54 79 | 70 69 6e 67 20 69 74 20 |ode. Ty|ping it |
|00005e60| 77 69 6c 6c 0a 20 20 20 | 20 20 20 20 20 63 61 75 |will. | cau|
|00005e70| 73 65 20 20 20 74 68 65 | 20 20 20 6c 69 6e 65 20 |se the| line |
|00005e80| 20 74 6f 20 20 62 65 20 | 20 74 65 72 6d 69 6e 61 | to be | termina|
|00005e90| 74 65 64 20 20 77 69 74 | 68 6f 75 74 20 20 63 68 |ted wit|hout ch|
|00005ea0| 6f 70 70 69 6e 67 20 20 | 61 6e 79 0a 20 20 20 20 |opping |any. |
|00005eb0| 20 20 20 20 63 68 61 72 | 61 63 74 65 72 73 20 6f | char|acters o|
|00005ec0| 66 66 2c 20 61 6e 64 20 | 77 69 6c 6c 20 73 65 74 |ff, and |will set|
|00005ed0| 20 61 20 66 6c 61 67 20 | 74 68 61 74 20 77 69 6c | a flag |that wil|
|00005ee0| 6c 20 69 6e 68 69 62 69 | 74 20 20 65 72 61 73 75 |l inhibi|t erasu|
|00005ef0| 72 65 0a 20 20 20 20 20 | 20 20 20 6f 66 20 20 74 |re. | of t|
|00005f00| 68 65 20 20 63 6f 6d 6d | 61 6e 64 20 20 61 66 74 |he comm|and aft|
|00005f10| 65 72 20 69 74 20 69 73 | 20 63 6f 6d 70 6c 65 74 |er it is| complet|
|00005f20| 65 64 2c 20 73 6f 20 74 | 68 61 74 20 74 68 65 20 |ed, so t|hat the |
|00005f30| 73 61 6d 65 20 6c 69 6e | 65 0a 20 20 20 20 20 20 |same lin|e. |
|00005f40| 20 20 6d 61 79 20 62 65 | 20 65 61 73 69 6c 79 20 | may be| easily |
|00005f50| 72 65 2d 20 65 6e 74 65 | 72 65 64 2e 0a 0a 0a 20 |re- ente|red.... |
|00005f60| 20 20 20 20 20 20 20 54 | 79 70 65 20 22 68 74 65 | T|ype "hte|
|00005f70| 72 6d 63 68 61 72 22 20 | 66 6f 72 20 69 6e 66 6f |rmchar" |for info|
|00005f80| 20 61 62 6f 75 74 20 6f | 74 68 65 72 20 74 65 72 | about o|ther ter|
|00005f90| 6d 69 6e 61 74 69 6f 6e | 20 63 68 61 72 61 63 74 |mination| charact|
|00005fa0| 65 72 73 2e 0a 20 20 20 | 20 20 20 20 20 54 79 70 |ers.. | Typ|
|00005fb0| 65 20 22 68 61 62 74 22 | 20 74 6f 20 73 65 65 20 |e "habt"| to see |
|00005fc0| 77 68 61 74 20 43 54 52 | 4c 2d 46 20 64 6f 65 73 |what CTR|L-F does|
|00005fd0| 20 69 6e 20 6f 76 65 72 | 6c 61 79 20 6d 6f 64 65 | in over|lay mode|
|00005fe0| 2e 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 20 23 20 |..SHAR_E|OF.fi # |
|00005ff0| 65 6e 64 20 6f 66 20 6f | 76 65 72 77 72 69 74 69 |end of o|verwriti|
|00006000| 6e 67 20 63 68 65 63 6b | 0a 65 63 68 6f 20 73 68 |ng check|.echo sh|
|00006010| 61 72 3a 20 65 78 74 72 | 61 63 74 69 6e 67 20 22 |ar: extr|acting "|
|00006020| 27 73 27 22 20 27 28 37 | 37 36 20 63 68 61 72 61 |'s'" '(7|76 chara|
|00006030| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00006040| 2d 66 20 27 73 27 0a 74 | 68 65 6e 0a 09 65 63 68 |-f 's'.t|hen..ech|
|00006050| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00006060| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00006070| 74 69 6e 67 20 66 69 6c | 65 20 22 27 73 27 22 0a |ting fil|e "'s'".|
|00006080| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00006090| 52 5f 45 4f 46 20 3e 20 | 27 73 27 0a 20 20 20 20 |R_EOF > |'s'. |
|000060a0| 20 20 20 20 20 20 73 20 | 20 20 20 2d 2d 20 53 75 | s | -- Su|
|000060b0| 62 73 74 69 74 75 74 65 | 20 63 6f 6d 6d 61 6e 64 |bstitute| command|
|000060c0| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000060d0| 20 64 65 66 61 75 6c 74 | 20 72 61 6e 67 65 20 20 | default| range |
|000060e0| 20 20 20 20 20 20 20 20 | 20 73 79 6e 74 61 78 0a | | syntax.|
|000060f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006100| 20 20 20 2e 2c 2e 20 20 | 20 20 20 20 20 20 20 20 | .,. | |
|00006110| 20 73 2f 63 68 61 6e 67 | 65 2d 74 68 69 73 2f 74 | s/chang|e-this/t|
|00006120| 6f 2d 74 68 69 73 5b 2f | 5d 5b 67 5d 0a 0a 20 20 |o-this[/|][g].. |
|00006130| 20 20 20 20 20 20 54 68 | 65 20 70 61 74 74 65 72 | Th|e patter|
|00006140| 6e 20 22 63 68 61 6e 67 | 65 2d 74 68 69 73 22 20 |n "chang|e-this" |
|00006150| 69 73 20 6d 61 74 63 68 | 65 64 20 6f 6e 20 65 61 |is match|ed on ea|
|00006160| 63 68 20 6c 69 6e 65 20 | 20 77 69 74 68 69 6e 20 |ch line | within |
|00006170| 20 74 68 65 0a 20 20 20 | 20 20 20 20 20 72 61 6e | the. | ran|
|00006180| 67 65 20 20 61 6e 64 20 | 74 68 65 20 73 74 72 69 |ge and |the stri|
|00006190| 6e 67 20 22 74 6f 2d 74 | 68 69 73 22 20 69 73 20 |ng "to-t|his" is |
|000061a0| 73 75 62 73 74 69 74 75 | 74 65 64 20 66 6f 72 20 |substitu|ted for |
|000061b0| 69 74 2e 20 20 49 66 20 | 5b 67 5d 0a 20 20 20 20 |it. If |[g]. |
|000061c0| 20 20 20 20 69 73 20 75 | 73 65 64 2c 20 61 6c 6c | is u|sed, all|
|000061d0| 20 6f 63 63 75 72 72 65 | 6e 63 65 73 20 20 6f 66 | occurre|nces of|
|000061e0| 20 20 74 68 65 20 20 22 | 63 68 61 6e 67 65 2d 74 | the "|change-t|
|000061f0| 68 69 73 22 20 20 70 61 | 74 74 65 72 6e 20 20 61 |his" pa|ttern a|
|00006200| 72 65 0a 20 20 20 20 20 | 20 20 20 63 68 61 6e 67 |re. | chang|
|00006210| 65 64 2e 20 20 20 49 66 | 20 20 22 63 68 61 6e 67 |ed. If| "chang|
|00006220| 65 2d 74 68 69 73 22 20 | 69 73 20 65 6d 70 74 79 |e-this" |is empty|
|00006230| 2c 20 74 68 65 20 6d 6f | 73 74 20 72 65 63 65 6e |, the mo|st recen|
|00006240| 74 20 70 61 74 74 65 72 | 6e 0a 20 20 20 20 20 20 |t patter|n. |
|00006250| 20 20 66 72 6f 6d 20 74 | 68 69 73 20 63 6f 6d 6d | from t|his comm|
|00006260| 61 6e 64 20 28 65 2e 67 | 2e 20 20 77 69 74 68 69 |and (e.g|. withi|
|00006270| 6e 20 74 68 65 20 72 61 | 6e 67 65 20 66 69 65 6c |n the ra|nge fiel|
|00006280| 64 29 20 6f 72 20 61 20 | 70 72 65 76 69 6f 75 73 |d) or a |previous|
|00006290| 0a 20 20 20 20 20 20 20 | 20 63 6f 6d 6d 61 6e 64 |. | command|
|000062a0| 20 69 73 20 75 73 65 64 | 2e 20 20 49 66 20 22 74 | is used|. If "t|
|000062b0| 6f 2d 74 68 69 73 22 20 | 69 73 20 61 20 27 25 27 |o-this" |is a '%'|
|000062c0| 2c 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 72 |, the pr|evious r|
|000062d0| 65 70 6c 61 63 65 2d 0a | 20 20 20 20 20 20 20 20 |eplace-.| |
|000062e0| 6d 65 6e 74 20 70 61 74 | 74 65 72 6e 20 69 73 20 |ment pat|tern is |
|000062f0| 75 73 65 64 2e 20 54 68 | 65 20 22 2f 22 20 6d 61 |used. Th|e "/" ma|
|00006300| 79 20 62 65 20 61 6e 79 | 20 63 68 61 72 61 63 74 |y be any| charact|
|00006310| 65 72 2e 20 54 68 65 20 | 74 72 61 69 6c 2d 0a 20 |er. The |trail-. |
|00006320| 20 20 20 20 20 20 20 69 | 6e 67 20 64 65 6c 69 6d | i|ng delim|
|00006330| 69 74 65 72 20 69 73 20 | 6f 70 74 69 6f 6e 61 6c |iter is |optional|
|00006340| 2e 0a 0a 20 20 20 20 20 | 20 20 20 54 6f 20 72 65 |... | To re|
|00006350| 74 75 72 6e 20 74 6f 20 | 74 68 65 20 63 6f 6d 6d |turn to |the comm|
|00006360| 61 6e 64 20 64 69 72 65 | 63 74 6f 72 79 2c 20 74 |and dire|ctory, t|
|00006370| 79 70 65 20 22 68 63 6f | 6d 64 69 72 2e 22 0a 20 |ype "hco|mdir.". |
|00006380| 20 20 20 20 20 20 20 53 | 65 65 20 61 6c 73 6f 3a | S|ee also:|
|00006390| 20 20 22 68 6c 6e 22 20 | 61 6e 64 20 22 68 70 61 | "hln" |and "hpa|
|000063a0| 74 22 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 20 |t"..SHAR|_EOF.fi |
|000063b0| 23 20 65 6e 64 20 6f 66 | 20 6f 76 65 72 77 72 69 |# end of| overwri|
|000063c0| 74 69 6e 67 20 63 68 65 | 63 6b 0a 65 63 68 6f 20 |ting che|ck.echo |
|000063d0| 73 68 61 72 3a 20 65 78 | 74 72 61 63 74 69 6e 67 |shar: ex|tracting|
|000063e0| 20 22 27 73 63 61 6e 27 | 22 20 27 28 39 32 37 20 | "'scan'|" '(927 |
|000063f0| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.