home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
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| 46 72 6f 6d 3a 20 4a 65 | 66 66 20 4c 65 65 20 3c |From: Je|ff Lee <|
|00000010| 74 61 6c 63 6f 74 74 21 | 73 65 69 73 6d 6f 21 67 |talcott!|seismo!g|
|00000020| 61 74 65 63 68 21 6a 65 | 66 66 3e 0a 53 75 62 6a |atech!je|ff>.Subj|
|00000030| 65 63 74 3a 20 47 65 6f | 72 67 69 61 20 54 65 63 |ect: Geo|rgia Tec|
|00000040| 68 20 27 73 65 27 20 73 | 63 72 65 65 6e 20 65 64 |h 'se' s|creen ed|
|00000050| 69 74 6f 72 20 28 50 61 | 72 74 20 38 20 6f 66 20 |itor (Pa|rt 8 of |
|00000060| 38 29 0a 4b 65 79 77 6f | 72 64 73 3a 20 53 6f 66 |8).Keywo|rds: Sof|
|00000070| 74 77 61 72 65 20 54 6f | 6f 6c 73 2c 20 59 65 74 |tware To|ols, Yet|
|00000080| 20 41 6e 6f 74 68 65 72 | 20 53 63 72 65 65 6e 20 | Another| Screen |
|00000090| 45 64 69 74 6f 72 2c 20 | 42 6f 74 68 20 42 53 44 |Editor, |Both BSD|
|000000a0| 20 61 6e 64 20 55 53 47 | 0a 4e 65 77 73 67 72 6f | and USG|.Newsgro|
|000000b0| 75 70 73 3a 20 6d 6f 64 | 2e 73 6f 75 72 63 65 73 |ups: mod|.sources|
|000000c0| 0a 41 70 70 72 6f 76 65 | 64 3a 20 6a 70 6e 40 70 |.Approve|d: jpn@p|
|000000d0| 61 6e 64 61 2e 55 55 43 | 50 0a 0a 4d 6f 64 2e 73 |anda.UUC|P..Mod.s|
|000000e0| 6f 75 72 63 65 73 3a 20 | 20 56 6f 6c 75 6d 65 20 |ources: | Volume |
|000000f0| 34 2c 20 49 73 73 75 65 | 20 38 39 0a 53 75 62 6d |4, Issue| 89.Subm|
|00000100| 69 74 74 65 64 20 62 79 | 3a 20 4a 65 66 66 20 4c |itted by|: Jeff L|
|00000110| 65 65 20 3c 73 65 69 73 | 6d 6f 21 67 61 74 65 63 |ee <seis|mo!gatec|
|00000120| 68 21 6a 65 66 66 3e 0a | 0a 23 21 20 2f 62 69 6e |h!jeff>.|.#! /bin|
|00000130| 2f 73 68 0a 23 20 54 68 | 69 73 20 69 73 20 61 20 |/sh.# Th|is is a |
|00000140| 73 68 65 6c 6c 20 61 72 | 63 68 69 76 65 2c 20 6d |shell ar|chive, m|
|00000150| 65 61 6e 69 6e 67 3a 0a | 23 20 31 2e 20 52 65 6d |eaning:.|# 1. Rem|
|00000160| 6f 76 65 20 65 76 65 72 | 79 74 68 69 6e 67 20 61 |ove ever|ything a|
|00000170| 62 6f 76 65 20 74 68 65 | 20 23 21 20 2f 62 69 6e |bove the| #! /bin|
|00000180| 2f 73 68 20 6c 69 6e 65 | 2e 0a 23 20 32 2e 20 53 |/sh line|..# 2. S|
|00000190| 61 76 65 20 74 68 65 20 | 72 65 73 75 6c 74 69 6e |ave the |resultin|
|000001a0| 67 20 74 65 78 74 20 69 | 6e 20 61 20 66 69 6c 65 |g text i|n a file|
|000001b0| 2e 0a 23 20 33 2e 20 45 | 78 65 63 75 74 65 20 74 |..# 3. E|xecute t|
|000001c0| 68 65 20 66 69 6c 65 20 | 77 69 74 68 20 2f 62 69 |he file |with /bi|
|000001d0| 6e 2f 73 68 20 28 6e 6f | 74 20 63 73 68 29 20 74 |n/sh (no|t csh) t|
|000001e0| 6f 20 63 72 65 61 74 65 | 3a 0a 23 09 6f 0a 23 09 |o create|:.#.o.#.|
|000001f0| 6f 2d 0a 23 09 6f 61 0a | 23 09 6f 63 0a 23 09 6f |o-.#.oa.|#.oc.#.o|
|00000200| 64 0a 23 09 6f 66 0a 23 | 09 6f 67 0a 23 09 6f 68 |d.#.of.#|.og.#.oh|
|00000210| 0a 23 09 6f 69 0a 23 09 | 6f 6b 0a 23 09 6f 6c 0a |.#.oi.#.|ok.#.ol.|
|00000220| 23 09 6f 6c 6d 0a 23 09 | 6f 6d 0a 23 09 6f 70 0a |#.olm.#.|om.#.op.|
|00000230| 23 09 6f 73 0a 23 09 6f | 74 0a 23 09 6f 75 0a 23 |#.os.#.o|t.#.ou.#|
|00000240| 09 6f 76 0a 23 09 6f 77 | 0a 23 09 6f 78 0a 23 09 |.ov.#.ow|.#.ox.#.|
|00000250| 6f 79 0a 23 09 6f 7a 0a | 23 09 70 0a 23 09 70 61 |oy.#.oz.|#.p.#.pa|
|00000260| 74 0a 23 09 70 61 74 5f | 73 77 74 0a 23 09 70 61 |t.#.pat_|swt.#.pa|
|00000270| 74 65 78 0a 23 09 70 61 | 74 65 78 5f 73 77 74 0a |tex.#.pa|tex_swt.|
|00000280| 23 09 71 0a 23 09 71 75 | 6f 74 65 0a 23 09 72 0a |#.q.#.qu|ote.#.r.|
|00000290| 23 09 72 70 74 0a 23 09 | 73 0a 23 09 73 5f 73 77 |#.rpt.#.|s.#.s_sw|
|000002a0| 74 0a 23 09 73 63 61 6e | 0a 23 09 73 63 61 6e 5f |t.#.scan|.#.scan_|
|000002b0| 73 77 74 0a 23 09 73 65 | 72 63 0a 23 09 73 68 65 |swt.#.se|rc.#.she|
|000002c0| 6c 6c 0a 23 09 73 68 65 | 6c 6c 5f 73 77 74 0a 23 |ll.#.she|ll_swt.#|
|000002d0| 09 73 70 65 63 6c 0a 23 | 09 74 0a 23 09 74 5f 73 |.specl.#|.t.#.t_s|
|000002e0| 77 74 0a 23 09 74 65 72 | 6d 63 68 61 72 0a 23 09 |wt.#.ter|mchar.#.|
|000002f0| 74 69 6c 64 65 0a 23 09 | 75 0a 23 09 76 0a 23 09 |tilde.#.|u.#.v.#.|
|00000300| 77 0a 23 09 78 0a 23 09 | 79 0a 23 09 79 5f 73 77 |w.#.x.#.|y.#.y_sw|
|00000310| 74 0a 23 09 7a 0a 23 20 | 54 68 69 73 20 61 72 63 |t.#.z.# |This arc|
|00000320| 68 69 76 65 20 63 72 65 | 61 74 65 64 3a 20 54 75 |hive cre|ated: Tu|
|00000330| 65 20 41 70 72 20 32 39 | 20 31 30 3a 34 37 3a 30 |e Apr 29| 10:47:0|
|00000340| 30 20 31 39 38 36 0a 65 | 78 70 6f 72 74 20 50 41 |0 1986.e|xport PA|
|00000350| 54 48 3b 20 50 41 54 48 | 3d 2f 62 69 6e 3a 2f 75 |TH; PATH|=/bin:/u|
|00000360| 73 72 2f 62 69 6e 3a 24 | 50 41 54 48 0a 23 23 23 |sr/bin:$|PATH.###|
|00000370| 23 23 23 23 0a 23 20 74 | 68 65 20 66 6f 6c 6c 6f |####.# t|he follo|
|00000380| 77 69 6e 67 20 61 64 64 | 65 64 20 62 79 20 68 61 |wing add|ed by ha|
|00000390| 6e 64 20 73 69 6e 63 65 | 20 74 68 65 20 68 65 6c |nd since| the hel|
|000003a0| 70 20 66 69 6c 65 73 20 | 77 65 72 65 20 73 6f 20 |p files |were so |
|000003b0| 6c 61 72 67 65 0a 69 66 | 20 74 65 73 74 20 21 20 |large.if| test ! |
|000003c0| 2d 64 20 27 73 65 5f 68 | 27 0a 74 68 65 6e 0a 09 |-d 'se_h|'.then..|
|000003d0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 63 72 65 61 |echo sha|r: "crea|
|000003e0| 74 69 6e 67 20 64 69 72 | 65 63 74 6f 72 79 20 27 |ting dir|ectory '|
|000003f0| 73 65 5f 68 27 22 0a 09 | 6d 6b 64 69 72 20 27 73 |se_h'"..|mkdir 's|
|00000400| 65 5f 68 27 0a 66 69 0a | 65 63 68 6f 20 73 68 61 |e_h'.fi.|echo sha|
|00000410| 72 3a 20 22 65 6e 74 65 | 72 69 6e 67 20 64 69 72 |r: "ente|ring dir|
|00000420| 65 63 74 6f 72 79 20 27 | 73 65 5f 68 27 22 0a 63 |ectory '|se_h'".c|
|00000430| 64 20 27 73 65 5f 68 27 | 0a 23 23 23 23 23 23 23 |d 'se_h'|.#######|
|00000440| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 22 65 78 74 |.echo sh|ar: "ext|
|00000450| 72 61 63 74 69 6e 67 20 | 27 6f 27 22 20 27 28 36 |racting |'o'" '(6|
|00000460| 32 39 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |29 chara|cters)'.|
|00000470| 69 66 20 74 65 73 74 20 | 2d 66 20 27 6f 27 0a 74 |if test |-f 'o'.t|
|00000480| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00000490| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|000004a0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000004b0| 6c 65 20 27 6f 27 22 0a | 65 6c 73 65 0a 63 61 74 |le 'o'".|else.cat|
|000004c0| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000004d0| 27 6f 27 0a 20 20 20 20 | 20 20 20 20 6f 20 2d 2d |'o'. | o --|
|000004e0| 20 4f 70 74 69 6f 6e 0a | 0a 20 20 20 20 20 20 20 | Option.|. |
|000004f0| 20 54 68 65 20 22 6f 22 | 20 28 6f 70 74 69 6f 6e | The "o"| (option|
|00000500| 29 20 63 6f 6d 6d 61 6e | 64 20 61 6c 6c 6f 77 73 |) comman|d allows|
|00000510| 20 61 6e 79 20 20 6f 66 | 20 73 65 76 65 72 61 6c | any of| several|
|00000520| 20 76 61 72 69 61 62 6c | 65 73 20 20 74 68 61 74 | variabl|es that|
|00000530| 0a 20 20 20 20 20 20 20 | 20 61 66 66 65 63 74 20 |. | affect |
|00000540| 20 74 68 65 20 20 65 64 | 69 74 6f 72 27 73 20 20 | the ed|itor's |
|00000550| 62 65 68 61 76 69 6f 72 | 20 20 74 6f 20 20 20 62 |behavior| to b|
|00000560| 65 20 20 73 65 74 20 20 | 6f 72 20 20 74 65 73 74 |e set |or test|
|00000570| 65 64 2e 20 20 54 68 65 | 0a 20 20 20 20 20 20 20 |ed. The|. |
|00000580| 20 62 65 68 61 76 69 6f | 72 20 6f 66 20 74 68 65 | behavio|r of the|
|00000590| 20 22 6f 22 20 20 63 6f | 6d 6d 61 6e 64 20 64 65 | "o" co|mmand de|
|000005a0| 70 65 6e 64 73 20 75 70 | 6f 6e 20 77 68 61 74 20 |pends up|on what |
|000005b0| 69 73 20 20 74 79 70 65 | 64 20 20 61 66 74 65 72 |is type|d after|
|000005c0| 0a 20 20 20 20 20 20 20 | 20 74 68 65 20 22 6f 22 |. | the "o"|
|000005d0| 2e 0a 0a 20 20 20 20 20 | 20 20 20 54 6f 20 20 66 |... | To f|
|000005e0| 69 6e 64 20 6f 75 74 20 | 61 62 6f 75 74 20 20 73 |ind out |about s|
|000005f0| 70 65 63 69 66 69 63 20 | 6f 70 74 69 6f 6e 73 2c |pecific |options,|
|00000600| 20 74 79 70 65 20 22 68 | 6f 61 22 2c 20 22 68 6f | type "h|oa", "ho|
|00000610| 63 22 2c 20 22 68 6f 64 | 22 2c 0a 20 20 20 20 20 |c", "hod|",. |
|00000620| 20 20 20 22 68 6f 66 22 | 2c 20 22 68 6f 67 22 2c | "hof"|, "hog",|
|00000630| 20 22 68 6f 68 22 2c 20 | 22 68 6f 69 22 2c 20 22 | "hoh", |"hoi", "|
|00000640| 68 6f 6b 22 2c 20 22 68 | 6f 6c 22 2c 20 22 68 6f |hok", "h|ol", "ho|
|00000650| 6c 6d 22 2c 20 22 68 6f | 6d 22 2c 20 22 68 6f 70 |lm", "ho|m", "hop|
|00000660| 22 2c 0a 20 20 20 20 20 | 20 20 20 22 68 6f 73 22 |",. | "hos"|
|00000670| 2c 20 22 68 6f 74 22 2c | 20 22 68 6f 75 22 2c 20 |, "hot",| "hou", |
|00000680| 22 68 6f 76 22 2c 20 22 | 68 6f 77 22 2c 20 22 68 |"hov", "|how", "h|
|00000690| 6f 78 22 2c 20 22 68 6f | 79 22 2c 20 22 68 6f 7a |ox", "ho|y", "hoz|
|000006a0| 22 2c 20 6f 72 20 22 68 | 6f 2d 22 2e 0a 0a 20 20 |", or "h|o-"... |
|000006b0| 20 20 20 20 20 20 54 6f | 20 20 73 65 65 20 68 6f | To| see ho|
|000006c0| 77 20 74 6f 20 73 65 74 | 20 6f 70 74 69 6f 6e 73 |w to set| options|
|000006d0| 20 77 69 74 68 20 74 68 | 65 20 20 63 6f 6d 6d 61 | with th|e comma|
|000006e0| 6e 64 20 74 68 61 74 20 | 69 6e 76 6f 6b 65 73 20 |nd that |invokes |
|000006f0| 27 73 65 27 2c 0a 20 20 | 20 20 20 20 20 20 74 79 |'se',. | ty|
|00000700| 70 65 20 22 68 61 72 67 | 73 22 2e 0a 0a 20 20 20 |pe "harg|s"... |
|00000710| 20 20 20 20 20 54 6f 20 | 72 65 74 75 72 6e 20 74 | To |return t|
|00000720| 6f 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 64 69 |o the co|mmand di|
|00000730| 72 65 63 74 6f 72 79 2c | 20 74 79 70 65 20 22 68 |rectory,| type "h|
|00000740| 63 6f 6d 64 69 72 22 2e | 0a 53 48 41 52 5f 45 4f |comdir".|.SHAR_EO|
|00000750| 46 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |F.fi.ech|o shar: |
|00000760| 22 65 78 74 72 61 63 74 | 69 6e 67 20 27 6f 2d 27 |"extract|ing 'o-'|
|00000770| 22 20 27 28 38 33 30 20 | 63 68 61 72 61 63 74 65 |" '(830 |characte|
|00000780| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00000790| 27 6f 2d 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |'o-'.the|n..echo |
|000007a0| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|000007b0| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|000007c0| 69 6e 67 20 66 69 6c 65 | 20 27 6f 2d 27 22 0a 65 |ing file| 'o-'".e|
|000007d0| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|000007e0| 5f 45 4f 46 20 3e 20 27 | 6f 2d 27 0a 20 20 20 20 |_EOF > '|o-'. |
|000007f0| 20 20 20 20 6f 2d 20 20 | 2d 2d 20 4f 70 74 69 6f | o- |-- Optio|
|00000800| 6e 20 2d 20 28 64 61 73 | 68 29 0a 0a 20 20 20 20 |n - (das|h).. |
|00000810| 20 20 20 20 20 20 20 20 | 20 20 20 64 65 66 61 75 | | defau|
|00000820| 6c 74 20 72 61 6e 67 65 | 20 20 20 20 20 20 20 20 |lt range| |
|00000830| 20 20 20 20 20 73 79 6e | 74 61 78 0a 20 20 20 20 | syn|tax. |
|00000840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 2c | | 1,|
|00000850| 24 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |$ | |
|00000860| 20 20 20 20 20 20 6f 2d | 5b 6c 69 6e 65 20 6e 75 | o-|[line nu|
|00000870| 6d 62 65 72 5d 0a 0a 20 | 20 20 20 20 20 20 20 54 |mber].. | T|
|00000880| 68 65 20 22 2d 22 20 6f | 70 74 69 6f 6e 20 63 6f |he "-" o|ption co|
|00000890| 6e 74 72 6f 6c 73 20 74 | 68 65 20 70 6c 61 63 65 |ntrols t|he place|
|000008a0| 6d 65 6e 74 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |ment on |the scre|
|000008b0| 65 6e 20 6f 66 20 20 61 | 20 20 72 6f 77 0a 20 20 |en of a| row. |
|000008c0| 20 20 20 20 20 20 6f 66 | 20 64 61 73 68 65 73 2c | of| dashes,|
|000008d0| 20 77 68 69 63 68 20 6e | 6f 72 6d 61 6c 6c 79 20 | which n|ormally |
|000008e0| 69 73 20 6f 66 66 20 74 | 68 65 20 73 63 72 65 65 |is off t|he scree|
|000008f0| 6e 20 61 62 6f 76 65 20 | 74 68 65 20 74 6f 70 20 |n above |the top |
|00000900| 6c 69 6e 65 0a 20 20 20 | 20 20 20 20 20 6f 72 20 |line. | or |
|00000910| 20 68 69 64 69 6e 67 20 | 20 62 65 68 69 6e 64 20 | hiding | behind |
|00000920| 20 74 68 65 20 20 62 6f | 74 74 6f 6d 20 6c 69 6e | the bo|ttom lin|
|00000930| 65 20 6f 66 20 74 68 65 | 20 68 65 6c 70 20 64 69 |e of the| help di|
|00000940| 73 70 6c 61 79 2e 20 20 | 54 68 65 0a 20 20 20 20 |splay. |The. |
|00000950| 20 20 20 20 22 77 69 6e | 64 6f 77 22 20 74 68 72 | "win|dow" thr|
|00000960| 6f 75 67 68 20 77 68 69 | 63 68 20 79 6f 75 20 6c |ough whi|ch you l|
|00000970| 6f 6f 6b 20 61 74 20 74 | 68 65 20 65 64 69 74 20 |ook at t|he edit |
|00000980| 62 75 66 66 65 72 20 69 | 73 20 74 68 65 20 70 6f |buffer i|s the po|
|00000990| 72 2d 0a 20 20 20 20 20 | 20 20 20 74 69 6f 6e 20 |r-. | tion |
|000009a0| 6f 66 20 74 68 65 20 73 | 63 72 65 65 6e 20 42 45 |of the s|creen BE|
|000009b0| 4c 4f 57 20 74 68 65 20 | 20 72 6f 77 20 20 6f 66 |LOW the | row of|
|000009c0| 20 20 64 61 73 68 65 73 | 20 20 62 75 74 20 20 61 | dashes| but a|
|000009d0| 62 6f 76 65 20 20 74 68 | 65 0a 20 20 20 20 20 20 |bove th|e. |
|000009e0| 20 20 63 6f 6d 6d 61 6e | 64 20 20 6c 69 6e 65 20 | comman|d line |
|000009f0| 20 28 77 68 65 6e 20 20 | 69 74 20 65 78 69 73 74 | (when |it exist|
|00000a00| 73 29 20 6f 72 20 73 74 | 61 74 75 73 20 6c 69 6e |s) or st|atus lin|
|00000a10| 65 20 61 74 20 74 68 65 | 20 62 6f 74 74 6f 6d 2e |e at the| bottom.|
|00000a20| 0a 20 20 20 20 20 20 20 | 20 22 6f 2d 22 20 61 6c |. | "o-" al|
|00000a30| 6f 6e 65 20 70 75 74 73 | 20 74 68 65 20 72 6f 77 |one puts| the row|
|00000a40| 20 6f 66 20 64 61 73 68 | 65 73 20 61 62 6f 76 65 | of dash|es above|
|00000a50| 20 20 74 68 65 20 20 74 | 6f 70 20 20 6c 69 6e 65 | the t|op line|
|00000a60| 3b 20 20 22 6f 2d 22 0a | 20 20 20 20 20 20 20 20 |; "o-".| |
|00000a70| 66 6f 6c 6c 6f 77 65 64 | 20 20 62 79 20 61 20 53 |followed| by a S|
|00000a80| 49 4e 47 4c 45 20 54 45 | 52 4d 20 6c 69 6e 65 20 |INGLE TE|RM line |
|00000a90| 6e 75 6d 62 65 72 20 70 | 75 74 73 20 69 74 20 69 |number p|uts it i|
|00000aa0| 6e 20 70 6c 61 63 65 20 | 6f 66 20 74 68 65 0a 20 |n place |of the. |
|00000ab0| 20 20 20 20 20 20 20 6c | 69 6e 65 20 72 65 66 65 | l|ine refe|
|00000ac0| 72 72 65 64 20 74 6f 20 | 6f 6e 20 74 68 65 20 73 |rred to |on the s|
|00000ad0| 63 72 65 65 6e 2c 20 69 | 66 20 70 6f 73 73 69 62 |creen, i|f possib|
|00000ae0| 6c 65 2e 0a 0a 20 20 20 | 20 20 20 20 20 46 6f 72 |le... | For|
|00000af0| 20 67 65 6e 65 72 61 6c | 20 69 6e 66 6f 72 6d 61 | general| informa|
|00000b00| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 6f |tion abo|ut the o|
|00000b10| 70 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 2c 20 74 |ption co|mmand, t|
|00000b20| 79 70 65 20 22 68 6f 22 | 2e 0a 53 48 41 52 5f 45 |ype "ho"|..SHAR_E|
|00000b30| 4f 46 0a 66 69 0a 65 63 | 68 6f 20 73 68 61 72 3a |OF.fi.ec|ho shar:|
|00000b40| 20 22 65 78 74 72 61 63 | 74 69 6e 67 20 27 6f 61 | "extrac|ting 'oa|
|00000b50| 27 22 20 27 28 38 37 36 | 20 63 68 61 72 61 63 74 |'" '(876| charact|
|00000b60| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|00000b70| 20 27 6f 61 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f | 'oa'.th|en..echo|
|00000b80| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00000b90| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00000ba0| 74 69 6e 67 20 66 69 6c | 65 20 27 6f 61 27 22 0a |ting fil|e 'oa'".|
|00000bb0| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00000bc0| 52 5f 45 4f 46 20 3e 20 | 27 6f 61 27 0a 20 20 20 |R_EOF > |'oa'. |
|00000bd0| 20 20 20 20 20 6f 61 20 | 2d 2d 20 4f 70 74 69 6f | oa |-- Optio|
|00000be0| 6e 20 41 62 73 6f 6c 75 | 74 65 0a 0a 20 20 20 20 |n Absolu|te.. |
|00000bf0| 20 20 20 20 20 20 20 20 | 20 20 20 64 65 66 61 75 | | defau|
|00000c00| 6c 74 20 72 61 6e 67 65 | 20 20 20 20 20 20 20 20 |lt range| |
|00000c10| 20 20 20 20 20 73 79 6e | 74 61 78 0a 20 20 20 20 | syn|tax. |
|00000c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 31 | | 1|
|00000c30| 2c 24 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,$ | |
|00000c40| 20 20 20 20 20 20 20 6f | 61 0a 0a 20 20 20 20 20 | o|a.. |
|00000c50| 20 20 20 22 6f 61 22 20 | 74 6f 67 67 6c 65 73 20 | "oa" |toggles |
|00000c60| 74 68 65 20 41 62 73 6f | 6c 75 74 65 20 6c 69 6e |the Abso|lute lin|
|00000c70| 65 20 6e 75 6d 62 65 72 | 73 20 66 6c 61 67 2c 20 |e number|s flag, |
|00000c80| 77 68 69 63 68 20 20 64 | 65 74 65 72 6d 69 6e 65 |which d|etermine|
|00000c90| 73 0a 20 20 20 20 20 20 | 20 20 77 68 65 74 68 65 |s. | whethe|
|00000ca0| 72 20 20 74 68 65 20 6e | 75 6d 62 65 72 73 20 69 |r the n|umbers i|
|00000cb0| 6e 20 74 68 65 20 6c 65 | 66 74 20 6d 61 72 67 69 |n the le|ft margi|
|00000cc0| 6e 20 73 68 61 6c 6c 20 | 62 65 20 61 62 73 6f 6c |n shall |be absol|
|00000cd0| 75 74 65 20 6c 69 6e 65 | 0a 20 20 20 20 20 20 20 |ute line|. |
|00000ce0| 20 6e 75 6d 62 65 72 73 | 2c 20 6f 72 20 74 68 65 | numbers|, or the|
|00000cf0| 20 28 75 73 75 61 6c 6c | 79 20 63 61 70 69 74 61 | (usuall|y capita|
|00000d00| 6c 29 20 6c 65 74 74 65 | 72 73 20 74 68 61 74 20 |l) lette|rs that |
|00000d10| 72 65 66 65 72 20 74 6f | 20 20 6c 69 6e 65 73 0a |refer to| lines.|
|00000d20| 20 20 20 20 20 20 20 20 | 62 79 20 20 74 68 65 20 | |by the |
|00000d30| 20 70 6f 73 69 74 69 6f | 6e 20 20 61 74 20 20 77 | positio|n at w|
|00000d40| 68 69 63 68 20 20 74 68 | 65 79 20 20 61 72 65 20 |hich th|ey are |
|00000d50| 62 65 69 6e 67 20 64 69 | 73 70 6c 61 79 65 64 20 |being di|splayed |
|00000d60| 6f 6e 20 74 68 65 0a 20 | 20 20 20 20 20 20 20 73 |on the. | s|
|00000d70| 63 72 65 65 6e 2e 20 20 | 49 6e 20 61 6e 79 20 63 |creen. |In any c|
|00000d80| 61 73 65 2c 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ase, the| current|
|00000d90| 20 6c 69 6e 65 20 69 73 | 20 61 6c 77 61 79 73 20 | line is| always |
|00000da0| 73 68 6f 77 6e 20 61 73 | 20 20 22 2e 22 0a 20 20 |shown as| ".". |
|00000db0| 20 20 20 20 20 20 28 77 | 69 74 68 20 20 74 68 65 | (w|ith the|
|00000dc0| 20 22 2d 3e 22 20 61 72 | 72 6f 77 20 74 6f 20 6d | "->" ar|row to m|
|00000dd0| 61 6b 65 20 69 74 20 65 | 61 73 79 20 74 6f 20 66 |ake it e|asy to f|
|00000de0| 69 6e 64 29 2c 20 74 68 | 65 20 66 69 72 73 74 20 |ind), th|e first |
|00000df0| 6c 69 6e 65 0a 20 20 20 | 20 20 20 20 20 69 6e 20 |line. | in |
|00000e00| 74 68 65 20 62 75 66 66 | 65 72 20 69 73 20 6c 61 |the buff|er is la|
|00000e10| 62 65 6c 65 64 20 22 31 | 22 2c 20 61 6e 64 20 20 |beled "1|", and |
|00000e20| 74 68 65 20 20 6c 61 73 | 74 2c 20 20 22 24 22 20 |the las|t, "$" |
|00000e30| 20 28 77 68 65 6e 20 20 | 6e 6f 74 0a 20 20 20 20 | (when |not. |
|00000e40| 20 20 20 20 22 2e 22 29 | 2e 20 20 20 4c 69 6e 65 | ".")|. Line|
|00000e50| 73 20 20 63 61 6e 20 20 | 62 65 20 20 72 65 66 65 |s can |be refe|
|00000e60| 72 72 65 64 20 20 74 6f | 20 20 62 79 20 20 6c 65 |rred to| by le|
|00000e70| 74 74 65 72 20 4f 4e 4c | 59 20 77 68 65 6e 20 74 |tter ONL|Y when t|
|00000e80| 68 65 0a 20 20 20 20 20 | 20 20 20 6c 65 74 74 65 |he. | lette|
|00000e90| 72 73 20 61 70 70 65 61 | 72 20 69 6e 20 74 68 65 |rs appea|r in the|
|00000ea0| 20 6c 65 66 74 20 6d 61 | 72 67 69 6e 2e 0a 0a 20 | left ma|rgin... |
|00000eb0| 20 20 20 20 20 20 20 46 | 6f 72 20 67 65 6e 65 72 | F|or gener|
|00000ec0| 61 6c 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |al infor|mation a|
|00000ed0| 62 6f 75 74 20 74 68 65 | 20 6f 70 74 69 6f 6e 20 |bout the| option |
|00000ee0| 63 6f 6d 6d 61 6e 64 2c | 20 74 79 70 65 20 22 68 |command,| type "h|
|00000ef0| 6f 22 2e 0a 20 20 20 20 | 20 20 20 20 53 65 65 20 |o".. | See |
|00000f00| 61 6c 73 6f 20 22 68 6c | 6e 22 20 66 6f 72 20 68 |also "hl|n" for h|
|00000f10| 6f 77 20 6c 69 6e 65 73 | 20 63 61 6e 20 62 65 20 |ow lines| can be |
|00000f20| 72 65 66 65 72 72 65 64 | 20 74 6f 20 69 6e 20 63 |referred| to in c|
|00000f30| 6f 6d 6d 61 6e 64 73 2e | 0a 53 48 41 52 5f 45 4f |ommands.|.SHAR_EO|
|00000f40| 46 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |F.fi.ech|o shar: |
|00000f50| 22 65 78 74 72 61 63 74 | 69 6e 67 20 27 6f 63 27 |"extract|ing 'oc'|
|00000f60| 22 20 27 28 37 30 36 20 | 63 68 61 72 61 63 74 65 |" '(706 |characte|
|00000f70| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00000f80| 27 6f 63 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |'oc'.the|n..echo |
|00000f90| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00000fa0| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00000fb0| 69 6e 67 20 66 69 6c 65 | 20 27 6f 63 27 22 0a 65 |ing file| 'oc'".e|
|00000fc0| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|00000fd0| 5f 45 4f 46 20 3e 20 27 | 6f 63 27 0a 20 20 20 20 |_EOF > '|oc'. |
|00000fe0| 20 20 20 20 6f 63 20 2d | 2d 20 4f 70 74 69 6f 6e | oc -|- Option|
|00000ff0| 20 43 61 73 65 0a 0a 20 | 20 20 20 20 20 20 20 20 | Case.. | |
|00001000| 20 20 20 20 20 20 64 65 | 66 61 75 6c 74 20 72 61 | de|fault ra|
|00001010| 6e 67 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |nge | |
|00001020| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00001030| 20 20 20 20 20 20 20 20 | 20 20 31 2c 24 20 20 20 | | 1,$ |
|00001040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001050| 20 20 6f 63 0a 0a 20 20 | 20 20 20 20 20 20 54 68 | oc.. | Th|
|00001060| 65 20 22 63 22 20 28 63 | 61 73 65 29 20 6f 70 74 |e "c" (c|ase) opt|
|00001070| 69 6f 6e 20 74 6f 67 67 | 6c 65 73 20 74 68 65 20 |ion togg|les the |
|00001080| 73 61 6d 65 20 63 61 73 | 65 20 6d 61 70 70 69 6e |same cas|e mappin|
|00001090| 67 20 66 6c 61 67 20 20 | 74 68 61 74 0a 20 20 20 |g flag |that. |
|000010a0| 20 20 20 20 20 69 73 20 | 20 74 6f 67 67 6c 65 64 | is | toggled|
|000010b0| 20 20 62 79 20 74 68 65 | 20 43 54 52 4c 2d 5a 20 | by the| CTRL-Z |
|000010c0| 63 6f 6e 74 72 6f 6c 20 | 63 68 61 72 61 63 74 65 |control |characte|
|000010d0| 72 2c 20 62 75 74 20 61 | 6c 73 6f 20 63 68 61 6e |r, but a|lso chan|
|000010e0| 67 65 73 0a 20 20 20 20 | 20 20 20 20 74 68 65 20 |ges. | the |
|000010f0| 6d 61 72 67 69 6e 61 6c | 20 6c 69 6e 65 20 6c 65 |marginal| line le|
|00001100| 74 74 65 72 73 20 74 6f | 20 6c 6f 77 65 72 20 63 |tters to| lower c|
|00001110| 61 73 65 20 28 6f 72 20 | 62 61 63 6b 20 74 6f 20 |ase (or |back to |
|00001120| 75 70 70 65 72 29 2c 20 | 73 6f 0a 20 20 20 20 20 |upper), |so. |
|00001130| 20 20 20 74 68 61 74 20 | 74 79 70 69 6e 67 20 61 | that |typing a|
|00001140| 20 73 68 69 66 74 65 64 | 20 6c 65 74 74 65 72 20 | shifted| letter |
|00001150| 77 69 6c 6c 20 73 74 69 | 6c 6c 20 72 65 66 65 72 |will sti|ll refer|
|00001160| 20 74 6f 20 61 20 20 6c | 69 6e 65 2c 20 20 61 6e | to a l|ine, an|
|00001170| 64 0a 20 20 20 20 20 20 | 20 20 74 79 70 69 6e 67 |d. | typing|
|00001180| 20 61 6e 20 75 6e 73 68 | 69 66 74 65 64 20 6c 65 | an unsh|ifted le|
|00001190| 74 74 65 72 20 77 69 6c | 6c 20 64 6f 20 66 6f 72 |tter wil|l do for|
|000011a0| 20 61 20 63 6f 6d 6d 61 | 6e 64 20 6c 65 74 74 65 | a comma|nd lette|
|000011b0| 72 2e 20 20 54 68 69 73 | 0a 20 20 20 20 20 20 20 |r. This|. |
|000011c0| 20 69 73 20 20 75 73 65 | 66 75 6c 20 66 6f 72 20 | is use|ful for |
|000011d0| 68 61 6e 64 6c 69 6e 67 | 20 6c 61 72 67 65 20 61 |handling| large a|
|000011e0| 6d 6f 75 6e 74 73 20 6f | 66 20 75 70 70 65 72 20 |mounts o|f upper |
|000011f0| 63 61 73 65 20 74 65 78 | 74 2c 20 73 75 63 68 0a |case tex|t, such.|
|00001200| 20 20 20 20 20 20 20 20 | 61 73 20 46 6f 72 74 72 | |as Fortr|
|00001210| 61 6e 20 70 72 6f 67 72 | 61 6d 73 2e 0a 0a 20 20 |an progr|ams... |
|00001220| 20 20 20 20 20 20 46 6f | 72 20 67 65 6e 65 72 61 | Fo|r genera|
|00001230| 6c 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |l inform|ation ab|
|00001240| 6f 75 74 20 74 68 65 20 | 6f 70 74 69 6f 6e 20 63 |out the |option c|
|00001250| 6f 6d 6d 61 6e 64 2c 20 | 74 79 70 65 20 22 68 6f |ommand, |type "ho|
|00001260| 22 2e 0a 20 20 20 20 20 | 20 20 20 53 65 65 20 61 |".. | See a|
|00001270| 6c 73 6f 20 22 68 6f 61 | 22 2e 0a 20 20 20 20 20 |lso "hoa|".. |
|00001280| 20 20 20 46 6f 72 74 72 | 61 6e 65 72 73 20 73 65 | Fortr|aners se|
|00001290| 65 20 61 6c 73 6f 20 22 | 68 6f 66 22 2e 0a 53 48 |e also "|hof"..SH|
|000012a0| 41 52 5f 45 4f 46 0a 66 | 69 0a 65 63 68 6f 20 73 |AR_EOF.f|i.echo s|
|000012b0| 68 61 72 3a 20 22 65 78 | 74 72 61 63 74 69 6e 67 |har: "ex|tracting|
|000012c0| 20 27 6f 64 27 22 20 27 | 28 37 38 35 20 63 68 61 | 'od'" '|(785 cha|
|000012d0| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|000012e0| 74 20 2d 66 20 27 6f 64 | 27 0a 74 68 65 6e 0a 09 |t -f 'od|'.then..|
|000012f0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|00001300| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00001310| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 6f |existing| file 'o|
|00001320| 64 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |d'".else|.cat << |
|00001330| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 6f 64 27 |\SHAR_EO|F > 'od'|
|00001340| 0a 20 20 20 20 20 20 20 | 20 6f 64 20 2d 2d 20 4f |. | od -- O|
|00001350| 70 74 69 6f 6e 20 44 65 | 6c 65 74 65 0a 0a 20 20 |ption De|lete.. |
|00001360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 65 66 | | def|
|00001370| 61 75 6c 74 20 72 61 6e | 67 65 20 20 20 20 20 20 |ault ran|ge |
|00001380| 20 20 20 20 20 20 20 73 | 79 6e 74 61 78 0a 20 20 | s|yntax. |
|00001390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013a0| 31 2c 24 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1,$ | |
|000013b0| 20 20 20 20 20 20 20 20 | 6f 64 5b 3c 7c 3e 5d 0a | |od[<|>].|
|000013c0| 0a 20 20 20 20 20 20 20 | 20 54 68 65 20 22 64 22 |. | The "d"|
|000013d0| 20 6f 70 74 69 6f 6e 20 | 69 73 20 66 6f 72 20 44 | option |is for D|
|000013e0| 65 6c 65 74 65 20 64 69 | 72 65 63 74 69 6f 6e 2e |elete di|rection.|
|000013f0| 20 20 54 79 70 69 6e 67 | 20 22 6f 64 3c 22 20 66 | Typing| "od<" f|
|00001400| 69 78 65 73 20 69 74 0a | 20 20 20 20 20 20 20 20 |ixes it.| |
|00001410| 73 6f 20 20 74 68 61 74 | 20 20 61 66 74 65 72 20 |so that| after |
|00001420| 20 79 6f 75 20 20 67 69 | 76 65 20 20 61 20 22 64 | you gi|ve a "d|
|00001430| 22 20 63 6f 6d 6d 61 6e | 64 2c 20 74 68 65 20 6c |" comman|d, the l|
|00001440| 69 6e 65 20 42 45 46 4f | 52 45 20 74 68 65 0a 20 |ine BEFO|RE the. |
|00001450| 20 20 20 20 20 20 20 67 | 72 6f 75 70 20 6f 66 20 | g|roup of |
|00001460| 6c 69 6e 65 73 20 64 65 | 6c 65 74 65 64 20 62 65 |lines de|leted be|
|00001470| 63 6f 6d 65 73 20 74 68 | 65 20 63 75 72 72 65 6e |comes th|e curren|
|00001480| 74 20 6c 69 6e 65 20 20 | 28 2e 29 2e 20 20 20 54 |t line |(.). T|
|00001490| 79 70 69 6e 67 0a 20 20 | 20 20 20 20 20 20 22 6f |yping. | "o|
|000014a0| 64 3e 22 20 20 72 65 73 | 65 74 73 20 20 74 68 65 |d>" res|ets the|
|000014b0| 20 20 6e 6f 72 6d 61 6c | 20 62 65 68 61 76 69 6f | normal| behavio|
|000014c0| 72 2c 20 69 6e 20 77 68 | 69 63 68 20 74 68 65 20 |r, in wh|ich the |
|000014d0| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 0a 20 20 20 |current |line. |
|000014e0| 20 20 20 20 20 70 6f 69 | 6e 74 65 72 20 69 73 20 | poi|nter is |
|000014f0| 61 6c 77 61 79 73 20 70 | 6f 73 69 74 69 6f 6e 65 |always p|ositione|
|00001500| 64 20 41 46 54 45 52 20 | 74 68 65 20 67 72 6f 75 |d AFTER |the grou|
|00001510| 70 20 6f 66 20 6c 69 6e | 65 73 20 20 64 65 6c 65 |p of lin|es dele|
|00001520| 74 65 64 0a 20 20 20 20 | 20 20 20 20 62 79 20 20 |ted. | by |
|00001530| 74 68 65 20 22 64 22 20 | 63 6f 6d 6d 61 6e 64 2c |the "d" |command,|
|00001540| 20 69 66 20 70 6f 73 73 | 69 62 6c 65 20 28 44 65 | if poss|ible (De|
|00001550| 6c 65 74 69 6e 67 20 74 | 68 65 20 6c 61 73 74 20 |leting t|he last |
|00001560| 6c 69 6e 65 20 6d 61 6b | 65 73 0a 20 20 20 20 20 |line mak|es. |
|00001570| 20 20 20 74 68 65 20 6e | 65 77 20 6c 61 73 74 20 | the n|ew last |
|00001580| 20 6c 69 6e 65 20 20 74 | 68 65 20 20 63 75 72 72 | line t|he curr|
|00001590| 65 6e 74 20 20 6c 69 6e | 65 29 2e 20 20 20 54 79 |ent lin|e). Ty|
|000015a0| 70 69 6e 67 20 20 22 6f | 64 22 20 20 61 6c 6f 6e |ping "o|d" alon|
|000015b0| 65 0a 20 20 20 20 20 20 | 20 20 71 75 65 72 69 65 |e. | querie|
|000015c0| 73 20 20 74 68 65 20 20 | 64 65 6c 65 74 65 20 20 |s the |delete |
|000015d0| 64 69 72 65 63 74 69 6f | 6e 20 66 6c 61 67 2c 20 |directio|n flag, |
|000015e0| 63 61 75 73 69 6e 67 20 | 22 3e 22 20 6f 72 20 22 |causing |">" or "|
|000015f0| 3c 22 20 74 6f 20 62 65 | 0a 20 20 20 20 20 20 20 |<" to be|. |
|00001600| 20 64 69 73 70 6c 61 79 | 65 64 2e 0a 0a 20 20 20 | display|ed... |
|00001610| 20 20 20 20 20 46 6f 72 | 20 67 65 6e 65 72 61 6c | For| general|
|00001620| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f | informa|tion abo|
|00001630| 75 74 20 74 68 65 20 6f | 70 74 69 6f 6e 20 63 6f |ut the o|ption co|
|00001640| 6d 6d 61 6e 64 2c 20 74 | 79 70 65 20 22 68 6f 22 |mmand, t|ype "ho"|
|00001650| 2e 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 65 63 |..SHAR_E|OF.fi.ec|
|00001660| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|00001670| 74 69 6e 67 20 27 6f 66 | 27 22 20 27 28 35 37 39 |ting 'of|'" '(579|
|00001680| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 69 66 | charact|ers)'.if|
|00001690| 20 74 65 73 74 20 2d 66 | 20 27 6f 66 27 0a 74 68 | test -f| 'of'.th|
|000016a0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|000016b0| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|000016c0| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|000016d0| 65 20 27 6f 66 27 22 0a | 65 6c 73 65 0a 63 61 74 |e 'of'".|else.cat|
|000016e0| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000016f0| 27 6f 66 27 0a 0a 20 20 | 20 20 20 20 20 20 6f 66 |'of'.. | of|
|00001700| 20 2d 2d 20 4f 70 74 69 | 6f 6e 20 46 6f 72 74 72 | -- Opti|on Fortr|
|00001710| 61 6e 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |an.. | |
|00001720| 20 20 20 64 65 66 61 75 | 6c 74 20 72 61 6e 67 65 | defau|lt range|
|00001730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 73 79 6e | | syn|
|00001740| 74 61 78 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |tax. | |
|00001750| 20 20 20 20 20 20 31 2c | 24 20 20 20 20 20 20 20 | 1,|$ |
|00001760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o|
|00001770| 66 0a 0a 20 20 20 20 20 | 20 20 20 54 79 70 69 6e |f.. | Typin|
|00001780| 67 20 20 22 6f 66 22 20 | 20 74 75 72 6e 73 20 20 |g "of" | turns |
|00001790| 6f 6e 20 20 61 20 20 70 | 61 63 6b 61 67 65 20 20 |on a p|ackage |
|000017a0| 6f 66 20 20 6f 70 74 69 | 6f 6e 73 20 20 63 6f 6e |of opti|ons con|
|000017b0| 73 69 64 65 72 65 64 0a | 20 20 20 20 20 20 20 20 |sidered.| |
|000017c0| 63 6f 6e 76 65 6e 69 65 | 6e 74 20 66 6f 72 20 65 |convenie|nt for e|
|000017d0| 64 69 74 69 6e 67 20 46 | 6f 72 74 72 61 6e 2e 20 |diting F|ortran. |
|000017e0| 20 54 68 65 20 77 61 72 | 6e 69 6e 67 20 63 6f 6c | The war|ning col|
|000017f0| 75 6d 6e 20 20 69 73 20 | 20 73 65 74 0a 20 20 20 |umn is | set. |
|00001800| 20 20 20 20 20 74 6f 20 | 20 37 32 2c 20 20 61 6e | to | 72, an|
|00001810| 64 20 74 61 62 20 73 70 | 61 63 69 6e 67 20 69 73 |d tab sp|acing is|
|00001820| 20 73 65 74 20 74 6f 20 | 37 20 2b 33 20 73 6f 20 | set to |7 +3 so |
|00001830| 74 68 61 74 20 74 61 62 | 62 69 6e 67 20 6f 6e 63 |that tab|bing onc|
|00001840| 65 0a 20 20 20 20 20 20 | 20 20 67 65 74 73 20 79 |e. | gets y|
|00001850| 6f 75 20 74 6f 20 63 6f | 6c 75 6d 6e 20 37 2e 20 |ou to co|lumn 7. |
|00001860| 20 20 54 61 62 20 20 65 | 78 70 61 6e 73 69 6f 6e | Tab e|xpansion|
|00001870| 20 20 69 73 20 20 61 6c | 73 6f 20 20 74 75 72 6e | is al|so turn|
|00001880| 65 64 20 20 6f 6e 0a 20 | 20 20 20 20 20 20 20 28 |ed on. | (|
|00001890| 58 54 41 42 53 29 2e 20 | 20 20 54 6f 20 20 75 6e |XTABS). | To un|
|000018a0| 64 6f 20 20 22 6f 66 22 | 20 69 74 20 69 73 20 6e |do "of"| it is n|
|000018b0| 65 63 65 73 73 61 72 79 | 20 74 6f 20 74 79 70 65 |ecessary| to type|
|000018c0| 20 22 6f 74 2b 33 22 20 | 61 6e 64 0a 20 20 20 20 | "ot+3" |and. |
|000018d0| 20 20 20 20 22 6f 78 22 | 2e 0a 0a 20 20 20 20 20 | "ox"|... |
|000018e0| 20 20 20 46 6f 72 20 67 | 65 6e 65 72 61 6c 20 69 | For g|eneral i|
|000018f0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00001900| 20 74 68 65 20 6f 70 74 | 69 6f 6e 20 63 6f 6d 6d | the opt|ion comm|
|00001910| 61 6e 64 2c 20 74 79 70 | 65 20 22 68 6f 22 2e 0a |and, typ|e "ho"..|
|00001920| 20 20 20 20 20 20 20 20 | 53 65 65 20 61 6c 73 6f | |See also|
|00001930| 20 22 6f 61 22 2e 0a 0a | 53 48 41 52 5f 45 4f 46 | "oa"...|SHAR_EOF|
|00001940| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 22 |.fi.echo| shar: "|
|00001950| 65 78 74 72 61 63 74 69 | 6e 67 20 27 6f 67 27 22 |extracti|ng 'og'"|
|00001960| 20 27 28 37 31 39 20 63 | 68 61 72 61 63 74 65 72 | '(719 c|haracter|
|00001970| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00001980| 6f 67 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |og'.then|..echo s|
|00001990| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|000019a0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|000019b0| 6e 67 20 66 69 6c 65 20 | 27 6f 67 27 22 0a 65 6c |ng file |'og'".el|
|000019c0| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|000019d0| 45 4f 46 20 3e 20 27 6f | 67 27 0a 0a 20 20 20 20 |EOF > 'o|g'.. |
|000019e0| 20 20 20 20 6f 67 20 2d | 2d 20 4f 70 74 69 6f 6e | og -|- Option|
|000019f0| 20 47 6c 6f 62 61 6c 0a | 0a 20 20 20 20 20 20 20 | Global.|. |
|00001a00| 20 20 20 20 20 20 20 20 | 64 65 66 61 75 6c 74 20 | |default |
|00001a10| 72 61 6e 67 65 20 20 20 | 20 20 20 20 20 20 20 20 |range | |
|00001a20| 20 20 73 79 6e 74 61 78 | 0a 20 20 20 20 20 20 20 | syntax|. |
|00001a30| 20 20 20 20 20 20 20 20 | 20 20 20 31 2c 24 20 20 | | 1,$ |
|00001a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a50| 20 20 20 6f 67 0a 0a 20 | 20 20 20 20 20 20 20 54 | og.. | T|
|00001a60| 68 65 20 22 67 22 20 6f | 70 74 69 6f 6e 20 63 6f |he "g" o|ption co|
|00001a70| 6e 74 72 6f 6c 73 20 74 | 68 65 20 62 65 68 61 76 |ntrols t|he behav|
|00001a80| 69 6f 72 20 6f 66 20 74 | 68 65 20 53 75 62 73 74 |ior of t|he Subst|
|00001a90| 69 74 75 74 65 20 20 63 | 6f 6d 6d 61 6e 64 0a 20 |itute c|ommand. |
|00001aa0| 20 20 20 20 20 20 20 77 | 68 65 6e 20 69 74 20 20 | w|hen it |
|00001ab0| 69 73 20 75 6e 64 65 72 | 20 74 68 65 20 63 6f 6e |is under| the con|
|00001ac0| 74 72 6f 6c 20 6f 66 20 | 61 20 47 6c 6f 62 61 6c |trol of |a Global|
|00001ad0| 20 20 63 6f 6d 6d 61 6e | 64 2e 20 20 49 6e 69 74 | comman|d. Init|
|00001ae0| 69 61 6c 6c 79 2c 0a 20 | 20 20 20 20 20 20 20 69 |ially,. | i|
|00001af0| 66 20 61 20 73 75 62 73 | 74 69 74 75 74 65 20 69 |f a subs|titute i|
|00001b00| 6e 73 69 64 65 20 61 20 | 67 6c 6f 62 61 6c 20 63 |nside a |global c|
|00001b10| 6f 6d 6d 61 6e 64 20 66 | 61 69 6c 73 2c 20 73 65 |ommand f|ails, se|
|00001b20| 20 77 69 6c 6c 20 6e 6f | 74 20 63 6f 6e 2d 0a 20 | will no|t con-. |
|00001b30| 20 20 20 20 20 20 20 74 | 69 6e 75 65 20 77 69 74 | t|inue wit|
|00001b40| 68 20 20 74 68 65 20 72 | 65 73 74 20 6f 66 20 74 |h the r|est of t|
|00001b50| 68 65 20 6c 69 6e 65 73 | 20 20 77 68 69 63 68 20 |he lines| which |
|00001b60| 6d 69 67 68 74 20 73 75 | 63 63 65 65 64 2e 20 49 |might su|cceed. I|
|00001b70| 66 20 22 6f 67 22 0a 20 | 20 20 20 20 20 20 20 69 |f "og". | i|
|00001b80| 73 20 67 69 76 65 6e 2c | 20 74 68 65 6e 20 20 74 |s given,| then t|
|00001b90| 68 65 20 67 6c 6f 62 61 | 6c 20 73 75 62 73 74 69 |he globa|l substi|
|00001ba0| 74 75 74 65 20 20 77 69 | 6c 6c 20 63 6f 6e 74 69 |tute wi|ll conti|
|00001bb0| 6e 75 65 2c 20 61 6e 64 | 20 6c 69 6e 65 73 0a 20 |nue, and| lines. |
|00001bc0| 20 20 20 20 20 20 20 77 | 68 69 63 68 20 66 61 69 | w|hich fai|
|00001bd0| 6c 65 64 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 |led will| not be |
|00001be0| 61 66 66 65 63 74 65 64 | 2e 20 53 75 63 63 65 73 |affected|. Succes|
|00001bf0| 69 76 65 20 22 6f 67 22 | 20 63 6f 6d 6d 61 6e 64 |ive "og"| command|
|00001c00| 73 20 77 69 6c 6c 0a 20 | 20 20 20 20 20 20 20 74 |s will. | t|
|00001c10| 6f 67 67 6c 65 20 74 68 | 69 73 20 62 65 68 61 76 |oggle th|is behav|
|00001c20| 69 6f 72 2e 20 20 41 6e | 20 65 78 70 6c 61 6e 61 |ior. An| explana|
|00001c30| 74 6f 72 79 20 6d 65 73 | 73 61 67 65 20 69 73 20 |tory mes|sage is |
|00001c40| 70 6c 61 63 65 64 20 69 | 6e 20 20 74 68 65 0a 20 |placed i|n the. |
|00001c50| 20 20 20 20 20 20 20 73 | 74 61 74 75 73 20 6c 69 | s|tatus li|
|00001c60| 6e 65 2e 0a 0a 20 20 20 | 20 20 20 20 20 46 6f 72 |ne... | For|
|00001c70| 20 67 65 6e 65 72 61 6c | 20 69 6e 66 6f 72 6d 61 | general| informa|
|00001c80| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 6f |tion abo|ut the o|
|00001c90| 70 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 2c 20 74 |ption co|mmand, t|
|00001ca0| 79 70 65 20 22 68 6f 22 | 2e 0a 53 48 41 52 5f 45 |ype "ho"|..SHAR_E|
|00001cb0| 4f 46 0a 66 69 0a 65 63 | 68 6f 20 73 68 61 72 3a |OF.fi.ec|ho shar:|
|00001cc0| 20 22 65 78 74 72 61 63 | 74 69 6e 67 20 27 6f 68 | "extrac|ting 'oh|
|00001cd0| 27 22 20 27 28 37 37 34 | 20 63 68 61 72 61 63 74 |'" '(774| charact|
|00001ce0| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|00001cf0| 20 27 6f 68 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f | 'oh'.th|en..echo|
|00001d00| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00001d10| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00001d20| 74 69 6e 67 20 66 69 6c | 65 20 27 6f 68 27 22 0a |ting fil|e 'oh'".|
|00001d30| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00001d40| 52 5f 45 4f 46 20 3e 20 | 27 6f 68 27 0a 0a 20 20 |R_EOF > |'oh'.. |
|00001d50| 20 20 20 20 20 20 6f 68 | 20 2d 2d 20 4f 70 74 69 | oh| -- Opti|
|00001d60| 6f 6e 20 48 61 72 64 77 | 61 72 65 20 49 6e 73 65 |on Hardw|are Inse|
|00001d70| 72 74 2f 44 65 6c 65 74 | 65 0a 0a 20 20 20 20 20 |rt/Delet|e.. |
|00001d80| 20 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 | | default|
|00001d90| 20 72 61 6e 67 65 20 20 | 20 20 20 20 20 20 20 20 | range | |
|00001da0| 20 20 20 73 79 6e 74 61 | 78 0a 20 20 20 20 20 20 | synta|x. |
|00001db0| 20 20 20 20 20 20 20 20 | 20 20 20 31 2c 24 20 20 | | 1,$ |
|00001dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001dd0| 20 20 20 6f 68 0a 0a 20 | 20 20 20 20 20 20 20 54 | oh.. | T|
|00001de0| 68 65 20 20 20 22 68 22 | 20 20 20 6f 70 74 69 6f |he "h"| optio|
|00001df0| 6e 20 20 20 63 6f 6e 74 | 72 6f 6c 73 20 20 20 74 |n cont|rols t|
|00001e00| 68 65 20 20 75 73 65 20 | 20 6f 66 20 20 68 61 72 |he use | of har|
|00001e10| 64 77 61 72 65 20 20 6c | 69 6e 65 0a 20 20 20 20 |dware l|ine. |
|00001e20| 20 20 20 20 69 6e 73 65 | 72 74 2f 64 65 6c 65 74 | inse|rt/delet|
|00001e30| 65 20 6f 6e 20 74 65 72 | 6d 69 6e 61 6c 73 20 74 |e on ter|minals t|
|00001e40| 68 61 74 20 68 61 76 65 | 20 20 74 68 61 74 20 20 |hat have| that |
|00001e50| 63 61 70 61 62 69 6c 69 | 74 79 2e 20 20 20 42 79 |capabili|ty. By|
|00001e60| 0a 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 |. | default|
|00001e70| 2c 20 20 6c 69 6e 65 20 | 20 69 6e 73 65 72 74 2f |, line | insert/|
|00001e80| 64 65 6c 65 74 65 20 77 | 69 6c 6c 20 62 65 20 75 |delete w|ill be u|
|00001e90| 73 65 64 20 69 66 20 61 | 76 61 69 6c 61 62 6c 65 |sed if a|vailable|
|00001ea0| 2e 20 20 49 74 0a 20 20 | 20 20 20 20 20 20 69 73 |. It. | is|
|00001eb0| 20 6f 63 63 61 73 69 6f | 6e 61 6c 6c 79 20 75 73 | occasio|nally us|
|00001ec0| 65 66 75 6c 20 74 6f 20 | 74 75 72 6e 20 74 68 69 |eful to |turn thi|
|00001ed0| 73 20 6f 70 74 69 6f 6e | 20 20 6f 66 66 20 20 77 |s option| off w|
|00001ee0| 68 65 6e 20 20 75 73 69 | 6e 67 0a 20 20 20 20 20 |hen usi|ng. |
|00001ef0| 20 20 20 74 68 65 20 65 | 64 69 74 6f 72 20 6f 6e | the e|ditor on|
|00001f00| 20 61 20 74 65 72 6d 69 | 6e 61 6c 20 77 68 69 63 | a termi|nal whic|
|00001f10| 68 20 63 61 6e 27 74 20 | 6b 65 65 70 20 75 70 2c |h can't |keep up,|
|00001f20| 20 6f 72 20 69 66 20 74 | 68 65 20 63 6f 6d 2d 0a | or if t|he com-.|
|00001f30| 20 20 20 20 20 20 20 20 | 6d 75 6e 69 63 61 74 69 | |municati|
|00001f40| 6f 6e 73 20 20 6c 69 6e | 65 73 20 6d 61 79 20 62 |ons lin|es may b|
|00001f50| 65 20 73 63 72 61 6d 62 | 6c 69 6e 67 20 74 68 65 |e scramb|ling the|
|00001f60| 20 63 6f 6e 74 72 6f 6c | 20 63 68 61 72 61 63 74 | control| charact|
|00001f70| 65 72 73 2e 0a 20 20 20 | 20 20 20 20 20 45 61 63 |ers.. | Eac|
|00001f80| 68 20 73 75 63 63 65 73 | 73 69 76 65 20 22 6f 68 |h succes|sive "oh|
|00001f90| 22 20 6d 65 72 65 6c 79 | 20 20 74 6f 67 67 6c 65 |" merely| toggle|
|00001fa0| 73 20 20 61 20 20 73 77 | 69 74 63 68 20 20 77 69 |s a sw|itch wi|
|00001fb0| 74 68 69 6e 20 20 74 68 | 65 0a 20 20 20 20 20 20 |thin th|e. |
|00001fc0| 20 20 65 64 69 74 6f 72 | 2e 20 20 20 41 6e 20 20 | editor|. An |
|00001fd0| 65 78 70 6c 61 6e 61 74 | 6f 72 79 20 20 6d 65 73 |explanat|ory mes|
|00001fe0| 73 61 67 65 20 20 69 73 | 20 20 70 6c 61 63 65 64 |sage is| placed|
|00001ff0| 20 69 6e 20 74 68 65 20 | 73 74 61 74 75 73 0a 20 | in the |status. |
|00002000| 20 20 20 20 20 20 20 6c | 69 6e 65 2e 0a 0a 20 20 | l|ine... |
|00002010| 20 20 20 20 20 20 46 6f | 72 20 67 65 6e 65 72 61 | Fo|r genera|
|00002020| 6c 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |l inform|ation ab|
|00002030| 6f 75 74 20 74 68 65 20 | 6f 70 74 69 6f 6e 20 63 |out the |option c|
|00002040| 6f 6d 6d 61 6e 64 2c 20 | 74 79 70 65 20 22 68 6f |ommand, |type "ho|
|00002050| 22 2e 0a 53 48 41 52 5f | 45 4f 46 0a 66 69 0a 65 |"..SHAR_|EOF.fi.e|
|00002060| 63 68 6f 20 73 68 61 72 | 3a 20 22 65 78 74 72 61 |cho shar|: "extra|
|00002070| 63 74 69 6e 67 20 27 6f | 69 27 22 20 27 28 35 33 |cting 'o|i'" '(53|
|00002080| 37 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |7 charac|ters)'.i|
|00002090| 66 20 74 65 73 74 20 2d | 66 20 27 6f 69 27 0a 74 |f test -|f 'oi'.t|
|000020a0| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000020b0| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|000020c0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000020d0| 6c 65 20 27 6f 69 27 22 | 0a 65 6c 73 65 0a 63 61 |le 'oi'"|.else.ca|
|000020e0| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|000020f0| 20 27 6f 69 27 0a 0a 20 | 20 20 20 20 20 20 20 6f | 'oi'.. | o|
|00002100| 69 20 2d 2d 20 4f 70 74 | 69 6f 6e 20 49 6e 64 65 |i -- Opt|ion Inde|
|00002110| 6e 74 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |nt.. | |
|00002120| 20 20 20 20 64 65 66 61 | 75 6c 74 20 72 61 6e 67 | defa|ult rang|
|00002130| 65 20 20 20 20 20 20 20 | 20 20 20 20 73 79 6e 74 |e | synt|
|00002140| 61 78 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ax. | |
|00002150| 20 20 20 20 20 20 20 31 | 2c 20 24 20 20 20 20 20 | 1|, $ |
|00002160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6f 69 5b | | oi[|
|00002170| 61 20 7c 20 3c 69 6e 64 | 65 6e 74 3e 5d 0a 0a 20 |a | <ind|ent>].. |
|00002180| 20 20 20 20 20 20 20 22 | 6f 69 22 20 73 65 6c 65 | "|oi" sele|
|00002190| 63 74 73 20 74 68 65 20 | 69 6e 64 65 6e 74 20 76 |cts the |indent v|
|000021a0| 61 6c 75 65 20 66 6f 72 | 20 6c 69 6e 65 73 20 20 |alue for| lines |
|000021b0| 69 6e 73 65 72 74 65 64 | 20 77 69 74 68 20 22 61 |inserted| with "a|
|000021c0| 22 20 61 6e 64 0a 20 20 | 20 20 20 20 20 20 22 69 |" and. | "i|
|000021d0| 22 20 63 6f 6d 6d 61 6e | 64 73 20 28 69 6e 69 74 |" comman|ds (init|
|000021e0| 69 61 6c 6c 79 20 31 29 | 2e 20 22 61 22 20 73 65 |ially 1)|. "a" se|
|000021f0| 6c 65 63 74 73 20 61 75 | 74 6f 2d 69 6e 64 65 6e |lects au|to-inden|
|00002200| 74 20 77 68 69 63 68 20 | 73 65 74 73 0a 20 20 20 |t which |sets. |
|00002210| 20 20 20 20 20 74 68 65 | 20 69 6e 64 65 6e 74 20 | the| indent |
|00002220| 74 6f 20 74 68 65 20 76 | 61 6c 75 65 20 20 77 68 |to the v|alue wh|
|00002230| 69 63 68 20 65 71 75 61 | 6c 73 20 74 68 65 20 69 |ich equa|ls the i|
|00002240| 6e 64 65 6e 74 20 6f 66 | 20 74 68 65 20 70 72 65 |ndent of| the pre|
|00002250| 76 69 2d 0a 20 20 20 20 | 20 20 20 20 6f 75 73 20 |vi-. | ous |
|00002260| 6c 69 6e 65 2e 20 20 49 | 66 20 20 6e 65 69 74 68 |line. I|f neith|
|00002270| 65 72 20 20 22 61 22 20 | 6e 6f 72 20 20 22 3c 69 |er "a" |nor "<i|
|00002280| 6e 64 65 6e 74 3e 22 20 | 69 73 20 20 73 70 65 63 |ndent>" |is spec|
|00002290| 69 66 69 65 64 2c 20 74 | 68 65 0a 20 20 20 20 20 |ified, t|he. |
|000022a0| 20 20 20 63 75 72 72 65 | 6e 74 20 76 61 6c 75 65 | curre|nt value|
|000022b0| 20 6f 66 20 69 6e 64 65 | 6e 74 20 69 73 20 64 69 | of inde|nt is di|
|000022c0| 73 70 6c 61 79 65 64 2e | 0a 0a 20 20 20 20 20 20 |splayed.|.. |
|000022d0| 20 20 46 6f 72 20 67 65 | 6e 65 72 61 6c 20 69 6e | For ge|neral in|
|000022e0| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about |
|000022f0| 74 68 65 20 6f 70 74 69 | 6f 6e 20 63 6f 6d 6d 61 |the opti|on comma|
|00002300| 6e 64 2c 20 74 79 70 65 | 20 22 68 6f 22 2e 0a 53 |nd, type| "ho"..S|
|00002310| 48 41 52 5f 45 4f 46 0a | 66 69 0a 65 63 68 6f 20 |HAR_EOF.|fi.echo |
|00002320| 73 68 61 72 3a 20 22 65 | 78 74 72 61 63 74 69 6e |shar: "e|xtractin|
|00002330| 67 20 27 6f 6b 27 22 20 | 27 28 34 36 30 20 63 68 |g 'ok'" |'(460 ch|
|00002340| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|00002350| 73 74 20 2d 66 20 27 6f | 6b 27 0a 74 68 65 6e 0a |st -f 'o|k'.then.|
|00002360| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00002370| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00002380| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|00002390| 6f 6b 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |ok'".els|e.cat <<|
|000023a0| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 6f 6b | \SHAR_E|OF > 'ok|
|000023b0| 27 0a 20 20 20 20 20 20 | 20 20 6f 6b 20 2d 2d 20 |'. | ok -- |
|000023c0| 4f 70 74 69 6f 6e 20 4f | 4b 0a 0a 20 20 20 20 20 |Option O|K.. |
|000023d0| 20 20 20 64 65 66 61 75 | 6c 74 20 72 61 6e 67 65 | defau|lt range|
|000023e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023f0| 20 20 20 20 73 79 6e 74 | 61 78 0a 20 20 20 20 20 | synt|ax. |
|00002400| 20 20 20 20 20 31 2c 24 | 20 20 20 20 20 20 20 20 | 1,$| |
|00002410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002420| 20 20 20 20 20 6f 6b 0a | 0a 20 20 20 20 20 20 20 | ok.|. |
|00002430| 20 54 79 70 69 6e 67 20 | 20 22 6f 6b 22 20 20 73 | Typing | "ok" s|
|00002440| 69 6d 70 6c 79 20 74 65 | 73 74 73 20 74 68 65 20 |imply te|sts the |
|00002450| 66 6c 61 67 20 74 68 61 | 74 20 69 6e 64 69 63 61 |flag tha|t indica|
|00002460| 74 65 73 20 77 68 65 74 | 68 65 72 20 74 68 65 0a |tes whet|her the.|
|00002470| 20 20 20 20 20 20 20 20 | 65 64 69 74 20 62 75 66 | |edit buf|
|00002480| 66 65 72 20 68 61 73 20 | 62 65 65 6e 20 73 61 76 |fer has |been sav|
|00002490| 65 64 20 73 69 6e 63 65 | 20 74 68 65 20 6c 61 73 |ed since| the las|
|000024a0| 74 20 63 68 61 6e 67 65 | 20 77 61 73 20 20 6d 61 |t change| was ma|
|000024b0| 64 65 20 20 74 6f 0a 20 | 20 20 20 20 20 20 20 69 |de to. | i|
|000024c0| 74 2e 20 20 20 22 53 61 | 76 65 64 22 20 20 6f 72 |t. "Sa|ved" or|
|000024d0| 20 20 22 4e 6f 74 20 73 | 61 76 65 64 22 20 69 73 | "Not s|aved" is|
|000024e0| 20 61 63 63 6f 72 64 69 | 6e 67 6c 79 20 64 69 73 | accordi|ngly dis|
|000024f0| 70 6c 61 79 65 64 20 69 | 6e 20 74 68 65 0a 20 20 |played i|n the. |
|00002500| 20 20 20 20 20 20 72 65 | 6d 61 72 6b 20 66 69 65 | re|mark fie|
|00002510| 6c 64 20 61 74 20 74 68 | 65 20 62 6f 74 74 6f 6d |ld at th|e bottom|
|00002520| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 2e 0a | of the |screen..|
|00002530| 0a 20 20 20 20 20 20 20 | 20 54 6f 20 72 65 74 75 |. | To retu|
|00002540| 72 6e 20 74 6f 20 74 68 | 65 20 6f 70 74 69 6f 6e |rn to th|e option|
|00002550| 20 64 69 72 65 63 74 6f | 72 79 2c 20 74 79 70 65 | directo|ry, type|
|00002560| 20 22 68 6f 22 2e 0a 20 | 20 20 20 20 20 20 20 53 | "ho".. | S|
|00002570| 65 65 20 61 6c 73 6f 20 | 22 68 71 22 2e 0a 53 48 |ee also |"hq"..SH|
|00002580| 41 52 5f 45 4f 46 0a 66 | 69 0a 65 63 68 6f 20 73 |AR_EOF.f|i.echo s|
|00002590| 68 61 72 3a 20 22 65 78 | 74 72 61 63 74 69 6e 67 |har: "ex|tracting|
|000025a0| 20 27 6f 6c 27 22 20 27 | 28 36 34 36 20 63 68 61 | 'ol'" '|(646 cha|
|000025b0| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|000025c0| 74 20 2d 66 20 27 6f 6c | 27 0a 74 68 65 6e 0a 09 |t -f 'ol|'.then..|
|000025d0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|000025e0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|000025f0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 6f |existing| file 'o|
|00002600| 6c 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |l'".else|.cat << |
|00002610| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 6f 6c 27 |\SHAR_EO|F > 'ol'|
|00002620| 0a 20 20 20 20 20 20 20 | 20 6f 6c 20 2d 2d 20 4f |. | ol -- O|
|00002630| 70 74 69 6f 6e 20 4c 69 | 6e 65 0a 0a 20 20 20 20 |ption Li|ne.. |
|00002640| 20 20 20 20 20 20 20 20 | 20 20 20 64 65 66 61 75 | | defau|
|00002650| 6c 74 20 72 61 6e 67 65 | 20 20 20 20 20 20 20 20 |lt range| |
|00002660| 20 20 20 20 20 73 79 6e | 74 61 78 0a 20 20 20 20 | syn|tax. |
|00002670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 2c 24 | | 1,$|
|00002680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002690| 20 20 20 20 20 20 6f 6c | 5b 24 20 7c 20 2e 20 7c | ol|[$ | . ||
|000026a0| 20 23 20 7c 20 42 4c 41 | 4e 4b 5d 0a 0a 20 20 20 | # | BLA|NK].. |
|000026b0| 20 20 20 20 20 54 68 65 | 20 20 22 6c 22 20 20 6f | The| "l" o|
|000026c0| 70 74 69 6f 6e 20 20 69 | 73 20 74 68 65 20 4c 69 |ption i|s the Li|
|000026d0| 6e 65 20 6e 75 6d 62 65 | 72 20 6d 6f 6e 69 74 6f |ne numbe|r monito|
|000026e0| 72 69 6e 67 20 6f 70 74 | 69 6f 6e 2e 20 54 79 70 |ring opt|ion. Typ|
|000026f0| 69 6e 67 0a 20 20 20 20 | 20 20 20 20 22 6c 22 20 |ing. | "l" |
|00002700| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 22 24 22 20 |followed| by "$" |
|00002710| 63 6f 6e 73 74 61 6e 74 | 6c 79 20 64 69 73 70 6c |constant|ly displ|
|00002720| 61 79 73 20 74 68 65 20 | 6c 61 73 74 20 20 6c 69 |ays the |last li|
|00002730| 6e 65 20 20 6e 75 6d 62 | 65 72 0a 20 20 20 20 20 |ne numb|er. |
|00002740| 20 20 20 69 6e 20 74 68 | 65 20 66 69 6c 65 20 28 | in th|e file (|
|00002750| 63 75 72 72 65 6e 74 20 | 6c 65 6e 67 74 68 20 6f |current |length o|
|00002760| 66 20 74 68 65 20 66 69 | 6c 65 29 2e 20 20 54 79 |f the fi|le). Ty|
|00002770| 70 69 6e 67 20 22 6c 22 | 20 66 6f 6c 6c 6f 77 65 |ping "l"| followe|
|00002780| 64 0a 20 20 20 20 20 20 | 20 20 62 79 20 20 22 2e |d. | by ".|
|00002790| 22 20 20 20 63 6f 6e 73 | 74 61 6e 74 6c 79 20 20 |" cons|tantly |
|000027a0| 64 69 73 70 6c 61 79 73 | 20 20 74 68 65 20 63 75 |displays| the cu|
|000027b0| 72 72 65 6e 74 20 6c 69 | 6e 65 20 6e 75 6d 62 65 |rrent li|ne numbe|
|000027c0| 72 2e 20 20 54 68 69 73 | 0a 20 20 20 20 20 20 20 |r. This|. |
|000027d0| 20 75 73 75 61 6c 6c 79 | 20 6d 61 6b 65 20 73 65 | usually| make se|
|000027e0| 6e 73 65 20 6f 6e 6c 79 | 20 69 6e 20 63 6f 6e 6a |nse only| in conj|
|000027f0| 75 6e 63 74 69 6f 6e 20 | 77 69 74 68 20 74 68 65 |unction |with the|
|00002800| 20 20 22 6f 61 22 20 20 | 6f 70 74 69 6f 6e 2c 0a | "oa" |option,.|
|00002810| 20 20 20 20 20 20 20 20 | 74 68 61 74 20 75 73 65 | |that use|
|00002820| 73 20 6c 65 74 74 65 72 | 73 20 66 6f 72 20 6c 69 |s letter|s for li|
|00002830| 6e 65 20 6e 61 6d 65 73 | 2e 0a 0a 20 20 20 20 20 |ne names|... |
|00002840| 20 20 20 46 6f 72 20 67 | 65 6e 65 72 61 6c 20 69 | For g|eneral i|
|00002850| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00002860| 20 74 68 65 20 6f 70 74 | 69 6f 6e 20 63 6f 6d 6d | the opt|ion comm|
|00002870| 61 6e 64 2c 20 74 79 70 | 65 20 22 68 6f 22 2e 0a |and, typ|e "ho"..|
|00002880| 20 20 20 20 20 20 20 20 | 53 65 65 20 61 6c 73 6f | |See also|
|00002890| 3a 20 20 22 68 6f 61 22 | 20 61 6e 64 20 22 68 65 |: "hoa"| and "he|
|000028a0| 71 75 61 6c 22 2e 0a 53 | 48 41 52 5f 45 4f 46 0a |qual"..S|HAR_EOF.|
|000028b0| 66 69 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 22 65 |fi.echo |shar: "e|
|000028c0| 78 74 72 61 63 74 69 6e | 67 20 27 6f 6c 6d 27 22 |xtractin|g 'olm'"|
|000028d0| 20 27 28 36 36 34 20 63 | 68 61 72 61 63 74 65 72 | '(664 c|haracter|
|000028e0| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|000028f0| 6f 6c 6d 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |olm'.the|n..echo |
|00002900| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00002910| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00002920| 69 6e 67 20 66 69 6c 65 | 20 27 6f 6c 6d 27 22 0a |ing file| 'olm'".|
|00002930| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00002940| 52 5f 45 4f 46 20 3e 20 | 27 6f 6c 6d 27 0a 0a 20 |R_EOF > |'olm'.. |
|00002950| 20 20 20 20 20 20 20 6f | 6c 6d 20 2d 2d 20 4f 70 | o|lm -- Op|
|00002960| 74 69 6f 6e 20 4c 69 6e | 65 20 4d 61 72 67 69 6e |tion Lin|e Margin|
|00002970| 0a 0a 20 20 20 20 20 20 | 20 20 64 65 66 61 75 6c |.. | defaul|
|00002980| 74 20 72 61 6e 67 65 20 | 20 20 20 20 20 20 20 20 |t range | |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029a0| 20 20 73 79 6e 74 61 78 | 0a 20 20 20 20 20 20 20 | syntax|. |
|000029b0| 20 20 20 20 31 2c 24 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|000029c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029d0| 20 20 20 20 20 20 20 20 | 20 20 6f 6c 6d 5b 3c 63 | | olm[<c|
|000029e0| 6f 6c 3e 5d 0a 20 20 20 | 20 20 20 20 20 0a 20 20 |ol>]. | . |
|000029f0| 20 20 20 20 20 20 53 65 | 74 73 20 74 68 65 20 6c | Se|ts the l|
|00002a00| 65 66 74 20 6d 61 72 67 | 69 6e 20 74 6f 20 3c 63 |eft marg|in to <c|
|00002a10| 6f 6c 3e 20 20 77 68 69 | 63 68 20 6d 75 73 74 20 |ol> whi|ch must |
|00002a20| 62 65 20 61 20 70 6f 73 | 69 74 69 76 65 20 69 6e |be a pos|itive in|
|00002a30| 74 65 67 65 72 2e 0a 20 | 20 20 20 20 20 20 20 54 |teger.. | T|
|00002a40| 68 69 73 20 73 68 69 66 | 74 73 20 74 68 65 20 65 |his shif|ts the e|
|00002a50| 6e 74 69 72 65 20 73 63 | 72 65 65 6e 20 74 6f 20 |ntire sc|reen to |
|00002a60| 20 74 68 65 20 6c 65 66 | 74 3b 20 74 68 65 20 63 | the lef|t; the c|
|00002a70| 68 61 72 61 63 74 65 72 | 73 20 20 74 68 61 74 0a |haracter|s that.|
|00002a80| 20 20 20 20 20 20 20 20 | 77 65 72 65 20 69 6e 20 | |were in |
|00002a90| 63 6f 6c 75 6d 6e 73 20 | 31 20 20 74 68 72 6f 75 |columns |1 throu|
|00002aa0| 67 68 20 3c 63 6f 6c 3e | 20 2d 20 31 20 20 77 69 |gh <col>| - 1 wi|
|00002ab0| 6c 6c 20 20 6e 6f 74 20 | 62 65 20 76 69 73 69 62 |ll not |be visib|
|00002ac0| 6c 65 2e 20 20 59 6f 75 | 0a 20 20 20 20 20 20 20 |le. You|. |
|00002ad0| 20 6d 61 79 20 63 6f 6e | 74 69 6e 75 65 20 65 64 | may con|tinue ed|
|00002ae0| 69 74 69 6e 67 20 69 6e | 20 74 68 65 20 6e 6f 72 |iting in| the nor|
|00002af0| 6d 61 6c 20 66 61 73 68 | 69 6f 6e 2e 20 54 6f 20 |mal fash|ion. To |
|00002b00| 72 65 73 65 74 20 79 6f | 75 72 20 73 63 72 65 65 |reset yo|ur scree|
|00002b10| 6e 0a 20 20 20 20 20 20 | 20 20 74 6f 20 6e 6f 72 |n. | to nor|
|00002b20| 6d 61 6c 2c 20 65 6e 74 | 65 72 20 74 68 65 20 63 |mal, ent|er the c|
|00002b30| 6f 6d 6d 61 6e 64 20 22 | 6f 6c 6d 20 31 22 2e 20 |ommand "|olm 1". |
|00002b40| 20 49 66 20 3c 63 6f 6c | 3e 20 69 73 20 6f 6d 69 | If <col|> is omi|
|00002b50| 74 74 65 64 2c 20 20 74 | 68 65 0a 20 20 20 20 20 |tted, t|he. |
|00002b60| 20 20 20 63 75 72 72 65 | 6e 74 20 6c 65 66 74 20 | curre|nt left |
|00002b70| 6d 61 72 67 69 6e 20 63 | 6f 6c 75 6d 6e 20 69 73 |margin c|olumn is|
|00002b80| 20 64 69 73 70 6c 61 79 | 65 64 20 69 6e 20 74 68 | display|ed in th|
|00002b90| 65 20 73 74 61 74 75 73 | 20 6c 69 6e 65 2e 0a 0a |e status| line...|
|00002ba0| 20 20 20 20 20 20 20 20 | 46 6f 72 20 67 65 6e 65 | |For gene|
|00002bb0| 72 61 6c 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ral info|rmation |
|00002bc0| 61 62 6f 75 74 20 74 68 | 65 20 6f 70 74 69 6f 6e |about th|e option|
|00002bd0| 73 20 63 6f 6d 6d 61 6e | 64 2c 20 74 79 70 65 20 |s comman|d, type |
|00002be0| 22 68 6f 22 2e 0a 53 48 | 41 52 5f 45 4f 46 0a 66 |"ho"..SH|AR_EOF.f|
|00002bf0| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 22 65 78 |i.echo s|har: "ex|
|00002c00| 74 72 61 63 74 69 6e 67 | 20 27 6f 6d 27 22 20 27 |tracting| 'om'" '|
|00002c10| 28 37 33 33 20 63 68 61 | 72 61 63 74 65 72 73 29 |(733 cha|racters)|
|00002c20| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 6f 6d |'.if tes|t -f 'om|
|00002c30| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00002c40| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|00002c50| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00002c60| 20 66 69 6c 65 20 27 6f | 6d 27 22 0a 65 6c 73 65 | file 'o|m'".else|
|00002c70| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00002c80| 46 20 3e 20 27 6f 6d 27 | 0a 0a 20 20 20 20 20 20 |F > 'om'|.. |
|00002c90| 20 20 6f 6d 20 2d 2d 20 | 4f 70 74 69 6f 6e 20 4d | om -- |Option M|
|00002ca0| 61 69 6c 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ail.. | |
|00002cb0| 20 20 20 20 64 65 66 61 | 75 6c 74 20 72 61 6e 67 | defa|ult rang|
|00002cc0| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 79 |e | sy|
|00002cd0| 6e 74 61 78 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ntax. | |
|00002ce0| 20 20 20 20 20 20 20 31 | 2c 24 20 20 20 20 20 20 | 1|,$ |
|00002cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o|
|00002d00| 6d 0a 0a 20 20 20 20 20 | 20 20 20 22 6f 6d 22 20 |m.. | "om" |
|00002d10| 69 73 20 61 6e 20 6f 70 | 74 69 6f 6e 20 77 68 69 |is an op|tion whi|
|00002d20| 63 68 20 61 6c 6c 6f 77 | 73 20 74 68 65 20 75 73 |ch allow|s the us|
|00002d30| 65 72 20 63 6f 6e 74 72 | 6f 6c 20 20 20 6f 76 65 |er contr|ol ove|
|00002d40| 72 20 20 77 68 65 74 68 | 65 72 0a 20 20 20 20 20 |r wheth|er. |
|00002d50| 20 20 20 6f 72 20 20 6e | 6f 74 20 68 65 20 77 69 | or n|ot he wi|
|00002d60| 6c 6c 20 20 62 65 20 20 | 6e 6f 74 69 66 69 65 64 |ll be |notified|
|00002d70| 20 20 61 62 6f 75 74 20 | 70 65 6e 64 69 6e 67 20 | about |pending |
|00002d80| 6d 61 69 6c 2e 20 20 54 | 79 70 69 6e 67 20 22 6f |mail. T|yping "o|
|00002d90| 6d 22 0a 20 20 20 20 20 | 20 20 20 73 69 6d 70 6c |m". | simpl|
|00002da0| 79 20 74 6f 67 67 6c 65 | 73 20 74 68 65 20 73 77 |y toggle|s the sw|
|00002db0| 69 74 63 68 20 63 6f 6e | 74 72 6f 6c 6c 69 6e 67 |itch con|trolling|
|00002dc0| 20 6e 6f 74 69 66 69 63 | 61 74 69 6f 6e 2e 0a 20 | notific|ation.. |
|00002dd0| 20 20 20 20 20 20 20 20 | 20 20 20 54 68 65 20 64 | | The d|
|00002de0| 65 66 61 75 6c 74 20 69 | 73 20 66 6f 72 20 74 68 |efault i|s for th|
|00002df0| 65 20 65 64 69 74 6f 72 | 20 74 6f 20 6e 6f 74 69 |e editor| to noti|
|00002e00| 66 79 20 74 68 65 20 20 | 75 73 65 72 20 61 62 6f |fy the |user abo|
|00002e10| 75 74 20 68 69 73 0a 20 | 20 20 20 20 20 20 20 6d |ut his. | m|
|00002e20| 61 69 6c 2e 20 20 54 68 | 65 20 20 6d 61 69 6c 20 |ail. Th|e mail |
|00002e30| 20 62 6f 78 20 20 77 68 | 69 63 68 20 74 68 65 20 | box wh|ich the |
|00002e40| 65 64 69 74 6f 72 20 75 | 73 65 73 20 69 73 20 74 |editor u|ses is t|
|00002e50| 61 6b 65 6e 20 66 72 6f | 6d 20 20 74 68 65 0a 20 |aken fro|m the. |
|00002e60| 20 20 20 20 20 20 20 65 | 6e 76 69 72 6f 6e 6d 65 | e|nvironme|
|00002e70| 6e 74 20 76 61 72 69 61 | 62 6c 65 20 4d 41 49 4c |nt varia|ble MAIL|
|00002e80| 2e 20 49 66 20 74 68 65 | 20 6d 61 69 6c 20 62 6f |. If the| mail bo|
|00002e90| 78 20 65 78 69 73 74 73 | 2c 20 62 75 74 20 69 73 |x exists|, but is|
|00002ea0| 20 65 6d 70 74 79 0a 20 | 20 20 20 20 20 20 20 74 | empty. | t|
|00002eb0| 68 65 20 75 73 65 72 20 | 77 69 6c 6c 20 6e 6f 74 |he user |will not|
|00002ec0| 20 62 65 20 6e 6f 74 69 | 66 69 65 64 2e 0a 0a 20 | be noti|fied... |
|00002ed0| 20 20 20 20 20 20 20 54 | 6f 20 20 72 65 61 64 20 | T|o read |
|00002ee0| 79 6f 75 72 20 6d 61 69 | 6c 2c 20 75 73 65 20 61 |your mai|l, use a|
|00002ef0| 20 73 68 65 6c 6c 20 65 | 73 63 61 70 65 20 6f 6e | shell e|scape on|
|00002f00| 20 77 68 69 63 68 65 76 | 65 72 20 6f 66 20 74 68 | whichev|er of th|
|00002f10| 65 20 66 6f 6c 2d 0a 20 | 20 20 20 20 20 20 20 6c |e fol-. | l|
|00002f20| 6f 77 69 6e 67 20 70 72 | 6f 67 72 61 6d 73 20 69 |owing pr|ograms i|
|00002f30| 73 20 61 70 70 72 6f 70 | 72 69 61 74 65 3a 0a 0a |s approp|riate:..|
|00002f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f50| 4d 61 69 6c 20 20 20 20 | 20 6d 73 67 20 20 20 20 |Mail | msg |
|00002f60| 20 6d 61 69 6c 0a 53 48 | 41 52 5f 45 4f 46 0a 66 | mail.SH|AR_EOF.f|
|00002f70| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 22 65 78 |i.echo s|har: "ex|
|00002f80| 74 72 61 63 74 69 6e 67 | 20 27 6f 70 27 22 20 27 |tracting| 'op'" '|
|00002f90| 28 37 37 38 20 63 68 61 | 72 61 63 74 65 72 73 29 |(778 cha|racters)|
|00002fa0| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 6f 70 |'.if tes|t -f 'op|
|00002fb0| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00002fc0| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|00002fd0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00002fe0| 20 66 69 6c 65 20 27 6f | 70 27 22 0a 65 6c 73 65 | file 'o|p'".else|
|00002ff0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00003000| 46 20 3e 20 27 6f 70 27 | 0a 0a 20 20 20 20 20 20 |F > 'op'|.. |
|00003010| 20 20 6f 70 20 2d 2d 20 | 4f 70 74 69 6f 6e 20 50 | op -- |Option P|
|00003020| 61 74 74 65 72 6e 0a 0a | 20 20 20 20 20 20 20 20 |attern..| |
|00003030| 64 65 66 61 75 6c 74 20 | 72 61 6e 67 65 20 20 20 |default |range |
|00003040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003050| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00003060| 20 20 20 31 2c 24 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00003070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003080| 20 6f 70 0a 0a 20 20 20 | 20 20 20 20 20 22 6f 70 | op.. | "op|
|00003090| 22 20 20 63 6f 6e 76 65 | 72 74 73 20 74 6f 20 20 |" conve|rts to |
|000030a0| 6f 72 20 66 72 6f 6d 20 | 53 57 54 20 20 63 6f 6d |or from |SWT com|
|000030b0| 70 61 74 69 62 69 6c 69 | 74 79 20 6d 6f 64 65 2e |patibili|ty mode.|
|000030c0| 20 20 53 65 20 77 61 73 | 20 6f 72 69 67 69 6e 61 | Se was| origina|
|000030d0| 6c 6c 79 0a 20 20 20 20 | 20 20 20 20 77 72 69 74 |lly. | writ|
|000030e0| 74 65 6e 20 20 66 6f 72 | 20 20 74 68 65 20 47 65 |ten for| the Ge|
|000030f0| 6f 72 69 61 20 20 54 65 | 63 68 20 20 53 6f 66 74 |oria Te|ch Soft|
|00003100| 77 61 72 65 20 20 54 6f | 6f 6c 73 20 20 53 75 62 |ware To|ols Sub|
|00003110| 73 79 73 74 65 6d 2c 20 | 77 68 69 63 68 20 75 73 |system, |which us|
|00003120| 65 73 0a 20 20 20 20 20 | 20 20 20 73 6c 69 67 68 |es. | sligh|
|00003130| 74 6c 79 20 64 69 66 66 | 65 72 65 6e 74 20 63 68 |tly diff|erent ch|
|00003140| 61 72 61 63 74 65 72 73 | 20 20 66 6f 72 20 20 64 |aracters| for d|
|00003150| 65 73 63 72 69 62 69 6e | 67 20 20 70 61 74 74 65 |escribin|g patte|
|00003160| 72 6e 73 2e 20 20 54 6f | 20 65 61 73 65 20 74 68 |rns. To| ease th|
|00003170| 65 0a 20 20 20 20 20 20 | 20 20 74 72 61 6e 73 69 |e. | transi|
|00003180| 74 69 6f 6e 20 66 6f 72 | 20 75 73 65 72 73 20 66 |tion for| users f|
|00003190| 61 6d 69 6c 69 61 72 20 | 77 69 74 68 20 74 68 65 |amiliar |with the|
|000031a0| 20 6f 72 69 67 69 6e 61 | 6c 20 76 65 72 73 69 6f | origina|l versio|
|000031b0| 6e 2c 20 73 65 20 70 72 | 6f 76 69 64 65 73 20 61 |n, se pr|ovides a|
|000031c0| 0a 20 20 20 20 20 20 20 | 20 53 6f 66 74 77 61 72 |. | Softwar|
|000031d0| 65 20 54 6f 6f 6c 73 20 | 63 6f 6d 70 61 74 69 62 |e Tools |compatib|
|000031e0| 69 6c 69 74 79 20 6d 6f | 64 65 2e 20 20 54 68 65 |ility mo|de. The|
|000031f0| 20 63 75 72 72 65 6e 74 | 20 64 65 66 61 75 6c 74 | current| default|
|00003200| 20 69 73 20 74 6f 20 75 | 73 65 20 55 6e 69 78 0a | is to u|se Unix.|
|00003210| 20 20 20 20 20 20 20 20 | 73 74 79 6c 65 20 70 61 | |style pa|
|00003220| 74 74 65 72 6e 73 20 61 | 6e 64 20 63 6f 6d 6d 61 |tterns a|nd comma|
|00003230| 6e 64 73 2e 20 20 57 68 | 65 6e 20 69 6e 20 53 6f |nds. Wh|en in So|
|00003240| 66 74 77 61 72 65 20 54 | 6f 6f 6c 73 20 6d 6f 64 |ftware T|ools mod|
|00003250| 65 2c 20 74 68 65 20 6d | 65 73 73 61 67 65 0a 20 |e, the m|essage. |
|00003260| 20 20 20 20 20 20 20 22 | 53 57 54 22 20 61 70 70 | "|SWT" app|
|00003270| 65 61 72 73 20 20 69 6e | 20 74 68 65 20 73 74 61 |ears in| the sta|
|00003280| 74 75 73 20 6c 69 6e 65 | 2e 0a 0a 20 20 20 20 20 |tus line|... |
|00003290| 20 20 20 44 6f 20 20 61 | 20 22 6d 61 6e 20 73 65 | Do a| "man se|
|000032a0| 22 20 66 72 6f 6d 20 74 | 68 65 20 73 68 65 6c 6c |" from t|he shell|
|000032b0| 20 66 6f 72 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 | for a c|omplete |
|000032c0| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 6f 66 20 | descrip|tion of |
|000032d0| 74 68 65 20 20 64 69 66 | 2d 0a 20 20 20 20 20 20 |the dif|-. |
|000032e0| 20 20 66 65 72 65 6e 63 | 65 73 20 77 68 65 6e 20 | ferenc|es when |
|000032f0| 69 6e 20 53 57 54 20 6d | 6f 64 65 20 61 6e 64 20 |in SWT m|ode and |
|00003300| 77 68 65 6e 20 69 6e 20 | 55 6e 69 78 20 6d 6f 64 |when in |Unix mod|
|00003310| 65 2e 0a 53 48 41 52 5f | 45 4f 46 0a 66 69 0a 65 |e..SHAR_|EOF.fi.e|
|00003320| 63 68 6f 20 73 68 61 72 | 3a 20 22 65 78 74 72 61 |cho shar|: "extra|
|00003330| 63 74 69 6e 67 20 27 6f | 73 27 22 20 27 28 36 31 |cting 'o|s'" '(61|
|00003340| 33 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |3 charac|ters)'.i|
|00003350| 66 20 74 65 73 74 20 2d | 66 20 27 6f 73 27 0a 74 |f test -|f 'os'.t|
|00003360| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00003370| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|00003380| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00003390| 6c 65 20 27 6f 73 27 22 | 0a 65 6c 73 65 0a 63 61 |le 'os'"|.else.ca|
|000033a0| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|000033b0| 20 27 6f 73 27 0a 0a 20 | 20 20 20 20 20 20 20 6f | 'os'.. | o|
|000033c0| 73 20 2d 2d 2d 20 6f 70 | 74 69 6f 6e 20 73 6f 75 |s --- op|tion sou|
|000033d0| 72 63 65 0a 0a 20 20 20 | 20 20 20 20 20 64 65 66 |rce.. | def|
|000033e0| 61 75 6c 74 20 72 61 6e | 67 65 20 20 20 20 20 20 |ault ran|ge |
|000033f0| 20 20 20 20 20 73 79 6e | 74 61 78 0a 20 20 20 20 | syn|tax. |
|00003400| 20 20 20 20 20 20 20 31 | 2c 24 20 20 20 20 20 20 | 1|,$ |
|00003410| 20 73 5b 61 73 20 7c 20 | 63 20 7c 20 64 20 7c 20 | s[as | |c | d | |
|00003420| 64 61 74 61 20 7c 20 66 | 20 7c 20 68 20 7c 20 6e |data | f| | h | n|
|00003430| 20 7c 20 6e 72 20 7c 20 | 6e 72 6f 66 66 20 7c 20 | | nr | |nroff | |
|00003440| 70 20 7c 20 72 20 7c 20 | 73 5d 0a 20 20 20 20 20 |p | r | |s]. |
|00003450| 20 20 20 0a 20 20 20 20 | 20 20 20 20 54 68 69 73 | . | This|
|00003460| 20 6f 70 74 69 6f 6e 20 | 73 65 74 73 20 6f 74 68 | option |sets oth|
|00003470| 65 72 20 6f 70 74 69 6f | 6e 73 20 66 6f 72 20 63 |er optio|ns for c|
|00003480| 61 73 65 2c 20 74 61 62 | 73 2c 20 65 74 63 2e 0a |ase, tab|s, etc..|
|00003490| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 73 2c 20 | | as, |
|000034a0| 73 20 20 20 2d 2d 20 61 | 73 73 65 6d 62 6c 65 72 |s -- a|ssembler|
|000034b0| 20 66 69 6c 65 73 20 20 | 20 63 20 20 20 20 20 20 | files | c |
|000034c0| 20 20 20 20 2d 2d 20 43 | 20 66 69 6c 65 73 0a 20 | -- C| files. |
|000034d0| 20 20 20 20 20 20 20 20 | 20 20 20 64 2c 20 64 61 | | d, da|
|000034e0| 74 61 20 2d 2d 20 64 61 | 74 61 20 66 69 6c 65 73 |ta -- da|ta files|
|000034f0| 20 20 20 20 20 20 20 20 | 66 20 20 20 20 20 20 20 | |f |
|00003500| 20 20 20 2d 2d 20 66 6f | 72 74 72 61 6e 20 66 69 | -- fo|rtran fi|
|00003510| 6c 65 73 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |les. | |
|00003520| 68 20 20 20 20 20 20 20 | 2d 2d 20 68 65 61 64 65 |h |-- heade|
|00003530| 72 20 66 69 6c 65 73 20 | 20 20 20 20 20 6e 2c 6e |r files | n,n|
|00003540| 72 2c 6e 72 6f 66 66 20 | 2d 2d 20 6e 72 6f 66 66 |r,nroff |-- nroff|
|00003550| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 73 0a 20 20 | source |files. |
|00003560| 20 20 20 20 20 20 20 20 | 20 20 70 20 20 20 20 20 | | p |
|00003570| 20 20 2d 2d 20 70 61 73 | 63 61 6c 20 66 69 6c 65 | -- pas|cal file|
|00003580| 73 20 20 20 20 20 20 72 | 20 20 20 20 20 20 20 20 |s r| |
|00003590| 20 20 2d 2d 20 72 61 74 | 66 6f 72 20 66 69 6c 65 | -- rat|for file|
|000035a0| 73 0a 20 20 20 20 20 20 | 20 20 0a 20 20 20 20 20 |s. | . |
|000035b0| 20 20 20 53 65 65 20 74 | 68 65 20 6d 61 6e 75 61 | See t|he manua|
|000035c0| 6c 20 70 61 67 65 20 66 | 6f 72 20 64 65 74 61 69 |l page f|or detai|
|000035d0| 6c 73 2e 0a 0a 20 20 20 | 20 20 20 20 20 46 6f 72 |ls... | For|
|000035e0| 20 67 65 6e 65 72 61 6c | 20 69 6e 66 6f 72 6d 61 | general| informa|
|000035f0| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 6f |tion abo|ut the o|
|00003600| 70 74 69 6f 6e 73 20 63 | 6f 6d 6d 61 6e 64 2c 20 |ptions c|ommand, |
|00003610| 74 79 70 65 20 22 68 6f | 22 2e 0a 53 48 41 52 5f |type "ho|"..SHAR_|
|00003620| 45 4f 46 0a 66 69 0a 65 | 63 68 6f 20 73 68 61 72 |EOF.fi.e|cho shar|
|00003630| 3a 20 22 65 78 74 72 61 | 63 74 69 6e 67 20 27 6f |: "extra|cting 'o|
|00003640| 74 27 22 20 27 28 37 31 | 30 20 63 68 61 72 61 63 |t'" '(71|0 charac|
|00003650| 74 65 72 73 29 27 0a 69 | 66 20 74 65 73 74 20 2d |ters)'.i|f test -|
|00003660| 66 20 27 6f 74 27 0a 74 | 68 65 6e 0a 09 65 63 68 |f 'ot'.t|hen..ech|
|00003670| 6f 20 73 68 61 72 3a 20 | 22 77 69 6c 6c 20 6e 6f |o shar: |"will no|
|00003680| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00003690| 73 74 69 6e 67 20 66 69 | 6c 65 20 27 6f 74 27 22 |sting fi|le 'ot'"|
|000036a0| 0a 65 6c 73 65 0a 63 61 | 74 20 3c 3c 20 5c 53 48 |.else.ca|t << \SH|
|000036b0| 41 52 5f 45 4f 46 20 3e | 20 27 6f 74 27 0a 20 20 |AR_EOF >| 'ot'. |
|000036c0| 20 20 20 20 20 20 6f 74 | 20 2d 2d 20 4f 70 74 69 | ot| -- Opti|
|000036d0| 6f 6e 20 54 61 62 0a 0a | 20 20 20 20 20 20 20 20 |on Tab..| |
|000036e0| 72 61 6e 67 65 20 20 20 | 20 20 20 20 20 20 20 20 |range | |
|000036f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 73 79 6e | | syn|
|00003700| 74 61 78 0a 20 20 20 20 | 20 20 20 20 20 31 2c 24 |tax. | 1,$|
|00003710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003720| 6f 74 5b 5b 5b 2b 5d 69 | 6e 74 65 67 65 72 20 5b |ot[[[+]i|nteger [|
|00003730| 2b 5d 69 6e 74 65 67 65 | 72 5d 5d 0a 0a 0a 20 20 |+]intege|r]]... |
|00003740| 20 20 20 20 20 20 22 6f | 74 2b 33 22 20 73 65 74 | "o|t+3" set|
|00003750| 73 20 74 68 65 20 73 70 | 61 63 69 6e 67 20 62 65 |s the sp|acing be|
|00003760| 74 77 65 65 6e 20 74 61 | 62 20 73 74 6f 70 73 2e |tween ta|b stops.|
|00003770| 20 20 54 68 65 20 20 64 | 65 66 61 75 6c 74 20 20 | The d|efault |
|00003780| 76 61 6c 75 65 0a 20 20 | 20 20 20 20 20 20 77 68 |value. | wh|
|00003790| 65 6e 20 20 27 73 65 27 | 20 20 63 6f 6d 65 73 20 |en 'se'| comes |
|000037a0| 20 75 70 20 20 69 73 20 | 33 2e 20 20 54 79 70 69 | up is |3. Typi|
|000037b0| 6e 67 20 22 6f 74 22 20 | 62 79 20 69 74 73 65 6c |ng "ot" |by itsel|
|000037c0| 66 20 63 61 75 73 65 73 | 20 74 68 65 0a 20 20 20 |f causes| the. |
|000037d0| 20 20 20 20 20 63 75 72 | 72 65 6e 74 20 76 61 6c | cur|rent val|
|000037e0| 75 65 20 6f 66 20 74 68 | 65 20 70 61 72 61 6d 65 |ue of th|e parame|
|000037f0| 74 65 72 20 74 6f 20 62 | 65 20 64 69 73 70 6c 61 |ter to b|e displa|
|00003800| 79 65 64 2e 20 20 41 73 | 20 61 6e 20 65 78 61 6d |yed. As| an exam|
|00003810| 70 6c 65 0a 20 20 20 20 | 20 20 20 20 6f 66 20 68 |ple. | of h|
|00003820| 6f 77 20 74 61 62 73 20 | 61 72 65 20 73 70 61 63 |ow tabs |are spac|
|00003830| 65 64 20 6f 75 74 2c 20 | 69 66 20 6f 74 2b 36 20 |ed out, |if ot+6 |
|00003840| 69 73 20 69 6e 20 65 66 | 66 65 63 74 2c 20 74 61 |is in ef|fect, ta|
|00003850| 62 20 73 74 6f 70 73 20 | 61 72 65 0a 20 20 20 20 |b stops |are. |
|00003860| 20 20 20 20 61 74 20 37 | 2c 20 31 33 2c 20 31 39 | at 7|, 13, 19|
|00003870| 2c 20 65 74 63 2e 0a 20 | 20 20 20 20 20 20 20 56 |, etc.. | V|
|00003880| 61 72 69 61 62 6c 65 20 | 20 74 61 62 73 20 63 61 |ariable | tabs ca|
|00003890| 6e 20 62 65 20 73 65 74 | 20 62 79 20 74 79 70 69 |n be set| by typi|
|000038a0| 6e 67 20 22 6f 74 20 35 | 20 31 33 20 32 34 20 2e |ng "ot 5| 13 24 .|
|000038b0| 2e 20 20 22 2e 20 20 69 | 66 20 79 6f 75 0a 20 20 |. ". i|f you. |
|000038c0| 20 20 20 20 20 20 64 6f | 20 6e 6f 74 20 70 72 65 | do| not pre|
|000038d0| 66 65 72 20 65 71 75 61 | 6c 6c 79 20 73 70 61 63 |fer equa|lly spac|
|000038e0| 65 64 20 6f 6e 65 73 2e | 0a 0a 20 20 20 20 20 20 |ed ones.|.. |
|000038f0| 20 20 53 65 65 20 61 6c | 73 6f 20 22 68 6f 66 22 | See al|so "hof"|
|00003900| 2e 0a 20 20 20 20 20 20 | 20 20 46 6f 72 20 67 65 |.. | For ge|
|00003910| 6e 65 72 61 6c 20 69 6e | 66 6f 72 6d 61 74 69 6f |neral in|formatio|
|00003920| 6e 20 61 62 6f 75 74 20 | 74 68 65 20 6f 70 74 69 |n about |the opti|
|00003930| 6f 6e 20 63 6f 6d 6d 61 | 6e 64 2c 20 74 79 70 65 |on comma|nd, type|
|00003940| 20 22 68 6f 22 2e 0a 20 | 20 20 20 20 20 20 20 46 | "ho".. | F|
|00003950| 6f 72 20 6d 6f 72 65 20 | 61 62 6f 75 74 20 74 68 |or more |about th|
|00003960| 65 20 75 73 65 20 6f 66 | 20 74 61 62 20 73 74 6f |e use of| tab sto|
|00003970| 70 73 2c 20 74 79 70 65 | 20 22 68 6d 6f 74 69 6f |ps, type| "hmotio|
|00003980| 6e 22 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |n"..SHAR|_EOF.fi.|
|00003990| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 78 74 72 |echo sha|r: "extr|
|000039a0| 61 63 74 69 6e 67 20 27 | 6f 75 27 22 20 27 28 38 |acting '|ou'" '(8|
|000039b0| 32 33 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |23 chara|cters)'.|
|000039c0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 6f 75 27 0a |if test |-f 'ou'.|
|000039d0| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|000039e0| 20 22 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d | "will n|ot over-|
|000039f0| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00003a00| 69 6c 65 20 27 6f 75 27 | 22 0a 65 6c 73 65 0a 63 |ile 'ou'|".else.c|
|00003a10| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|00003a20| 3e 20 27 6f 75 27 0a 20 | 20 20 20 20 20 20 20 6f |> 'ou'. | o|
|00003a30| 75 20 2d 2d 20 4f 70 74 | 69 6f 6e 20 55 6e 70 72 |u -- Opt|ion Unpr|
|00003a40| 69 6e 74 61 62 6c 65 0a | 0a 20 20 20 20 20 20 20 |intable.|. |
|00003a50| 20 20 20 20 20 20 20 20 | 64 65 66 61 75 6c 74 20 | |default |
|00003a60| 72 61 6e 67 65 20 20 20 | 20 20 20 20 20 20 20 20 |range | |
|00003a70| 20 20 73 79 6e 74 61 78 | 0a 20 20 20 20 20 20 20 | syntax|. |
|00003a80| 20 20 20 20 20 20 20 20 | 20 20 31 2c 24 20 20 20 | | 1,$ |
|00003a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003aa0| 20 20 6f 75 5b 63 68 61 | 72 61 63 74 65 72 5d 0a | ou[cha|racter].|
|00003ab0| 0a 20 20 20 20 20 20 20 | 20 54 68 65 20 20 22 75 |. | The "u|
|00003ac0| 22 20 20 6f 70 74 69 6f | 6e 20 20 69 73 20 20 66 |" optio|n is f|
|00003ad0| 6f 72 20 20 6d 6f 6e 69 | 74 6f 72 69 6e 67 20 20 |or moni|toring |
|00003ae0| 75 6e 70 72 69 6e 74 61 | 62 6c 65 20 63 68 61 72 |unprinta|ble char|
|00003af0| 61 63 74 65 72 73 2e 0a | 20 20 20 20 20 20 20 20 |acters..| |
|00003b00| 54 79 70 69 6e 67 20 22 | 6f 75 22 20 62 79 20 69 |Typing "|ou" by i|
|00003b10| 74 73 65 6c 66 20 77 69 | 6c 6c 20 72 65 74 75 72 |tself wi|ll retur|
|00003b20| 6e 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 20 63 |n the cu|rrent c|
|00003b30| 68 61 72 61 63 74 65 72 | 20 20 75 73 65 64 0a 20 |haracter| used. |
|00003b40| 20 20 20 20 20 20 20 74 | 6f 20 64 69 73 70 6c 61 | t|o displa|
|00003b50| 79 20 75 6e 70 72 69 6e | 74 61 62 6c 65 20 63 68 |y unprin|table ch|
|00003b60| 61 72 61 63 74 65 72 73 | 2e 20 20 49 66 20 69 74 |aracters|. If it|
|00003b70| 20 69 73 20 27 20 27 20 | 28 62 6c 61 6e 6b 29 2c | is ' ' |(blank),|
|00003b80| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 75 6e | then. | un|
|00003b90| 70 72 69 6e 74 61 62 6c | 65 20 20 63 68 61 72 61 |printabl|e chara|
|00003ba0| 63 74 65 72 73 20 20 61 | 72 65 20 20 6e 6f 74 20 |cters a|re not |
|00003bb0| 20 63 68 65 63 6b 65 64 | 20 61 6e 64 20 6d 61 79 | checked| and may|
|00003bc0| 20 6d 65 73 73 20 75 70 | 20 74 68 65 0a 20 20 20 | mess up| the. |
|00003bd0| 20 20 20 20 20 64 69 73 | 70 6c 61 79 2e 20 20 54 | dis|play. T|
|00003be0| 79 70 69 6e 67 20 22 6f | 75 78 22 20 77 68 65 72 |yping "o|ux" wher|
|00003bf0| 65 20 22 78 22 20 69 73 | 20 61 20 70 72 69 6e 74 |e "x" is| a print|
|00003c00| 61 62 6c 65 20 63 68 61 | 72 61 63 74 65 72 20 77 |able cha|racter w|
|00003c10| 69 6c 6c 0a 20 20 20 20 | 20 20 20 20 74 75 72 6e |ill. | turn|
|00003c20| 20 6f 6e 20 20 63 68 61 | 72 61 63 74 65 72 20 20 | on cha|racter |
|00003c30| 63 68 65 63 6b 69 6e 67 | 20 20 61 6e 64 20 20 64 |checking| and d|
|00003c40| 69 73 70 6c 61 79 20 20 | 22 78 22 20 20 65 76 65 |isplay |"x" eve|
|00003c50| 72 79 74 69 6d 65 20 20 | 61 6e 0a 20 20 20 20 20 |rytime |an. |
|00003c60| 20 20 20 75 6e 70 72 69 | 6e 74 61 62 6c 65 20 20 | unpri|ntable |
|00003c70| 63 68 61 72 61 63 74 65 | 72 20 69 73 20 65 6e 63 |characte|r is enc|
|00003c80| 6f 75 6e 74 65 72 65 64 | 2e 20 20 55 6e 70 72 69 |ountered|. Unpri|
|00003c90| 6e 74 61 62 6c 65 20 63 | 68 61 72 61 63 74 65 72 |ntable c|haracter|
|00003ca0| 73 0a 20 20 20 20 20 20 | 20 20 61 72 65 20 6e 6f |s. | are no|
|00003cb0| 74 20 64 69 73 74 75 72 | 62 65 64 20 69 6e 20 74 |t distur|bed in t|
|00003cc0| 68 65 20 66 69 6c 65 2c | 20 62 75 74 20 63 61 6e |he file,| but can|
|00003cd0| 20 62 65 20 22 65 64 69 | 74 65 64 22 20 6f 75 74 | be "edi|ted" out|
|00003ce0| 2e 0a 0a 20 20 20 20 20 | 20 20 20 53 65 65 20 61 |... | See a|
|00003cf0| 6c 73 6f 20 68 63 63 6d | 69 73 63 20 66 6f 72 20 |lso hccm|isc for |
|00003d00| 72 65 66 72 65 73 68 69 | 6e 67 20 74 68 65 20 64 |refreshi|ng the d|
|00003d10| 69 73 70 6c 61 79 2e 0a | 0a 20 20 20 20 20 20 20 |isplay..|. |
|00003d20| 20 46 6f 72 20 67 65 6e | 65 72 61 6c 20 69 6e 66 | For gen|eral inf|
|00003d30| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 74 |ormation| about t|
|00003d40| 68 65 20 6f 70 74 69 6f | 6e 20 63 6f 6d 6d 61 6e |he optio|n comman|
|00003d50| 64 2c 20 74 79 70 65 20 | 22 68 6f 22 2e 0a 53 48 |d, type |"ho"..SH|
|00003d60| 41 52 5f 45 4f 46 0a 66 | 69 0a 65 63 68 6f 20 73 |AR_EOF.f|i.echo s|
|00003d70| 68 61 72 3a 20 22 65 78 | 74 72 61 63 74 69 6e 67 |har: "ex|tracting|
|00003d80| 20 27 6f 76 27 22 20 27 | 28 35 37 35 20 63 68 61 | 'ov'" '|(575 cha|
|00003d90| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00003da0| 74 20 2d 66 20 27 6f 76 | 27 0a 74 68 65 6e 0a 09 |t -f 'ov|'.then..|
|00003db0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|00003dc0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00003dd0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 6f |existing| file 'o|
|00003de0| 76 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |v'".else|.cat << |
|00003df0| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 6f 76 27 |\SHAR_EO|F > 'ov'|
|00003e00| 0a 20 20 20 20 20 20 20 | 20 6f 76 20 2d 2d 20 6f |. | ov -- o|
|00003e10| 56 65 72 6c 61 79 20 4f | 70 74 69 6f 6e 0a 0a 20 |Verlay O|ption.. |
|00003e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 65 | | de|
|00003e30| 66 61 75 6c 74 20 72 61 | 6e 67 65 20 20 20 20 20 |fault ra|nge |
|00003e40| 20 20 20 20 20 20 20 20 | 73 79 6e 74 61 78 0a 20 | |syntax. |
|00003e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e60| 20 31 2c 24 20 20 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00003e70| 20 20 20 20 20 20 20 20 | 6f 76 5b 69 6e 74 65 67 | |ov[integ|
|00003e80| 65 72 5d 0a 0a 20 20 20 | 20 20 20 20 20 54 68 65 |er].. | The|
|00003e90| 20 22 76 22 20 6f 70 74 | 69 6f 6e 20 69 73 20 74 | "v" opt|ion is t|
|00003ea0| 68 65 20 20 6f 76 65 72 | 6c 61 79 20 20 63 6f 6c |he over|lay col|
|00003eb0| 75 6d 6e 20 20 6e 75 6d | 62 65 72 2e 20 20 20 54 |umn num|ber. T|
|00003ec0| 79 70 69 6e 67 20 20 22 | 6f 76 22 0a 20 20 20 20 |yping "|ov". |
|00003ed0| 20 20 20 20 66 6f 6c 6c | 6f 77 65 64 20 20 62 79 | foll|owed by|
|00003ee0| 20 20 61 20 20 73 70 61 | 63 65 20 20 61 6e 64 20 | a spa|ce and |
|00003ef0| 20 61 20 6e 75 6d 62 65 | 72 20 73 65 74 73 20 74 | a numbe|r sets t|
|00003f00| 68 65 20 63 6f 6c 75 6d | 6e 20 74 68 61 74 20 74 |he colum|n that t|
|00003f10| 68 65 0a 20 20 20 20 20 | 20 20 20 63 75 72 73 6f |he. | curso|
|00003f20| 72 20 77 69 6c 6c 20 62 | 65 20 70 6f 73 69 74 69 |r will b|e positi|
|00003f30| 6f 6e 65 64 20 61 74 20 | 77 68 65 6e 20 20 69 73 |oned at |when is|
|00003f40| 73 75 69 6e 67 20 20 74 | 68 65 20 20 22 76 22 20 |suing t|he "v" |
|00003f50| 20 63 6f 6d 6d 61 6e 64 | 2e 0a 20 20 20 20 20 20 | command|.. |
|00003f60| 20 20 54 79 70 69 6e 67 | 20 22 6f 76 20 24 22 20 | Typing| "ov $" |
|00003f70| 77 69 6c 6c 20 70 6f 73 | 69 74 69 6f 6e 20 74 68 |will pos|ition th|
|00003f80| 65 20 63 75 72 73 6f 72 | 20 61 74 20 74 68 65 20 |e cursor| at the |
|00003f90| 65 6e 64 20 6f 66 20 74 | 68 65 20 6c 69 6e 65 2e |end of t|he line.|
|00003fa0| 0a 20 20 20 20 20 20 20 | 20 54 79 70 69 6e 67 20 |. | Typing |
|00003fb0| 22 6f 76 22 20 62 79 20 | 69 74 73 65 6c 66 20 77 |"ov" by |itself w|
|00003fc0| 69 6c 6c 20 64 69 73 70 | 6c 61 79 20 74 68 65 20 |ill disp|lay the |
|00003fd0| 63 75 72 72 65 6e 74 20 | 76 61 6c 75 65 2e 0a 0a |current |value...|
|00003fe0| 20 20 20 20 20 20 20 20 | 53 65 65 20 61 6c 73 6f | |See also|
|00003ff0| 20 68 6d 6f 74 69 6f 6e | 2e 0a 0a 20 20 20 20 20 | hmotion|... |
|00004000| 20 20 20 46 6f 72 20 67 | 65 6e 65 72 61 6c 20 69 | For g|eneral i|
|00004010| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00004020| 20 74 68 65 20 6f 70 74 | 69 6f 6e 20 63 6f 6d 6d | the opt|ion comm|
|00004030| 61 6e 64 2c 20 74 79 70 | 65 20 22 68 6f 22 2e 0a |and, typ|e "ho"..|
|00004040| 53 48 41 52 5f 45 4f 46 | 0a 66 69 0a 65 63 68 6f |SHAR_EOF|.fi.echo|
|00004050| 20 73 68 61 72 3a 20 22 | 65 78 74 72 61 63 74 69 | shar: "|extracti|
|00004060| 6e 67 20 27 6f 77 27 22 | 20 27 28 36 35 38 20 63 |ng 'ow'"| '(658 c|
|00004070| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00004080| 65 73 74 20 2d 66 20 27 | 6f 77 27 0a 74 68 65 6e |est -f '|ow'.then|
|00004090| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 22 77 69 |..echo s|har: "wi|
|000040a0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|000040b0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|000040c0| 27 6f 77 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |'ow'".el|se.cat <|
|000040d0| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 6f |< \SHAR_|EOF > 'o|
|000040e0| 77 27 0a 20 20 20 20 20 | 20 20 20 6f 77 20 2d 2d |w'. | ow --|
|000040f0| 20 4f 70 74 69 6f 6e 20 | 57 61 72 6e 69 6e 67 0a | Option |Warning.|
|00004100| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004110| 64 65 66 61 75 6c 74 20 | 72 61 6e 67 65 20 20 20 |default |range |
|00004120| 20 20 20 20 20 20 20 20 | 20 20 20 73 79 6e 74 61 | | synta|
|00004130| 78 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |x. | |
|00004140| 20 20 20 31 2c 24 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00004150| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 77 5b 69 | | ow[i|
|00004160| 6e 74 65 67 65 72 5d 0a | 0a 20 20 20 20 20 20 20 |nteger].|. |
|00004170| 20 54 68 65 20 22 77 22 | 20 6f 70 74 69 6f 6e 20 | The "w"| option |
|00004180| 69 73 20 74 68 65 20 20 | 57 61 72 6e 69 6e 67 20 |is the |Warning |
|00004190| 20 63 6f 6c 75 6d 6e 20 | 20 6e 75 6d 62 65 72 2e | column | number.|
|000041a0| 20 20 20 54 79 70 69 6e | 67 20 20 22 6f 77 22 0a | Typin|g "ow".|
|000041b0| 20 20 20 20 20 20 20 20 | 66 6f 6c 6c 6f 77 65 64 | |followed|
|000041c0| 20 62 79 20 61 20 6e 75 | 6d 62 65 72 20 73 65 74 | by a nu|mber set|
|000041d0| 73 20 74 68 65 20 77 61 | 72 6e 69 6e 67 20 63 6f |s the wa|rning co|
|000041e0| 6c 75 6d 6e 20 74 68 72 | 65 73 68 6f 6c 64 3b 20 |lumn thr|eshold; |
|000041f0| 73 69 6d 70 6c 79 0a 20 | 20 20 20 20 20 20 20 74 |simply. | t|
|00004200| 79 70 69 6e 67 20 20 22 | 6f 77 22 20 20 63 61 75 |yping "|ow" cau|
|00004210| 73 65 73 20 20 69 74 73 | 20 63 75 72 72 65 6e 74 |ses its| current|
|00004220| 20 76 61 6c 75 65 20 74 | 6f 20 62 65 20 64 69 73 | value t|o be dis|
|00004230| 70 6c 61 79 65 64 2e 20 | 20 57 68 65 6e 0a 20 20 |played. | When. |
|00004240| 20 20 20 20 20 20 79 6f | 75 20 61 72 65 20 61 62 | yo|u are ab|
|00004250| 6f 75 74 20 74 6f 20 74 | 79 70 65 20 69 6e 74 6f |out to t|ype into|
|00004260| 20 61 20 63 6f 6c 75 6d | 6e 20 6f 66 20 65 71 75 | a colum|n of equ|
|00004270| 61 6c 20 6f 72 20 67 72 | 65 61 74 65 72 20 6e 75 |al or gr|eater nu|
|00004280| 6d 62 65 72 0a 20 20 20 | 20 20 20 20 20 74 68 61 |mber. | tha|
|00004290| 6e 20 74 68 65 20 77 61 | 72 6e 69 6e 67 20 63 6f |n the wa|rning co|
|000042a0| 6c 75 6d 6e 2c 20 74 68 | 65 20 6e 75 6d 62 65 72 |lumn, th|e number|
|000042b0| 20 20 6f 66 20 20 74 68 | 65 20 20 63 6f 6c 75 6d | of th|e colum|
|000042c0| 6e 20 20 79 6f 75 20 20 | 61 72 65 0a 20 20 20 20 |n you |are. |
|000042d0| 20 20 20 20 61 62 6f 75 | 74 20 20 74 6f 20 74 79 | abou|t to ty|
|000042e0| 70 65 20 69 6e 74 6f 20 | 69 73 20 64 69 73 70 6c |pe into |is displ|
|000042f0| 61 79 65 64 20 6f 6e 20 | 74 68 65 20 62 6f 74 74 |ayed on |the bott|
|00004300| 6f 6d 20 6c 69 6e 65 20 | 61 6c 6f 6e 67 20 77 69 |om line |along wi|
|00004310| 74 68 0a 20 20 20 20 20 | 20 20 20 74 68 65 20 73 |th. | the s|
|00004320| 74 72 69 6e 67 20 22 63 | 6f 6c 20 20 22 2e 0a 0a |tring "c|ol "...|
|00004330| 20 20 20 20 20 20 20 20 | 46 6f 72 20 67 65 6e 65 | |For gene|
|00004340| 72 61 6c 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ral info|rmation |
|00004350| 61 62 6f 75 74 20 74 68 | 65 20 6f 70 74 69 6f 6e |about th|e option|
|00004360| 20 63 6f 6d 6d 61 6e 64 | 2c 20 74 79 70 65 20 22 | command|, type "|
|00004370| 68 6f 22 2e 0a 53 48 41 | 52 5f 45 4f 46 0a 66 69 |ho"..SHA|R_EOF.fi|
|00004380| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 22 65 78 74 |.echo sh|ar: "ext|
|00004390| 72 61 63 74 69 6e 67 20 | 27 6f 78 27 22 20 27 28 |racting |'ox'" '(|
|000043a0| 36 32 34 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |624 char|acters)'|
|000043b0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 6f 78 27 |.if test| -f 'ox'|
|000043c0| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|000043d0| 3a 20 22 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |: "will |not over|
|000043e0| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|000043f0| 66 69 6c 65 20 27 6f 78 | 27 22 0a 65 6c 73 65 0a |file 'ox|'".else.|
|00004400| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00004410| 20 3e 20 27 6f 78 27 0a | 20 20 20 20 20 20 20 20 | > 'ox'.| |
|00004420| 20 20 20 20 6f 78 20 2d | 2d 20 74 6f 67 67 6c 65 | ox -|- toggle|
|00004430| 20 74 61 62 20 63 6f 6d | 70 72 65 73 73 69 6f 6e | tab com|pression|
|00004440| 2f 65 78 70 61 6e 73 69 | 6f 6e 0a 0a 20 20 20 20 |/expansi|on.. |
|00004450| 20 20 20 20 20 20 20 20 | 64 65 66 61 75 6c 74 20 | |default |
|00004460| 72 61 6e 67 65 20 20 20 | 20 20 20 20 20 20 20 20 |range | |
|00004470| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00004480| 20 20 20 20 20 20 20 2e | 20 20 20 20 20 20 20 20 | .| |
|00004490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o|
|000044a0| 78 0a 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |x... | |
|000044b0| 22 6f 78 22 20 74 75 72 | 6e 73 20 63 6f 6d 70 72 |"ox" tur|ns compr|
|000044c0| 65 73 73 69 6f 6e 20 6f | 66 20 74 61 62 73 20 6f |ession o|f tabs o|
|000044d0| 6e 20 6f 72 20 6f 66 66 | 2e 20 49 66 20 61 20 66 |n or off|. If a f|
|000044e0| 69 6c 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ile. | |
|000044f0| 68 61 73 20 74 61 62 73 | 20 69 6e 20 69 74 2c 20 |has tabs| in it, |
|00004500| 74 68 65 79 20 77 69 6c | 6c 20 62 65 20 20 65 78 |they wil|l be ex|
|00004510| 70 61 6e 64 65 64 20 20 | 69 66 20 63 6f 6d 70 72 |panded |if compr|
|00004520| 65 73 2d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |es-. | |
|00004530| 73 69 6f 6e 20 69 73 20 | 6f 6e 2e 20 4f 74 68 65 |sion is |on. Othe|
|00004540| 72 77 69 73 65 20 74 68 | 65 79 20 77 69 6c 6c 20 |rwise th|ey will |
|00004550| 62 65 20 6c 65 66 74 20 | 61 6c 6f 6e 65 2c 20 20 |be left |alone, |
|00004560| 61 6e 64 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |and. | |
|00004570| 77 69 6c 6c 20 73 68 6f | 77 20 75 70 20 61 73 20 |will sho|w up as |
|00004580| 74 68 65 20 64 65 66 61 | 75 6c 74 20 75 6e 70 72 |the defa|ult unpr|
|00004590| 69 6e 74 61 62 6c 65 20 | 63 68 61 72 61 63 74 65 |intable |characte|
|000045a0| 72 2e 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |r... | |
|000045b0| 54 68 65 20 6d 65 73 73 | 61 67 65 20 22 58 54 41 |The mess|age "XTA|
|000045c0| 42 53 22 20 77 69 6c 6c | 20 62 65 20 64 69 73 70 |BS" will| be disp|
|000045d0| 6c 61 79 65 64 20 69 6e | 20 74 68 65 20 73 74 61 |layed in| the sta|
|000045e0| 74 75 73 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |tus. | |
|000045f0| 6c 69 6e 65 20 69 66 20 | 74 61 62 20 63 6f 6d 70 |line if |tab comp|
|00004600| 72 65 73 73 69 6f 6e 20 | 69 73 20 6f 6e 2e 0a 0a |ression |is on...|
|00004610| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 79 70 65 | | Type|
|00004620| 20 22 68 64 69 72 22 20 | 74 6f 20 67 6f 20 62 61 | "hdir" |to go ba|
|00004630| 63 6b 20 74 6f 20 74 68 | 65 20 67 65 6e 65 72 61 |ck to th|e genera|
|00004640| 6c 20 68 65 6c 70 20 64 | 69 72 65 63 74 6f 72 79 |l help d|irectory|
|00004650| 2e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 54 79 |.. | Ty|
|00004660| 70 65 20 22 68 6f 22 20 | 66 6f 72 20 68 65 6c 70 |pe "ho" |for help|
|00004670| 20 6f 6e 20 74 68 65 20 | 6f 70 74 69 6f 6e 20 63 | on the |option c|
|00004680| 6f 6d 6d 61 6e 64 2e 0a | 53 48 41 52 5f 45 4f 46 |ommand..|SHAR_EOF|
|00004690| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 22 |.fi.echo| shar: "|
|000046a0| 65 78 74 72 61 63 74 69 | 6e 67 20 27 6f 79 27 22 |extracti|ng 'oy'"|
|000046b0| 20 27 28 37 34 39 20 63 | 68 61 72 61 63 74 65 72 | '(749 c|haracter|
|000046c0| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|000046d0| 6f 79 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |oy'.then|..echo s|
|000046e0| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|000046f0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00004700| 6e 67 20 66 69 6c 65 20 | 27 6f 79 27 22 0a 65 6c |ng file |'oy'".el|
|00004710| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|00004720| 45 4f 46 20 3e 20 27 6f | 79 27 0a 0a 20 20 20 20 |EOF > 'o|y'.. |
|00004730| 20 20 20 20 6f 79 20 2d | 2d 2d 20 6f 70 74 69 6f | oy -|-- optio|
|00004740| 6e 20 65 6e 63 72 59 70 | 74 69 6f 6e 20 0a 0a 20 |n encrYp|tion .. |
|00004750| 20 20 20 20 20 20 20 64 | 65 66 61 75 6c 74 20 72 | d|efault r|
|00004760| 61 6e 67 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |ange | |
|00004770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004780| 20 20 20 20 20 20 20 73 | 79 6e 74 61 78 0a 20 20 | s|yntax. |
|00004790| 20 20 20 20 20 20 20 20 | 20 31 2c 24 20 20 20 20 | | 1,$ |
|000047a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047c0| 20 20 20 20 20 20 20 20 | 6f 79 5b 6b 65 79 5d 0a | |oy[key].|
|000047d0| 20 20 20 20 20 20 20 20 | 0a 20 20 20 20 20 20 20 | |. |
|000047e0| 20 54 68 69 73 20 6f 70 | 74 69 6f 6e 20 61 6c 6c | This op|tion all|
|000047f0| 6f 77 73 20 79 6f 75 20 | 74 6f 20 65 64 69 74 20 |ows you |to edit |
|00004800| 65 6e 63 72 79 70 74 65 | 64 20 66 69 6c 65 73 2e |encrypte|d files.|
|00004810| 20 6f 79 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 | oy foll|owed by |
|00004820| 61 20 6b 65 79 0a 20 20 | 20 20 20 20 20 20 77 69 |a key. | wi|
|00004830| 6c 6c 20 63 61 75 73 65 | 20 65 2c 20 72 2c 20 61 |ll cause| e, r, a|
|00004840| 6e 64 20 77 2c 20 63 6f | 6d 6d 61 6e 64 73 20 74 |nd w, co|mmands t|
|00004850| 6f 20 65 6e 63 72 79 70 | 74 20 20 61 6e 64 20 64 |o encryp|t and d|
|00004860| 65 63 72 79 70 74 20 66 | 69 6c 65 73 20 75 73 69 |ecrypt f|iles usi|
|00004870| 6e 67 0a 20 20 20 20 20 | 20 20 20 63 72 79 70 74 |ng. | crypt|
|00004880| 28 31 29 2e 20 20 6f 79 | 20 77 69 6c 6c 20 74 6f |(1). oy| will to|
|00004890| 67 67 6c 65 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ggle the| current|
|000048a0| 20 20 65 6e 63 72 79 70 | 74 69 6f 6e 20 73 65 74 | encryp|tion set|
|000048b0| 74 69 6e 67 2e 20 20 49 | 66 20 74 68 65 72 65 0a |ting. I|f there.|
|000048c0| 20 20 20 20 20 20 20 20 | 69 73 20 20 6e 6f 20 63 | |is no c|
|000048d0| 75 72 72 65 6e 74 20 6b | 65 79 2c 20 73 65 20 77 |urrent k|ey, se w|
|000048e0| 69 6c 6c 20 61 73 6b 20 | 79 6f 75 20 66 6f 72 20 |ill ask |you for |
|000048f0| 6f 6e 65 2e 20 49 66 20 | 65 6e 63 72 79 70 74 69 |one. If |encrypti|
|00004900| 6f 6e 20 69 73 20 74 75 | 72 6e 65 64 0a 20 20 20 |on is tu|rned. |
|00004910| 20 20 20 20 20 6f 6e 2c | 20 69 74 20 77 69 6c 6c | on,| it will|
|00004920| 20 62 65 20 20 74 75 72 | 6e 65 64 20 6f 66 66 2e | be tur|ned off.|
|00004930| 20 20 20 45 6e 63 72 79 | 70 74 69 6f 6e 20 69 6e | Encry|ption in|
|00004940| 20 69 6e 64 69 63 61 74 | 65 64 20 62 79 20 74 68 | indicat|ed by th|
|00004950| 65 20 6d 65 73 73 61 67 | 65 0a 20 20 20 20 20 20 |e messag|e. |
|00004960| 20 20 22 45 4e 43 52 59 | 50 54 22 20 69 6e 20 74 | "ENCRY|PT" in t|
|00004970| 68 65 20 73 74 61 74 75 | 73 20 6c 69 6e 65 2e 20 |he statu|s line. |
|00004980| 54 68 65 20 6b 65 79 20 | 69 73 20 6e 65 76 65 72 |The key |is never|
|00004990| 20 73 68 6f 77 6e 20 6f | 6e 20 79 6f 75 72 20 73 | shown o|n your s|
|000049a0| 63 72 65 65 6e 2e 0a 0a | 20 20 20 20 20 20 20 20 |creen...| |
|000049b0| 54 79 70 65 20 22 68 6f | 22 20 66 6f 72 20 68 65 |Type "ho|" for he|
|000049c0| 6c 70 20 6f 6e 20 74 68 | 65 20 6f 70 74 69 6f 6e |lp on th|e option|
|000049d0| 20 63 6f 6d 6d 61 6e 64 | 2e 0a 20 20 20 20 20 20 | command|.. |
|000049e0| 20 20 54 79 70 65 20 22 | 68 64 69 72 22 20 74 6f | Type "|hdir" to|
|000049f0| 20 67 6f 20 62 61 63 6b | 20 74 6f 20 74 68 65 20 | go back| to the |
|00004a00| 67 65 6e 65 72 61 6c 20 | 68 65 6c 70 20 64 69 72 |general |help dir|
|00004a10| 65 63 74 6f 72 79 2e 0a | 53 48 41 52 5f 45 4f 46 |ectory..|SHAR_EOF|
|00004a20| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 22 |.fi.echo| shar: "|
|00004a30| 65 78 74 72 61 63 74 69 | 6e 67 20 27 6f 7a 27 22 |extracti|ng 'oz'"|
|00004a40| 20 27 28 34 34 37 20 63 | 68 61 72 61 63 74 65 72 | '(447 c|haracter|
|00004a50| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00004a60| 6f 7a 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |oz'.then|..echo s|
|00004a70| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00004a80| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00004a90| 6e 67 20 66 69 6c 65 20 | 27 6f 7a 27 22 0a 65 6c |ng file |'oz'".el|
|00004aa0| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|00004ab0| 45 4f 46 20 3e 20 27 6f | 7a 27 0a 0a 20 20 20 20 |EOF > 'o|z'.. |
|00004ac0| 20 20 20 20 6f 7a 20 2d | 2d 20 6f 70 74 69 6f 6e | oz -|- option|
|00004ad0| 20 73 6c 65 65 70 20 28 | 7a 7a 7a 7a 27 73 29 0a | sleep (|zzzz's).|
|00004ae0| 0a 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 |. | default|
|00004af0| 20 72 61 6e 67 65 20 20 | 20 20 20 20 20 20 20 20 | range | |
|00004b00| 20 73 79 6e 74 61 78 0a | 20 20 20 20 20 20 20 20 | syntax.| |
|00004b10| 20 20 31 2c 24 20 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00004b20| 20 20 20 20 20 20 20 20 | 20 20 6f 7a 0a 0a 20 20 | | oz.. |
|00004b30| 20 20 20 20 20 20 49 66 | 20 79 6f 75 20 61 72 65 | If| you are|
|00004b40| 20 72 75 6e 6e 69 6e 67 | 20 22 73 68 22 2c 20 74 | running| "sh", t|
|00004b50| 68 69 73 20 6f 70 74 69 | 6f 6e 20 68 61 73 20 61 |his opti|on has a|
|00004b60| 62 73 6f 6c 75 74 65 6c | 79 20 6e 6f 20 65 66 66 |bsolutel|y no eff|
|00004b70| 65 63 74 20 61 74 0a 20 | 20 20 20 20 20 20 20 61 |ect at. | a|
|00004b80| 6c 6c 2e 20 20 49 66 20 | 79 6f 75 20 61 72 65 20 |ll. If |you are |
|00004b90| 72 75 6e 6e 69 6e 67 20 | 74 68 65 20 22 63 73 68 |running |the "csh|
|00004ba0| 22 2c 20 74 68 69 73 20 | 6f 70 74 69 6f 6e 20 77 |", this |option w|
|00004bb0| 69 6c 6c 20 73 75 73 70 | 65 6e 64 20 20 73 65 0a |ill susp|end se.|
|00004bc0| 20 20 20 20 20 20 20 20 | 69 6e 20 74 68 65 20 62 | |in the b|
|00004bd0| 61 63 6b 67 72 6f 75 6e | 64 2e 20 20 53 65 20 77 |ackgroun|d. Se w|
|00004be0| 69 6c 6c 20 69 73 73 75 | 65 20 20 61 20 77 61 72 |ill issu|e a war|
|00004bf0| 6e 69 6e 67 20 20 69 66 | 20 20 74 68 65 20 62 75 |ning if| the bu|
|00004c00| 66 66 65 72 20 68 61 73 | 0a 20 20 20 20 20 20 20 |ffer has|. |
|00004c10| 20 6e 6f 74 20 62 65 65 | 6e 20 73 61 76 65 64 2c | not bee|n saved,|
|00004c20| 20 77 68 65 6e 20 74 68 | 69 73 20 69 73 20 64 6f | when th|is is do|
|00004c30| 6e 65 2e 0a 0a 20 20 20 | 20 20 20 20 20 46 6f 72 |ne... | For|
|00004c40| 20 67 65 6e 65 72 61 6c | 20 69 6e 66 6f 72 6d 61 | general| informa|
|00004c50| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 6f |tion abo|ut the o|
|00004c60| 70 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 2c 20 74 |ption co|mmand, t|
|00004c70| 79 70 65 20 22 68 6f 22 | 2e 0a 53 48 41 52 5f 45 |ype "ho"|..SHAR_E|
|00004c80| 4f 46 0a 66 69 0a 65 63 | 68 6f 20 73 68 61 72 3a |OF.fi.ec|ho shar:|
|00004c90| 20 22 65 78 74 72 61 63 | 74 69 6e 67 20 27 70 27 | "extrac|ting 'p'|
|00004ca0| 22 20 27 28 36 34 32 20 | 63 68 61 72 61 63 74 65 |" '(642 |characte|
|00004cb0| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00004cc0| 27 70 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |'p'.then|..echo s|
|00004cd0| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00004ce0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00004cf0| 6e 67 20 66 69 6c 65 20 | 27 70 27 22 0a 65 6c 73 |ng file |'p'".els|
|00004d00| 65 0a 63 61 74 20 3c 3c | 20 5c 53 48 41 52 5f 45 |e.cat <<| \SHAR_E|
|00004d10| 4f 46 20 3e 20 27 70 27 | 0a 20 20 20 20 20 20 20 |OF > 'p'|. |
|00004d20| 20 20 20 70 20 20 20 20 | 2d 2d 20 50 72 69 6e 74 | p |-- Print|
|00004d30| 2f 50 72 65 76 69 6f 75 | 73 20 73 63 72 65 65 6e |/Previou|s screen|
|00004d40| 20 63 6f 6d 6d 61 6e 64 | 0a 0a 20 20 20 20 20 20 | command|.. |
|00004d50| 20 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 | | default|
|00004d60| 20 72 61 6e 67 65 20 20 | 20 20 20 20 20 20 20 20 | range | |
|00004d70| 20 73 79 6e 74 61 78 0a | 20 20 20 20 20 20 20 20 | syntax.| |
|00004d80| 20 20 20 20 20 20 20 73 | 65 65 20 62 65 6c 6f 77 | s|ee below|
|00004d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 5b | | [|
|00004da0| 72 61 6e 67 65 5d 20 70 | 0a 0a 20 20 20 20 20 20 |range] p|.. |
|00004db0| 20 20 22 70 22 20 20 70 | 72 69 6e 74 73 20 20 61 | "p" p|rints a|
|00004dc0| 20 20 72 61 6e 67 65 20 | 6f 66 20 6c 69 6e 65 73 | range |of lines|
|00004dd0| 20 6f 72 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 | or the |previous|
|00004de0| 20 73 63 72 65 65 6e 20 | 28 77 68 65 6e 20 6e 6f | screen |(when no|
|00004df0| 0a 20 20 20 20 20 20 20 | 20 72 61 6e 67 65 20 69 |. | range i|
|00004e00| 73 20 70 72 6f 76 69 64 | 65 64 29 2e 20 20 54 68 |s provid|ed). Th|
|00004e10| 65 20 6c 69 6e 65 20 70 | 6f 69 6e 74 65 72 20 69 |e line p|ointer i|
|00004e20| 73 20 73 65 74 20 74 6f | 20 74 68 65 20 6c 61 73 |s set to| the las|
|00004e30| 74 20 20 6c 69 6e 65 0a | 20 20 20 20 20 20 20 20 |t line.| |
|00004e40| 70 72 69 6e 74 65 64 20 | 20 28 61 20 20 6e 65 77 |printed | (a new|
|00004e50| 20 20 73 63 72 65 65 6e | 20 20 6d 61 79 20 20 62 | screen| may b|
|00004e60| 65 20 70 72 69 6e 74 65 | 64 29 2e 20 20 57 68 65 |e printe|d). Whe|
|00004e70| 6e 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 0a 20 |n the pr|evious. |
|00004e80| 20 20 20 20 20 20 20 73 | 63 72 65 65 6e 20 69 73 | s|creen is|
|00004e90| 20 70 72 69 6e 74 65 64 | 2c 20 74 68 65 20 66 69 | printed|, the fi|
|00004ea0| 72 73 74 20 6c 69 6e 65 | 20 6f 6e 20 74 68 65 20 |rst line| on the |
|00004eb0| 20 63 75 72 72 65 6e 74 | 20 20 73 63 72 65 65 6e | current| screen|
|00004ec0| 20 20 62 65 2d 0a 20 20 | 20 20 20 20 20 20 63 6f | be-. | co|
|00004ed0| 6d 65 73 20 20 74 68 65 | 20 20 6c 69 6e 65 20 20 |mes the| line |
|00004ee0| 70 6f 69 6e 74 65 72 2c | 20 75 73 75 61 6c 6c 79 |pointer,| usually|
|00004ef0| 20 74 68 65 20 6c 61 73 | 74 20 6c 69 6e 65 20 6f | the las|t line o|
|00004f00| 6e 20 74 68 65 20 73 63 | 72 65 65 6e 0a 20 20 20 |n the sc|reen. |
|00004f10| 20 20 20 20 20 28 65 78 | 63 65 70 74 69 6f 6e 20 | (ex|ception |
|00004f20| 69 73 20 77 68 65 6e 20 | 74 68 65 20 66 69 72 73 |is when |the firs|
|00004f30| 74 20 70 61 67 65 20 69 | 73 20 70 72 69 6e 74 65 |t page i|s printe|
|00004f40| 64 29 2e 0a 0a 20 20 20 | 20 20 20 20 20 54 6f 20 |d)... | To |
|00004f50| 72 65 74 75 72 6e 20 74 | 6f 20 74 68 65 20 63 6f |return t|o the co|
|00004f60| 6d 6d 61 6e 64 20 64 69 | 72 65 63 74 6f 72 79 2c |mmand di|rectory,|
|00004f70| 20 74 79 70 65 20 22 68 | 63 6f 6d 64 69 72 2e 22 | type "h|comdir."|
|00004f80| 0a 20 20 20 20 20 20 20 | 20 53 65 65 20 61 6c 73 |. | See als|
|00004f90| 6f 20 22 68 73 70 65 63 | 6c 22 0a 53 48 41 52 5f |o "hspec|l".SHAR_|
|00004fa0| 45 4f 46 0a 66 69 0a 65 | 63 68 6f 20 73 68 61 72 |EOF.fi.e|cho shar|
|00004fb0| 3a 20 22 65 78 74 72 61 | 63 74 69 6e 67 20 27 70 |: "extra|cting 'p|
|00004fc0| 61 74 27 22 20 27 28 39 | 33 30 20 63 68 61 72 61 |at'" '(9|30 chara|
|00004fd0| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00004fe0| 2d 66 20 27 70 61 74 27 | 0a 74 68 65 6e 0a 09 65 |-f 'pat'|.then..e|
|00004ff0| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|00005000| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00005010| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 70 61 |xisting |file 'pa|
|00005020| 74 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |t'".else|.cat << |
|00005030| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 70 61 74 |\SHAR_EO|F > 'pat|
|00005040| 27 0a 20 20 20 20 20 20 | 20 20 41 20 50 41 54 54 |'. | A PATT|
|00005050| 45 52 4e 20 69 73 20 61 | 20 73 74 72 69 6e 67 20 |ERN is a| string |
|00005060| 6f 66 20 63 68 61 72 61 | 63 74 65 72 73 20 74 68 |of chara|cters th|
|00005070| 61 74 20 73 70 65 63 69 | 66 69 65 73 20 20 61 20 |at speci|fies a |
|00005080| 20 73 65 74 20 20 6f 66 | 0a 20 20 20 20 20 20 20 | set of|. |
|00005090| 20 70 6f 73 73 69 62 6c | 65 20 20 73 74 72 69 6e | possibl|e strin|
|000050a0| 67 73 20 20 6f 66 20 20 | 63 68 61 72 61 63 74 65 |gs of |characte|
|000050b0| 72 73 20 20 74 68 61 74 | 20 20 61 72 65 20 73 61 |rs that| are sa|
|000050c0| 69 64 20 74 6f 20 4d 41 | 54 43 48 20 74 68 65 0a |id to MA|TCH the.|
|000050d0| 20 20 20 20 20 20 20 20 | 70 61 74 74 65 72 6e 2e | |pattern.|
|000050e0| 20 20 4d 6f 73 74 20 63 | 68 61 72 61 63 74 65 72 | Most c|haracter|
|000050f0| 73 20 69 6e 20 70 61 74 | 74 65 72 6e 73 20 20 73 |s in pat|terns s|
|00005100| 74 61 6e 64 20 20 66 6f | 72 20 20 74 68 65 6d 73 |tand fo|r thems|
|00005110| 65 6c 76 65 73 2c 0a 20 | 20 20 20 20 20 20 20 62 |elves,. | b|
|00005120| 75 74 20 20 20 74 68 65 | 72 65 20 20 20 61 72 65 |ut the|re are|
|00005130| 20 20 20 6d 65 74 61 63 | 68 61 72 61 63 74 65 72 | metac|haracter|
|00005140| 73 3a 20 20 20 22 2e 22 | 20 20 20 74 68 61 74 20 |s: "."| that |
|00005150| 20 6d 61 74 63 68 65 73 | 20 20 61 6e 79 0a 20 20 | matches| any. |
|00005160| 20 20 20 20 20 20 63 68 | 61 72 61 63 74 65 72 2c | ch|aracter,|
|00005170| 20 22 2a 22 20 74 68 61 | 74 20 61 6c 6f 6e 67 20 | "*" tha|t along |
|00005180| 77 69 74 68 20 74 68 65 | 20 70 72 65 76 69 6f 75 |with the| previou|
|00005190| 73 20 63 68 61 72 61 63 | 74 65 72 2c 20 6d 61 74 |s charac|ter, mat|
|000051a0| 63 68 65 73 0a 20 20 20 | 20 20 20 20 20 61 6e 79 |ches. | any|
|000051b0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 72 65 70 65 74 | number |of repet|
|000051c0| 69 74 69 6f 6e 73 20 6f | 66 20 20 69 74 20 20 28 |itions o|f it (|
|000051d0| 69 6e 63 6c 75 64 69 6e | 67 20 20 6e 6f 6e 65 29 |includin|g none)|
|000051e0| 2c 20 20 22 5e 22 20 20 | 66 6f 72 0a 20 20 20 20 |, "^" |for. |
|000051f0| 20 20 20 20 62 65 67 69 | 6e 6e 69 6e 67 20 20 6f | begi|nning o|
|00005200| 66 20 20 6c 69 6e 65 2c | 20 20 22 24 22 20 20 66 |f line,| "$" f|
|00005210| 6f 72 20 20 65 6e 64 20 | 6f 66 20 6c 69 6e 65 2c |or end |of line,|
|00005220| 20 61 6e 64 20 63 68 61 | 72 61 63 74 65 72 73 20 | and cha|racters |
|00005230| 69 6e 0a 20 20 20 20 20 | 20 20 20 62 72 61 63 6b |in. | brack|
|00005240| 65 74 73 20 22 5b 5d 22 | 20 74 6f 20 6d 61 74 63 |ets "[]"| to matc|
|00005250| 68 20 61 6e 79 20 6f 66 | 20 20 74 68 65 20 20 63 |h any of| the c|
|00005260| 68 61 72 61 63 74 65 72 | 73 2e 20 20 20 54 68 65 |haracter|s. The|
|00005270| 20 20 73 70 65 63 69 61 | 6c 0a 20 20 20 20 20 20 | specia|l. |
|00005280| 20 20 73 65 6e 73 65 20 | 20 6f 66 20 20 6d 65 74 | sense | of met|
|00005290| 61 63 68 61 72 61 63 74 | 65 72 73 20 20 61 6e 64 |acharact|ers and|
|000052a0| 20 20 6f 66 20 74 68 65 | 20 64 65 6c 69 6d 69 74 | of the| delimit|
|000052b0| 65 72 73 20 69 6e 20 77 | 68 69 63 68 20 74 68 65 |ers in w|hich the|
|000052c0| 0a 20 20 20 20 20 20 20 | 20 70 61 74 74 65 72 6e |. | pattern|
|000052d0| 20 69 73 20 65 6e 63 6c | 6f 73 65 64 20 63 61 6e | is encl|osed can|
|000052e0| 20 61 6c 77 61 79 73 20 | 62 65 20 20 74 75 72 6e | always |be turn|
|000052f0| 65 64 20 20 6f 66 66 20 | 20 62 79 20 20 70 72 65 |ed off | by pre|
|00005300| 63 65 65 64 69 6e 67 0a | 20 20 20 20 20 20 20 20 |ceeding.| |
|00005310| 74 68 65 6d 20 77 69 74 | 68 20 74 68 65 20 65 73 |them wit|h the es|
|00005320| 63 61 70 65 20 63 68 61 | 72 61 63 74 65 72 20 22 |cape cha|racter "|
|00005330| 5c 22 2e 0a 0a 20 20 20 | 20 20 20 20 20 53 65 65 |\"... | See|
|00005340| 20 61 6c 73 6f 20 22 68 | 73 22 2c 20 22 68 67 22 | also "h|s", "hg"|
|00005350| 2c 20 22 68 78 22 20 66 | 6f 72 20 75 73 65 73 20 |, "hx" f|or uses |
|00005360| 6f 66 20 70 61 74 74 65 | 72 6e 73 2e 0a 20 20 20 |of patte|rns.. |
|00005370| 20 20 20 20 20 46 6f 72 | 20 74 68 65 20 75 73 65 | For| the use|
|00005380| 20 6f 66 20 70 61 74 74 | 65 72 6e 73 20 69 6e 20 | of patt|erns in |
|00005390| 6c 69 6e 65 20 6e 75 6d | 62 65 72 73 2c 20 74 79 |line num|bers, ty|
|000053a0| 70 65 20 22 68 73 63 61 | 6e 22 2e 0a 20 20 20 20 |pe "hsca|n".. |
|000053b0| 20 20 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 73 | For |examples|
|000053c0| 20 6f 66 20 70 61 74 74 | 65 72 6e 20 6d 61 74 63 | of patt|ern matc|
|000053d0| 68 65 73 2c 20 74 79 70 | 65 20 22 68 70 61 74 65 |hes, typ|e "hpate|
|000053e0| 78 22 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |x"..SHAR|_EOF.fi.|
|000053f0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 78 74 72 |echo sha|r: "extr|
|00005400| 61 63 74 69 6e 67 20 27 | 70 61 74 5f 73 77 74 27 |acting '|pat_swt'|
|00005410| 22 20 27 28 39 33 30 20 | 63 68 61 72 61 63 74 65 |" '(930 |characte|
|00005420| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00005430| 27 70 61 74 5f 73 77 74 | 27 0a 74 68 65 6e 0a 09 |'pat_swt|'.then..|
|00005440| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|00005450| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00005460| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 70 |existing| file 'p|
|00005470| 61 74 5f 73 77 74 27 22 | 0a 65 6c 73 65 0a 63 61 |at_swt'"|.else.ca|
|00005480| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00005490| 20 27 70 61 74 5f 73 77 | 74 27 0a 20 20 20 20 20 | 'pat_sw|t'. |
|000054a0| 20 20 20 41 20 50 41 54 | 54 45 52 4e 20 69 73 20 | A PAT|TERN is |
|000054b0| 61 20 73 74 72 69 6e 67 | 20 6f 66 20 63 68 61 72 |a string| of char|
|000054c0| 61 63 74 65 72 73 20 74 | 68 61 74 20 73 70 65 63 |acters t|hat spec|
|000054d0| 69 66 69 65 73 20 20 61 | 20 20 73 65 74 20 20 6f |ifies a| set o|
|000054e0| 66 0a 20 20 20 20 20 20 | 20 20 70 6f 73 73 69 62 |f. | possib|
|000054f0| 6c 65 20 20 73 74 72 69 | 6e 67 73 20 20 6f 66 20 |le stri|ngs of |
|00005500| 20 63 68 61 72 61 63 74 | 65 72 73 20 20 74 68 61 | charact|ers tha|
|00005510| 74 20 20 61 72 65 20 73 | 61 69 64 20 74 6f 20 4d |t are s|aid to M|
|00005520| 41 54 43 48 20 74 68 65 | 0a 20 20 20 20 20 20 20 |ATCH the|. |
|00005530| 20 70 61 74 74 65 72 6e | 2e 20 20 4d 6f 73 74 20 | pattern|. Most |
|00005540| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 70 61 |characte|rs in pa|
|00005550| 74 74 65 72 6e 73 20 20 | 73 74 61 6e 64 20 20 66 |tterns |stand f|
|00005560| 6f 72 20 20 74 68 65 6d | 73 65 6c 76 65 73 2c 0a |or them|selves,.|
|00005570| 20 20 20 20 20 20 20 20 | 62 75 74 20 20 20 74 68 | |but th|
|00005580| 65 72 65 20 20 20 61 72 | 65 20 20 20 6d 65 74 61 |ere ar|e meta|
|00005590| 63 68 61 72 61 63 74 65 | 72 73 3a 20 20 20 22 3f |characte|rs: "?|
|000055a0| 22 20 20 20 74 68 61 74 | 20 20 6d 61 74 63 68 65 |" that| matche|
|000055b0| 73 20 20 61 6e 79 0a 20 | 20 20 20 20 20 20 20 63 |s any. | c|
|000055c0| 68 61 72 61 63 74 65 72 | 2c 20 22 2a 22 20 74 68 |haracter|, "*" th|
|000055d0| 61 74 20 61 6c 6f 6e 67 | 20 77 69 74 68 20 74 68 |at along| with th|
|000055e0| 65 20 70 72 65 76 69 6f | 75 73 20 63 68 61 72 61 |e previo|us chara|
|000055f0| 63 74 65 72 2c 20 6d 61 | 74 63 68 65 73 0a 20 20 |cter, ma|tches. |
|00005600| 20 20 20 20 20 20 61 6e | 79 20 6e 75 6d 62 65 72 | an|y number|
|00005610| 20 6f 66 20 72 65 70 65 | 74 69 74 69 6f 6e 73 20 | of repe|titions |
|00005620| 6f 66 20 20 69 74 20 20 | 28 69 6e 63 6c 75 64 69 |of it |(includi|
|00005630| 6e 67 20 20 6e 6f 6e 65 | 29 2c 20 20 22 25 22 20 |ng none|), "%" |
|00005640| 20 66 6f 72 0a 20 20 20 | 20 20 20 20 20 62 65 67 | for. | beg|
|00005650| 69 6e 6e 69 6e 67 20 20 | 6f 66 20 20 6c 69 6e 65 |inning |of line|
|00005660| 2c 20 20 22 24 22 20 20 | 66 6f 72 20 20 65 6e 64 |, "$" |for end|
|00005670| 20 6f 66 20 6c 69 6e 65 | 2c 20 61 6e 64 20 63 68 | of line|, and ch|
|00005680| 61 72 61 63 74 65 72 73 | 20 69 6e 0a 20 20 20 20 |aracters| in. |
|00005690| 20 20 20 20 62 72 61 63 | 6b 65 74 73 20 22 5b 5d | brac|kets "[]|
|000056a0| 22 20 74 6f 20 6d 61 74 | 63 68 20 61 6e 79 20 6f |" to mat|ch any o|
|000056b0| 66 20 20 74 68 65 20 20 | 63 68 61 72 61 63 74 65 |f the |characte|
|000056c0| 72 73 2e 20 20 20 54 68 | 65 20 20 73 70 65 63 69 |rs. Th|e speci|
|000056d0| 61 6c 0a 20 20 20 20 20 | 20 20 20 73 65 6e 73 65 |al. | sense|
|000056e0| 20 20 6f 66 20 20 6d 65 | 74 61 63 68 61 72 61 63 | of me|tacharac|
|000056f0| 74 65 72 73 20 20 61 6e | 64 20 20 6f 66 20 74 68 |ters an|d of th|
|00005700| 65 20 64 65 6c 69 6d 69 | 74 65 72 73 20 69 6e 20 |e delimi|ters in |
|00005710| 77 68 69 63 68 20 74 68 | 65 0a 20 20 20 20 20 20 |which th|e. |
|00005720| 20 20 70 61 74 74 65 72 | 6e 20 69 73 20 65 6e 63 | patter|n is enc|
|00005730| 6c 6f 73 65 64 20 63 61 | 6e 20 61 6c 77 61 79 73 |losed ca|n always|
|00005740| 20 62 65 20 20 74 75 72 | 6e 65 64 20 20 6f 66 66 | be tur|ned off|
|00005750| 20 20 62 79 20 20 70 72 | 65 63 65 65 64 69 6e 67 | by pr|eceeding|
|00005760| 0a 20 20 20 20 20 20 20 | 20 74 68 65 6d 20 77 69 |. | them wi|
|00005770| 74 68 20 74 68 65 20 65 | 73 63 61 70 65 20 63 68 |th the e|scape ch|
|00005780| 61 72 61 63 74 65 72 20 | 22 40 22 2e 0a 0a 20 20 |aracter |"@"... |
|00005790| 20 20 20 20 20 20 53 65 | 65 20 61 6c 73 6f 20 22 | Se|e also "|
|000057a0| 68 73 22 2c 20 22 68 67 | 22 2c 20 22 68 78 22 20 |hs", "hg|", "hx" |
|000057b0| 66 6f 72 20 75 73 65 73 | 20 6f 66 20 70 61 74 74 |for uses| of patt|
|000057c0| 65 72 6e 73 2e 0a 20 20 | 20 20 20 20 20 20 46 6f |erns.. | Fo|
|000057d0| 72 20 74 68 65 20 75 73 | 65 20 6f 66 20 70 61 74 |r the us|e of pat|
|000057e0| 74 65 72 6e 73 20 69 6e | 20 6c 69 6e 65 20 6e 75 |terns in| line nu|
|000057f0| 6d 62 65 72 73 2c 20 74 | 79 70 65 20 22 68 73 63 |mbers, t|ype "hsc|
|00005800| 61 6e 22 2e 0a 20 20 20 | 20 20 20 20 20 46 6f 72 |an".. | For|
|00005810| 20 65 78 61 6d 70 6c 65 | 73 20 6f 66 20 70 61 74 | example|s of pat|
|00005820| 74 65 72 6e 20 6d 61 74 | 63 68 65 73 2c 20 74 79 |tern mat|ches, ty|
|00005830| 70 65 20 22 68 70 61 74 | 65 78 22 2e 0a 53 48 41 |pe "hpat|ex"..SHA|
|00005840| 52 5f 45 4f 46 0a 66 69 | 0a 65 63 68 6f 20 73 68 |R_EOF.fi|.echo sh|
|00005850| 61 72 3a 20 22 65 78 74 | 72 61 63 74 69 6e 67 20 |ar: "ext|racting |
|00005860| 27 70 61 74 65 78 27 22 | 20 27 28 34 38 35 20 63 |'patex'"| '(485 c|
|00005870| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00005880| 65 73 74 20 2d 66 20 27 | 70 61 74 65 78 27 0a 74 |est -f '|patex'.t|
|00005890| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000058a0| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|000058b0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000058c0| 6c 65 20 27 70 61 74 65 | 78 27 22 0a 65 6c 73 65 |le 'pate|x'".else|
|000058d0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|000058e0| 46 20 3e 20 27 70 61 74 | 65 78 27 0a 20 20 20 20 |F > 'pat|ex'. |
|000058f0| 20 20 20 20 20 50 41 54 | 54 45 52 4e 20 20 20 20 | PAT|TERN |
|00005900| 20 20 20 4d 41 54 43 48 | 45 53 20 20 20 20 20 44 | MATCH|ES D|
|00005910| 4f 45 53 4e 27 54 20 4d | 41 54 43 48 0a 0a 20 20 |OESN'T M|ATCH.. |
|00005920| 20 20 20 20 20 20 22 74 | 65 73 74 22 20 20 20 20 | "t|est" |
|00005930| 20 20 20 20 20 22 74 65 | 73 74 66 6f 6f 22 20 20 | "te|stfoo" |
|00005940| 20 22 66 6f 6f 62 61 72 | 22 0a 20 20 20 20 20 20 | "foobar|". |
|00005950| 20 20 22 74 65 73 74 24 | 22 20 20 20 20 20 20 20 | "test$|" |
|00005960| 20 22 66 6f 6f 74 65 73 | 74 22 20 20 20 22 74 65 | "footes|t" "te|
|00005970| 73 74 20 22 0a 20 20 20 | 20 20 20 20 20 22 24 22 |st ". | "$"|
|00005980| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 6e 79 74 | | anyt|
|00005990| 68 69 6e 67 0a 20 20 20 | 20 20 20 20 20 22 61 62 |hing. | "ab|
|000059a0| 2a 63 22 20 20 20 20 20 | 20 20 20 20 22 61 62 62 |*c" | "abb|
|000059b0| 62 62 62 62 63 22 20 20 | 22 62 62 62 62 62 62 63 |bbbbc" |"bbbbbbc|
|000059c0| 22 0a 20 20 20 20 20 20 | 20 20 22 61 62 2a 63 22 |". | "ab*c"|
|000059d0| 20 20 20 20 20 20 20 20 | 20 22 61 63 20 63 75 72 | | "ac cur|
|000059e0| 22 20 20 20 20 22 61 62 | 2a 63 22 0a 20 20 20 20 |" "ab|*c". |
|000059f0| 20 20 20 20 22 5e 61 62 | 63 22 20 20 20 20 20 20 | "^ab|c" |
|00005a00| 20 20 20 22 61 62 63 61 | 63 22 20 20 20 20 20 22 | "abca|c" "|
|00005a10| 62 63 61 62 63 22 0a 20 | 20 20 20 20 20 20 20 22 |bcabc". | "|
|00005a20| 61 62 63 5e 22 20 20 20 | 20 20 20 20 20 20 22 61 |abc^" | "a|
|00005a30| 62 63 5e 64 22 20 20 20 | 20 20 22 61 62 2a 63 22 |bc^d" | "ab*c"|
|00005a40| 0a 20 20 20 20 20 20 20 | 20 22 61 5b 62 63 64 5d |. | "a[bcd]|
|00005a50| 2a 65 22 20 20 20 20 20 | 22 61 62 64 64 63 65 61 |*e" |"abddcea|
|00005a60| 62 22 20 20 22 65 65 65 | 61 61 61 22 0a 20 20 20 |b" "eee|aaa". |
|00005a70| 20 20 20 20 20 22 61 5b | 62 63 64 5d 2a 65 22 20 | "a[|bcd]*e" |
|00005a80| 20 20 20 20 22 61 61 61 | 65 65 65 22 20 20 20 20 | "aaa|eee" |
|00005a90| 22 62 63 64 62 63 64 65 | 22 0a 0a 20 20 20 20 20 |"bcdbcde|".. |
|00005aa0| 20 20 20 46 6f 72 20 67 | 65 6e 65 72 61 6c 20 69 | For g|eneral i|
|00005ab0| 6e 66 6f 20 61 62 6f 75 | 74 20 70 61 74 74 65 72 |nfo abou|t patter|
|00005ac0| 6e 73 2c 20 74 79 70 65 | 20 22 68 70 61 74 22 2e |ns, type| "hpat".|
|00005ad0| 0a 53 48 41 52 5f 45 4f | 46 0a 66 69 0a 65 63 68 |.SHAR_EO|F.fi.ech|
|00005ae0| 6f 20 73 68 61 72 3a 20 | 22 65 78 74 72 61 63 74 |o shar: |"extract|
|00005af0| 69 6e 67 20 27 70 61 74 | 65 78 5f 73 77 74 27 22 |ing 'pat|ex_swt'"|
|00005b00| 20 27 28 34 38 35 20 63 | 68 61 72 61 63 74 65 72 | '(485 c|haracter|
|00005b10| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00005b20| 70 61 74 65 78 5f 73 77 | 74 27 0a 74 68 65 6e 0a |patex_sw|t'.then.|
|00005b30| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00005b40| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00005b50| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|00005b60| 70 61 74 65 78 5f 73 77 | 74 27 22 0a 65 6c 73 65 |patex_sw|t'".else|
|00005b70| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00005b80| 46 20 3e 20 27 70 61 74 | 65 78 5f 73 77 74 27 0a |F > 'pat|ex_swt'.|
|00005b90| 20 20 20 20 20 20 20 20 | 20 50 41 54 54 45 52 4e | | PATTERN|
|00005ba0| 20 20 20 20 20 20 20 4d | 41 54 43 48 45 53 20 20 | M|ATCHES |
|00005bb0| 20 20 20 44 4f 45 53 4e | 27 54 20 4d 41 54 43 48 | DOESN|'T MATCH|
|00005bc0| 0a 0a 20 20 20 20 20 20 | 20 20 22 74 65 73 74 22 |.. | "test"|
|00005bd0| 20 20 20 20 20 20 20 20 | 20 22 74 65 73 74 66 6f | | "testfo|
|00005be0| 6f 22 20 20 20 22 66 6f | 6f 62 61 72 22 0a 20 20 |o" "fo|obar". |
|00005bf0| 20 20 20 20 20 20 22 74 | 65 73 74 24 22 20 20 20 | "t|est$" |
|00005c00| 20 20 20 20 20 22 66 6f | 6f 74 65 73 74 22 20 20 | "fo|otest" |
|00005c10| 20 22 74 65 73 74 20 22 | 0a 20 20 20 20 20 20 20 | "test "|. |
|00005c20| 20 22 24 22 20 20 20 20 | 20 20 20 20 20 20 20 20 | "$" | |
|00005c30| 61 6e 79 74 68 69 6e 67 | 0a 20 20 20 20 20 20 20 |anything|. |
|00005c40| 20 22 61 62 2a 63 22 20 | 20 20 20 20 20 20 20 20 | "ab*c" | |
|00005c50| 22 61 62 62 62 62 62 62 | 63 22 20 20 22 62 62 62 |"abbbbbb|c" "bbb|
|00005c60| 62 62 62 63 22 0a 20 20 | 20 20 20 20 20 20 22 61 |bbbc". | "a|
|00005c70| 62 2a 63 22 20 20 20 20 | 20 20 20 20 20 22 61 63 |b*c" | "ac|
|00005c80| 20 63 75 72 22 20 20 20 | 20 22 61 62 2a 63 22 0a | cur" | "ab*c".|
|00005c90| 20 20 20 20 20 20 20 20 | 22 25 61 62 63 22 20 20 | |"%abc" |
|00005ca0| 20 20 20 20 20 20 20 22 | 61 62 63 61 63 22 20 20 | "|abcac" |
|00005cb0| 20 20 20 22 62 63 61 62 | 63 22 0a 20 20 20 20 20 | "bcab|c". |
|00005cc0| 20 20 20 22 61 62 63 25 | 22 20 20 20 20 20 20 20 | "abc%|" |
|00005cd0| 20 20 22 61 62 63 25 64 | 22 20 20 20 20 20 22 61 | "abc%d|" "a|
|00005ce0| 62 2a 63 22 0a 20 20 20 | 20 20 20 20 20 22 61 5b |b*c". | "a[|
|00005cf0| 62 63 64 5d 2a 65 22 20 | 20 20 20 20 22 61 62 64 |bcd]*e" | "abd|
|00005d00| 64 63 65 61 62 22 20 20 | 22 65 65 65 61 61 61 22 |dceab" |"eeeaaa"|
|00005d10| 0a 20 20 20 20 20 20 20 | 20 22 61 5b 62 63 64 5d |. | "a[bcd]|
|00005d20| 2a 65 22 20 20 20 20 20 | 22 61 61 61 65 65 65 22 |*e" |"aaaeee"|
|00005d30| 20 20 20 20 22 62 63 64 | 62 63 64 65 22 0a 0a 20 | "bcd|bcde".. |
|00005d40| 20 20 20 20 20 20 20 46 | 6f 72 20 67 65 6e 65 72 | F|or gener|
|00005d50| 61 6c 20 69 6e 66 6f 20 | 61 62 6f 75 74 20 70 61 |al info |about pa|
|00005d60| 74 74 65 72 6e 73 2c 20 | 74 79 70 65 20 22 68 70 |tterns, |type "hp|
|00005d70| 61 74 22 2e 0a 53 48 41 | 52 5f 45 4f 46 0a 66 69 |at"..SHA|R_EOF.fi|
|00005d80| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 22 65 78 74 |.echo sh|ar: "ext|
|00005d90| 72 61 63 74 69 6e 67 20 | 27 71 27 22 20 27 28 35 |racting |'q'" '(5|
|00005da0| 31 34 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |14 chara|cters)'.|
|00005db0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 71 27 0a 74 |if test |-f 'q'.t|
|00005dc0| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00005dd0| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|00005de0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00005df0| 6c 65 20 27 71 27 22 0a | 65 6c 73 65 0a 63 61 74 |le 'q'".|else.cat|
|00005e00| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00005e10| 27 71 27 0a 20 20 20 20 | 20 20 20 20 20 20 71 20 |'q'. | q |
|00005e20| 20 20 2d 2d 20 20 51 75 | 69 74 20 63 6f 6d 6d 61 | -- Qu|it comma|
|00005e30| 6e 64 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |nd.. | |
|00005e40| 20 20 20 64 65 66 61 75 | 6c 74 20 72 61 6e 67 65 | defau|lt range|
|00005e50| 20 20 20 20 20 20 20 20 | 20 20 20 73 79 6e 74 61 | | synta|
|00005e60| 78 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |x. | |
|00005e70| 20 20 20 20 20 6e 2f 61 | 20 20 20 20 20 20 20 20 | n/a| |
|00005e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 71 0a 0a 20 | | q.. |
|00005e90| 20 20 20 20 20 20 20 22 | 71 22 20 69 73 20 75 73 | "|q" is us|
|00005ea0| 65 64 20 74 6f 20 71 75 | 69 74 20 74 68 65 20 73 |ed to qu|it the s|
|00005eb0| 63 72 65 65 6e 20 65 64 | 69 74 6f 72 20 20 61 6e |creen ed|itor an|
|00005ec0| 64 20 20 72 65 74 75 72 | 6e 20 20 74 6f 20 20 73 |d retur|n to s|
|00005ed0| 79 73 74 65 6d 0a 20 20 | 20 20 20 20 20 20 63 6f |ystem. | co|
|00005ee0| 6d 6d 61 6e 64 20 20 6c | 65 76 65 6c 2e 20 20 49 |mmand l|evel. I|
|00005ef0| 66 20 63 68 61 6e 67 65 | 73 20 68 61 76 65 20 62 |f change|s have b|
|00005f00| 65 65 6e 20 6d 61 64 65 | 20 74 6f 20 74 68 65 20 |een made| to the |
|00005f10| 62 75 66 66 65 72 20 73 | 69 6e 63 65 0a 20 20 20 |buffer s|ince. |
|00005f20| 20 20 20 20 20 74 68 65 | 20 6c 61 73 74 20 77 72 | the| last wr|
|00005f30| 69 74 65 20 28 22 77 22 | 29 2c 20 79 6f 75 20 77 |ite ("w"|), you w|
|00005f40| 69 6c 6c 20 62 65 20 61 | 73 6b 65 64 20 69 66 20 |ill be a|sked if |
|00005f50| 79 6f 75 20 72 65 61 6c | 6c 79 20 77 61 6e 74 20 |you real|ly want |
|00005f60| 20 74 6f 0a 20 20 20 20 | 20 20 20 20 71 75 69 74 | to. | quit|
|00005f70| 2e 20 20 20 49 66 20 73 | 6f 2c 20 6a 75 73 74 20 |. If s|o, just |
|00005f80| 64 6f 20 61 6e 6f 74 68 | 65 72 20 22 71 22 20 63 |do anoth|er "q" c|
|00005f90| 6f 6d 6d 61 6e 64 20 28 | 52 45 54 55 52 4e 20 69 |ommand (|RETURN i|
|00005fa0| 73 20 61 6c 6c 20 74 68 | 61 74 0a 20 20 20 20 20 |s all th|at. |
|00005fb0| 20 20 20 72 65 71 75 69 | 72 65 64 29 2e 0a 0a 0a | requi|red)....|
|00005fc0| 20 20 20 20 20 20 20 20 | 54 6f 20 72 65 74 75 72 | |To retur|
|00005fd0| 6e 20 74 6f 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |n to the| command|
|00005fe0| 20 64 69 72 65 63 74 6f | 72 79 2c 20 74 79 70 65 | directo|ry, type|
|00005ff0| 20 22 68 63 6f 6d 64 69 | 72 2e 22 0a 20 20 20 20 | "hcomdi|r.". |
|00006000| 20 20 20 20 53 65 65 20 | 61 6c 73 6f 3a 20 20 22 | See |also: "|
|00006010| 68 6f 6b 22 2e 0a 53 48 | 41 52 5f 45 4f 46 0a 66 |hok"..SH|AR_EOF.f|
|00006020| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 22 65 78 |i.echo s|har: "ex|
|00006030| 74 72 61 63 74 69 6e 67 | 20 27 71 75 6f 74 65 27 |tracting| 'quote'|
|00006040| 22 20 27 28 33 34 30 20 | 63 68 61 72 61 63 74 65 |" '(340 |characte|
|00006050| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00006060| 27 71 75 6f 74 65 27 0a | 74 68 65 6e 0a 09 65 63 |'quote'.|then..ec|
|00006070| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|00006080| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00006090| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 71 75 6f |isting f|ile 'quo|
|000060a0| 74 65 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |te'".els|e.cat <<|
|000060b0| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 71 75 | \SHAR_E|OF > 'qu|
|000060c0| 6f 74 65 27 0a 0a 20 20 | 20 20 20 20 20 20 27 20 |ote'.. | ' |
|000060d0| 2d 2d 2d 20 67 6c 6f 62 | 61 6c 20 6f 6e 20 6d 61 |--- glob|al on ma|
|000060e0| 72 6b 6e 61 6d 65 0a 0a | 20 20 20 20 20 20 20 20 |rkname..| |
|000060f0| 64 65 66 61 75 6c 74 20 | 72 61 6e 67 65 20 20 20 |default |range |
|00006100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006110| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00006120| 20 31 2c 24 20 20 20 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00006130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006140| 20 27 3c 6d 3e 63 6f 6d | 6d 61 6e 64 0a 20 20 20 | '<m>com|mand. |
|00006150| 20 20 20 20 20 0a 20 20 | 20 20 20 20 20 20 53 69 | . | Si|
|00006160| 6d 69 6c 61 72 20 74 6f | 20 74 68 65 20 22 67 22 |milar to| the "g"|
|00006170| 20 70 72 65 66 69 78 2c | 20 65 78 63 65 70 74 20 | prefix,| except |
|00006180| 74 68 61 74 20 22 63 6f | 6d 6d 61 6e 64 22 20 69 |that "co|mmand" i|
|00006190| 73 20 70 65 72 66 6f 72 | 6d 65 64 0a 20 20 20 20 |s perfor|med. |
|000061a0| 20 20 20 20 66 6f 72 20 | 61 6c 6c 20 6c 69 6e 65 | for |all line|
|000061b0| 73 20 69 6e 20 74 68 65 | 20 72 61 6e 67 65 20 74 |s in the| range t|
|000061c0| 68 61 74 20 68 61 76 65 | 20 74 68 65 20 6d 61 72 |hat have| the mar|
|000061d0| 6b 20 6e 61 6d 65 20 3c | 6d 3e 2e 0a 0a 20 20 20 |k name <|m>... |
|000061e0| 20 20 20 20 20 54 6f 20 | 72 65 74 75 72 6e 20 74 | To |return t|
|000061f0| 6f 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 64 69 |o the co|mmand di|
|00006200| 72 65 63 74 6f 72 79 2c | 20 74 79 70 65 20 22 68 |rectory,| type "h|
|00006210| 63 6f 6d 64 69 72 22 2e | 0a 53 48 41 52 5f 45 4f |comdir".|.SHAR_EO|
|00006220| 46 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |F.fi.ech|o shar: |
|00006230| 22 65 78 74 72 61 63 74 | 69 6e 67 20 27 72 27 22 |"extract|ing 'r'"|
|00006240| 20 27 28 35 30 30 20 63 | 68 61 72 61 63 74 65 72 | '(500 c|haracter|
|00006250| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00006260| 72 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |r'.then.|.echo sh|
|00006270| 61 72 3a 20 22 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |ar: "wil|l not ov|
|00006280| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00006290| 67 20 66 69 6c 65 20 27 | 72 27 22 0a 65 6c 73 65 |g file '|r'".else|
|000062a0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|000062b0| 46 20 3e 20 27 72 27 0a | 20 20 20 20 20 20 20 20 |F > 'r'.| |
|000062c0| 20 20 72 20 20 20 20 2d | 2d 20 52 65 61 64 20 63 | r -|- Read c|
|000062d0| 6f 6d 6d 61 6e 64 0a 0a | 20 20 20 20 20 20 20 20 |ommand..| |
|000062e0| 20 20 20 20 20 20 20 64 | 65 66 61 75 6c 74 20 72 | d|efault r|
|000062f0| 61 6e 67 65 20 20 20 20 | 20 20 20 20 20 20 20 73 |ange | s|
|00006300| 79 6e 74 61 78 0a 20 20 | 20 20 20 20 20 20 20 20 |yntax. | |
|00006310| 20 20 20 20 20 20 20 20 | 20 20 20 20 2e 20 20 20 | | . |
|00006320| 20 20 20 20 20 20 20 20 | 72 20 5b 66 69 6c 65 20 | |r [file |
|00006330| 6e 61 6d 65 5d 0a 20 20 | 20 20 20 20 20 20 22 72 |name]. | "r|
|00006340| 22 20 69 73 20 75 73 65 | 64 20 74 6f 20 72 65 61 |" is use|d to rea|
|00006350| 64 20 61 20 66 69 6c 65 | 20 69 6e 74 6f 20 20 74 |d a file| into t|
|00006360| 68 65 20 20 62 75 66 66 | 65 72 20 20 61 74 20 20 |he buff|er at |
|00006370| 28 61 66 74 65 72 29 20 | 20 74 68 65 0a 20 20 20 |(after) | the. |
|00006380| 20 20 20 20 20 6e 61 6d | 65 64 20 20 70 6c 61 63 | nam|ed plac|
|00006390| 65 20 20 28 72 61 6e 67 | 65 20 66 69 65 6c 64 29 |e (rang|e field)|
|000063a0| 2e 20 20 49 66 20 6e 6f | 20 66 69 6c 65 20 6e 61 |. If no| file na|
|000063b0| 6d 65 20 69 73 20 70 72 | 6f 76 69 64 65 64 2c 20 |me is pr|ovided, |
|000063c0| 74 68 65 0a 20 20 20 20 | 20 20 20 20 63 75 72 72 |the. | curr|
|000063d0| 65 6e 74 20 20 66 69 6c | 65 20 6e 61 6d 65 20 28 |ent fil|e name (|
|000063e0| 61 73 20 20 69 64 65 6e | 74 69 66 69 65 64 20 62 |as iden|tified b|
|000063f0| 79 20 74 68 65 20 22 66 | 22 20 63 6f 6d 6d 61 6e |y the "f|" comman|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.