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 37 20 6f 66 20 |itor (Pa|rt 7 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 38 0a 53 75 62 6d |4, Issue| 88.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 49 6e 73 74 |o create|:.#.Inst|
|000001f0| 61 6c 6c 0a 23 09 4d 61 | 6b 65 66 69 6c 65 0a 23 |all.#.Ma|kefile.#|
|00000200| 09 52 45 41 44 4d 45 0a | 23 09 61 0a 23 09 61 62 |.README.|#.a.#.ab|
|00000210| 74 0a 23 09 61 68 0a 23 | 09 61 68 5f 73 77 74 0a |t.#.ah.#|.ah_swt.|
|00000220| 23 09 61 72 67 32 0a 23 | 09 61 72 67 73 0a 23 09 |#.arg2.#|.args.#.|
|00000230| 62 0a 23 09 62 61 6e 67 | 0a 23 09 62 75 67 0a 23 |b.#.bang|.#.bug.#|
|00000240| 09 63 0a 23 09 63 63 0a | 23 09 63 63 6d 69 73 63 |.c.#.cc.|#.ccmisc|
|00000250| 0a 23 09 63 68 61 72 64 | 65 6c 0a 23 09 63 68 61 |.#.chard|el.#.cha|
|00000260| 72 69 6e 73 0a 23 09 63 | 6f 6c 6f 6e 0a 23 09 63 |rins.#.c|olon.#.c|
|00000270| 6f 6d 0a 23 09 63 6f 6d | 5f 73 77 74 0a 23 09 63 |om.#.com|_swt.#.c|
|00000280| 6f 6d 64 69 72 0a 23 09 | 63 6f 6d 64 69 72 5f 73 |omdir.#.|comdir_s|
|00000290| 77 74 0a 23 09 63 6f 6d | 73 79 6e 0a 23 09 64 0a |wt.#.com|syn.#.d.|
|000002a0| 23 09 64 65 74 61 62 2e | 63 0a 23 09 64 69 72 0a |#.detab.|c.#.dir.|
|000002b0| 23 09 65 0a 23 09 65 68 | 0a 23 09 65 6c 70 0a 23 |#.e.#.eh|.#.elp.#|
|000002c0| 09 65 71 75 61 6c 0a 23 | 09 66 0a 23 09 67 0a 23 |.equal.#|.f.#.g.#|
|000002d0| 09 68 0a 23 09 69 0a 23 | 09 6a 0a 23 09 6b 0a 23 |.h.#.i.#|.j.#.k.#|
|000002e0| 09 6c 0a 23 09 6c 69 73 | 74 0a 23 09 6c 6e 0a 23 |.l.#.lis|t.#.ln.#|
|000002f0| 09 6c 6e 5f 73 77 74 0a | 23 09 6d 0a 23 09 6d 5f |.ln_swt.|#.m.#.m_|
|00000300| 73 77 74 0a 23 09 6d 6f | 74 69 6f 6e 0a 23 20 54 |swt.#.mo|tion.# T|
|00000310| 68 69 73 20 61 72 63 68 | 69 76 65 20 63 72 65 61 |his arch|ive crea|
|00000320| 74 65 64 3a 20 54 75 65 | 20 41 70 72 20 32 39 20 |ted: Tue| Apr 29 |
|00000330| 31 30 3a 34 36 3a 34 36 | 20 31 39 38 36 0a 65 78 |10:46:46| 1986.ex|
|00000340| 70 6f 72 74 20 50 41 54 | 48 3b 20 50 41 54 48 3d |port PAT|H; PATH=|
|00000350| 2f 62 69 6e 3a 2f 75 73 | 72 2f 62 69 6e 3a 24 50 |/bin:/us|r/bin:$P|
|00000360| 41 54 48 0a 23 23 23 23 | 23 23 0a 23 20 74 68 65 |ATH.####|##.# the|
|00000370| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 61 64 64 65 64 | followi|ng added|
|00000380| 20 62 79 20 68 61 6e 64 | 20 73 69 6e 63 65 20 74 | by hand| since t|
|00000390| 68 65 20 68 65 6c 70 20 | 66 69 6c 65 73 20 77 65 |he help |files we|
|000003a0| 72 65 20 74 6f 6f 20 62 | 69 67 0a 69 66 20 74 65 |re too b|ig.if te|
|000003b0| 73 74 20 21 20 2d 64 20 | 27 73 65 5f 68 27 0a 74 |st ! -d |'se_h'.t|
|000003c0| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000003d0| 22 63 72 65 61 74 69 6e | 67 20 64 69 72 65 63 74 |"creatin|g direct|
|000003e0| 6f 72 79 20 27 73 65 5f | 68 27 22 0a 09 6d 6b 64 |ory 'se_|h'"..mkd|
|000003f0| 69 72 20 27 73 65 5f 68 | 27 0a 66 69 0a 65 63 68 |ir 'se_h|'.fi.ech|
|00000400| 6f 20 73 68 61 72 3a 20 | 22 65 6e 74 65 72 69 6e |o shar: |"enterin|
|00000410| 67 20 64 69 72 65 63 74 | 6f 72 79 20 27 73 65 5f |g direct|ory 'se_|
|00000420| 68 27 22 0a 63 64 20 73 | 65 5f 68 0a 23 23 23 23 |h'".cd s|e_h.####|
|00000430| 23 23 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 22 65 |##.echo |shar: "e|
|00000440| 78 74 72 61 63 74 69 6e | 67 20 27 49 6e 73 74 61 |xtractin|g 'Insta|
|00000450| 6c 6c 27 22 20 27 28 32 | 37 38 20 63 68 61 72 61 |ll'" '(2|78 chara|
|00000460| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00000470| 2d 66 20 27 49 6e 73 74 | 61 6c 6c 27 0a 74 68 65 |-f 'Inst|all'.the|
|00000480| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 77 |n..echo |shar: "w|
|00000490| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|000004a0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|000004b0| 20 27 49 6e 73 74 61 6c | 6c 27 22 0a 65 6c 73 65 | 'Instal|l'".else|
|000004c0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|000004d0| 46 20 3e 20 27 49 6e 73 | 74 61 6c 6c 27 0a 23 21 |F > 'Ins|tall'.#!|
|000004e0| 20 2f 62 69 6e 2f 73 68 | 0a 3a 20 49 6e 73 74 61 | /bin/sh|.: Insta|
|000004f0| 6c 6c 20 2d 2d 20 70 75 | 74 20 73 65 20 68 65 6c |ll -- pu|t se hel|
|00000500| 70 20 66 69 6c 65 73 20 | 69 6e 74 6f 20 74 68 65 |p files |into the|
|00000510| 69 72 20 70 72 6f 70 65 | 72 20 64 69 72 65 63 74 |ir prope|r direct|
|00000520| 6f 72 79 2e 0a 3a 09 20 | 20 20 20 20 54 68 69 73 |ory..:. | This|
|00000530| 20 70 72 6f 67 72 61 6d | 20 69 73 20 63 61 6c 6c | program| is call|
|00000540| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 6d 61 6b 65 |ed from |the make|
|00000550| 66 69 6c 65 2e 0a 0a 49 | 4e 53 54 41 4c 4c 3d 24 |file...I|NSTALL=$|
|00000560| 31 0a 73 68 69 66 74 0a | 75 6d 61 73 6b 20 30 32 |1.shift.|umask 02|
|00000570| 32 0a 0a 66 6f 72 20 69 | 20 69 6e 20 24 2a 0a 64 |2..for i| in $*.d|
|00000580| 6f 0a 09 65 63 68 6f 20 | 69 6e 73 74 61 6c 6c 69 |o..echo |installi|
|00000590| 6e 67 20 24 69 0a 09 64 | 65 74 61 62 20 3c 20 24 |ng $i..d|etab < $|
|000005a0| 69 20 3e 20 24 49 4e 53 | 54 41 4c 4c 2f 24 69 0a |i > $INS|TALL/$i.|
|000005b0| 64 6f 6e 65 0a 0a 3a 20 | 77 65 20 72 65 61 6c 6c |done..: |we reall|
|000005c0| 79 20 73 68 6f 75 6c 64 | 20 64 6f 20 73 6f 6d 65 |y should| do some|
|000005d0| 20 65 72 72 6f 72 20 63 | 68 65 63 6b 69 6e 67 2c | error c|hecking,|
|000005e0| 20 62 75 74 20 77 68 61 | 74 20 74 68 65 20 68 65 | but wha|t the he|
|000005f0| 63 6b 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 63 68 6d |ck..SHAR|_EOF.chm|
|00000600| 6f 64 20 2b 78 20 27 49 | 6e 73 74 61 6c 6c 27 0a |od +x 'I|nstall'.|
|00000610| 66 69 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 22 65 |fi.echo |shar: "e|
|00000620| 78 74 72 61 63 74 69 6e | 67 20 27 4d 61 6b 65 66 |xtractin|g 'Makef|
|00000630| 69 6c 65 27 22 20 27 28 | 39 33 36 20 63 68 61 72 |ile'" '(|936 char|
|00000640| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|00000650| 20 2d 66 20 27 4d 61 6b | 65 66 69 6c 65 27 0a 74 | -f 'Mak|efile'.t|
|00000660| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00000670| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|00000680| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00000690| 6c 65 20 27 4d 61 6b 65 | 66 69 6c 65 27 22 0a 65 |le 'Make|file'".e|
|000006a0| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|000006b0| 5f 45 4f 46 20 3e 20 27 | 4d 61 6b 65 66 69 6c 65 |_EOF > '|Makefile|
|000006c0| 27 0a 23 20 6d 61 6b 65 | 66 69 6c 65 20 66 6f 72 |'.# make|file for|
|000006d0| 20 73 65 20 68 65 6c 70 | 20 73 63 72 69 70 74 73 | se help| scripts|
|000006e0| 0a 0a 44 4f 43 53 3d 20 | 52 45 41 44 4d 45 0a 0a |..DOCS= |README..|
|000006f0| 46 49 4c 45 53 3d 20 61 | 20 61 62 74 20 61 68 20 |FILES= a| abt ah |
|00000700| 61 72 67 32 20 61 72 67 | 73 20 62 20 62 61 6e 67 |arg2 arg|s b bang|
|00000710| 20 62 75 67 20 63 20 63 | 63 20 63 63 6d 69 73 63 | bug c c|c ccmisc|
|00000720| 20 63 68 61 72 64 65 6c | 20 63 68 61 72 69 6e 73 | chardel| charins|
|00000730| 20 63 6f 6c 6f 6e 20 5c | 0a 09 63 6f 6d 20 63 6f | colon \|..com co|
|00000740| 6d 5f 73 77 74 20 63 6f | 6d 64 69 72 20 63 6f 6d |m_swt co|mdir com|
|00000750| 64 69 72 5f 73 77 74 20 | 63 6f 6d 73 79 6e 20 64 |dir_swt |comsyn d|
|00000760| 20 64 69 72 20 65 20 65 | 68 20 65 6c 70 20 65 71 | dir e e|h elp eq|
|00000770| 75 61 6c 20 66 20 67 20 | 68 20 69 20 5c 0a 09 6a |ual f g |h i \..j|
|00000780| 20 6b 20 6c 20 6c 69 73 | 74 20 6c 6e 20 6c 6e 5f | k l lis|t ln ln_|
|00000790| 73 77 74 20 6d 20 6d 5f | 73 77 74 20 6d 6f 74 69 |swt m m_|swt moti|
|000007a0| 6f 6e 20 6e 20 6f 20 6f | 2d 20 6f 61 20 6f 63 20 |on n o o|- oa oc |
|000007b0| 6f 64 20 6f 66 20 6f 67 | 20 6f 68 20 6f 69 20 6f |od of og| oh oi o|
|000007c0| 6b 20 6f 6c 20 5c 0a 09 | 6f 6c 6d 20 6f 6d 20 6f |k ol \..|olm om o|
|000007d0| 70 20 6f 73 20 6f 74 20 | 6f 75 20 6f 76 20 6f 77 |p os ot |ou ov ow|
|000007e0| 20 6f 78 20 6f 79 20 6f | 7a 20 70 20 70 61 74 20 | ox oy o|z p pat |
|000007f0| 70 61 74 5f 73 77 74 20 | 70 61 74 65 78 20 70 61 |pat_swt |patex pa|
|00000800| 74 65 78 5f 73 77 74 20 | 71 20 5c 0a 09 71 75 6f |tex_swt |q \..quo|
|00000810| 74 65 20 72 20 72 70 74 | 20 73 20 73 5f 73 77 74 |te r rpt| s s_swt|
|00000820| 20 73 63 61 6e 20 73 63 | 61 6e 5f 73 77 74 20 73 | scan sc|an_swt s|
|00000830| 65 72 63 20 73 68 65 6c | 6c 20 73 68 65 6c 6c 5f |erc shel|l shell_|
|00000840| 73 77 74 20 73 70 65 63 | 6c 20 74 20 74 5f 73 77 |swt spec|l t t_sw|
|00000850| 74 20 5c 0a 09 74 65 72 | 6d 63 68 61 72 20 74 69 |t \..ter|mchar ti|
|00000860| 6c 64 65 20 75 20 76 20 | 77 20 78 20 79 20 79 5f |lde u v |w x y y_|
|00000870| 73 77 74 20 7a 0a 0a 23 | 20 64 65 73 74 69 6e 61 |swt z..#| destina|
|00000880| 74 69 6f 6e 20 66 6f 72 | 20 66 69 6e 61 6c 09 76 |tion for| final.v|
|00000890| 65 72 73 69 6f 6e 09 6f | 66 20 68 65 6c 70 09 73 |ersion.o|f help.s|
|000008a0| 63 72 69 70 74 73 2e 0a | 49 4e 53 54 41 4c 4c 3d |cripts..|INSTALL=|
|000008b0| 2f 75 73 72 2f 6c 6f 63 | 61 6c 2f 6c 69 62 2f 73 |/usr/loc|al/lib/s|
|000008c0| 65 5f 68 0a 0a 69 6e 73 | 74 61 6c 6c 3a 20 65 78 |e_h..ins|tall: ex|
|000008d0| 69 73 74 73 61 6c 6c 20 | 64 65 74 61 62 0a 09 49 |istsall |detab..I|
|000008e0| 6e 73 74 61 6c 6c 20 24 | 28 49 4e 53 54 41 4c 4c |nstall $|(INSTALL|
|000008f0| 29 20 24 28 46 49 4c 45 | 53 29 0a 0a 65 78 69 73 |) $(FILE|S)..exis|
|00000900| 74 73 61 6c 6c 3a 20 24 | 28 46 49 4c 45 53 29 20 |tsall: $|(FILES) |
|00000910| 24 28 44 4f 43 53 29 20 | 49 6e 73 74 61 6c 6c 0a |$(DOCS) |Install.|
|00000920| 09 40 65 63 68 6f 20 74 | 68 69 73 20 6d 65 73 73 |.@echo t|his mess|
|00000930| 61 67 65 20 69 6e 64 69 | 63 61 74 65 73 20 61 6c |age indi|cates al|
|00000940| 6c 20 74 68 65 20 66 69 | 6c 65 73 20 65 78 69 73 |l the fi|les exis|
|00000950| 74 2c 20 6f 74 68 65 72 | 77 69 73 65 20 6d 61 6b |t, other|wise mak|
|00000960| 65 20 77 6f 75 6c 64 20 | 64 69 65 2e 0a 0a 64 65 |e would |die...de|
|00000970| 74 61 62 3a 20 64 65 74 | 61 62 2e 63 0a 09 63 63 |tab: det|ab.c..cc|
|00000980| 20 2d 4f 20 2d 6f 20 64 | 65 74 61 62 20 64 65 74 | -O -o d|etab det|
|00000990| 61 62 2e 63 0a 0a 63 6c | 65 61 6e 3a 0a 09 72 6d |ab.c..cl|ean:..rm|
|000009a0| 20 2d 66 20 64 65 74 61 | 62 20 70 72 69 6e 74 32 | -f deta|b print2|
|000009b0| 0a 0a 63 6c 6f 62 62 65 | 72 3a 20 63 6c 65 61 6e |..clobbe|r: clean|
|000009c0| 0a 0a 0a 70 72 69 6e 74 | 3a 0a 09 70 72 74 20 24 |...print|:..prt $|
|000009d0| 28 44 4f 43 53 29 20 4d | 61 6b 65 66 69 6c 65 20 |(DOCS) M|akefile |
|000009e0| 49 6e 73 74 61 6c 6c 20 | 24 28 46 49 4c 45 53 29 |Install |$(FILES)|
|000009f0| 20 7c 20 6c 70 72 20 2d | 62 20 27 73 65 20 68 65 | | lpr -|b 'se he|
|00000a00| 6c 70 27 0a 09 74 6f 75 | 63 68 20 70 72 69 6e 74 |lp'..tou|ch print|
|00000a10| 32 0a 0a 70 72 69 6e 74 | 32 3a 09 24 28 44 4f 43 |2..print|2:.$(DOC|
|00000a20| 53 29 09 4d 61 6b 65 66 | 69 6c 65 20 49 6e 73 74 |S).Makef|ile Inst|
|00000a30| 61 6c 6c 20 24 28 46 49 | 4c 45 53 29 0a 09 70 72 |all $(FI|LES)..pr|
|00000a40| 74 20 24 3f 20 7c 20 6c | 70 72 20 2d 62 09 27 6e |t $? | l|pr -b.'n|
|00000a50| 65 77 20 73 65 09 68 65 | 6c 70 27 0a 09 74 6f 75 |ew se.he|lp'..tou|
|00000a60| 63 68 20 70 72 69 6e 74 | 32 0a 53 48 41 52 5f 45 |ch print|2.SHAR_E|
|00000a70| 4f 46 0a 66 69 0a 65 63 | 68 6f 20 73 68 61 72 3a |OF.fi.ec|ho shar:|
|00000a80| 20 22 65 78 74 72 61 63 | 74 69 6e 67 20 27 52 45 | "extrac|ting 'RE|
|00000a90| 41 44 4d 45 27 22 20 27 | 28 38 37 38 20 63 68 61 |ADME'" '|(878 cha|
|00000aa0| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00000ab0| 74 20 2d 66 20 27 52 45 | 41 44 4d 45 27 0a 74 68 |t -f 'RE|ADME'.th|
|00000ac0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|00000ad0| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00000ae0| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00000af0| 65 20 27 52 45 41 44 4d | 45 27 22 0a 65 6c 73 65 |e 'READM|E'".else|
|00000b00| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00000b10| 46 20 3e 20 27 52 45 41 | 44 4d 45 27 0a 52 45 41 |F > 'REA|DME'.REA|
|00000b20| 44 4d 45 3a 0a 0a 54 68 | 69 73 20 64 69 72 65 63 |DME:..Th|is direc|
|00000b30| 74 6f 72 79 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |tory con|tains th|
|00000b40| 65 20 68 65 6c 70 20 66 | 69 6c 65 73 20 66 6f 72 |e help f|iles for|
|00000b50| 20 74 68 65 20 47 65 6f | 72 67 69 61 20 54 65 63 | the Geo|rgia Tec|
|00000b60| 68 20 53 6f 66 74 77 61 | 72 65 20 54 6f 6f 6c 73 |h Softwa|re Tools|
|00000b70| 2f 55 4e 49 58 0a 73 63 | 72 65 65 6e 20 65 64 69 |/UNIX.sc|reen edi|
|00000b80| 74 6f 72 20 53 65 2e 20 | 20 54 68 65 20 66 69 6c |tor Se. | The fil|
|00000b90| 65 73 20 77 69 74 68 20 | 74 68 65 20 5f 73 77 74 |es with |the _swt|
|00000ba0| 20 73 75 66 66 69 78 20 | 63 6f 6e 74 61 69 6e 20 | suffix |contain |
|00000bb0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 0a 77 68 69 63 |informat|ion.whic|
|00000bc0| 68 20 69 73 20 63 6f 72 | 72 65 63 74 20 77 68 65 |h is cor|rect whe|
|00000bd0| 6e 20 74 68 65 20 65 64 | 69 74 6f 72 20 69 73 20 |n the ed|itor is |
|00000be0| 69 6e 20 53 6f 66 74 77 | 61 72 65 20 54 6f 6f 6c |in Softw|are Tool|
|00000bf0| 73 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |s compat|ibility |
|00000c00| 6d 6f 64 65 2e 0a 54 68 | 69 73 20 69 73 20 74 68 |mode..Th|is is th|
|00000c10| 65 20 64 65 66 61 75 6c | 74 20 61 74 20 47 65 6f |e defaul|t at Geo|
|00000c20| 72 67 69 61 20 54 65 63 | 68 2e 20 20 54 68 65 20 |rgia Tec|h. The |
|00000c30| 66 69 6c 65 73 20 77 69 | 74 68 6f 75 74 20 74 68 |files wi|thout th|
|00000c40| 65 20 5f 73 77 74 20 73 | 75 66 66 69 78 20 65 69 |e _swt s|uffix ei|
|00000c50| 74 68 65 72 0a 63 6f 6e | 74 61 69 6e 20 69 6e 66 |ther.con|tain inf|
|00000c60| 6f 72 6d 61 74 69 6f 6e | 20 77 68 69 63 68 20 69 |ormation| which i|
|00000c70| 73 20 74 68 65 20 73 61 | 6d 65 20 66 6f 72 20 62 |s the sa|me for b|
|00000c80| 6f 74 68 20 55 6e 69 78 | 20 61 6e 64 20 53 57 54 |oth Unix| and SWT|
|00000c90| 20 6d 6f 64 65 73 2c 20 | 6f 72 20 66 6f 72 0a 55 | modes, |or for.U|
|00000ca0| 6e 69 78 20 6d 6f 64 65 | 2c 20 77 68 69 63 68 20 |nix mode|, which |
|00000cb0| 69 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 61 |is the d|efault a|
|00000cc0| 74 20 61 6e 79 20 70 6c | 61 63 65 20 6f 74 68 65 |t any pl|ace othe|
|00000cd0| 72 20 74 68 61 6e 20 47 | 65 6f 72 67 69 61 20 54 |r than G|eorgia T|
|00000ce0| 65 63 68 2e 0a 0a 54 68 | 65 20 64 6f 68 65 6c 70 |ech...Th|e dohelp|
|00000cf0| 28 29 20 72 6f 75 74 69 | 6e 65 20 63 68 65 63 6b |() routi|ne check|
|00000d00| 73 20 77 68 61 74 20 6d | 6f 64 65 20 74 68 65 20 |s what m|ode the |
|00000d10| 65 64 69 74 6f 72 20 69 | 73 20 69 6e 2c 20 61 6e |editor i|s in, an|
|00000d20| 64 20 72 65 61 64 73 20 | 69 6e 20 74 68 65 0a 61 |d reads |in the.a|
|00000d30| 70 70 72 6f 70 72 69 61 | 74 65 20 66 69 6c 65 2e |ppropria|te file.|
|00000d40| 0a 0a 54 68 65 20 66 69 | 6c 65 73 20 73 68 6f 75 |..The fi|les shou|
|00000d50| 6c 64 20 62 65 20 69 6e | 73 74 61 6c 6c 65 64 20 |ld be in|stalled |
|00000d60| 69 6e 20 74 68 65 20 64 | 69 72 65 63 74 6f 72 79 |in the d|irectory|
|00000d70| 20 2f 75 73 72 2f 6c 69 | 62 2f 73 65 5f 68 20 66 | /usr/li|b/se_h f|
|00000d80| 6f 72 20 73 65 20 69 6e | 20 6f 72 64 65 72 0a 66 |or se in| order.f|
|00000d90| 6f 72 20 73 65 20 74 6f | 20 66 69 6e 64 20 74 68 |or se to| find th|
|00000da0| 65 6d 2e 20 46 69 6c 65 | 20 6e 61 6d 65 73 20 6d |em. File| names m|
|00000db0| 75 73 74 20 62 65 20 69 | 6e 20 6c 6f 77 65 72 20 |ust be i|n lower |
|00000dc0| 63 61 73 65 2c 20 73 69 | 6e 63 65 20 64 6f 68 65 |case, si|nce dohe|
|00000dd0| 6c 70 28 29 20 6d 61 70 | 73 0a 74 68 65 20 66 69 |lp() map|s.the fi|
|00000de0| 6c 65 20 6e 61 6d 65 20 | 69 6e 74 6f 20 61 6c 6c |le name |into all|
|00000df0| 20 6c 6f 77 65 72 20 63 | 61 73 65 2e 20 28 4f 6e | lower c|ase. (On|
|00000e00| 20 70 72 31 6d 65 73 2c | 20 63 61 73 65 20 69 73 | pr1mes,| case is|
|00000e10| 20 6e 6f 74 20 73 69 67 | 6e 69 66 69 63 61 6e 74 | not sig|nificant|
|00000e20| 20 69 6e 0a 66 69 6c 65 | 20 6e 61 6d 65 73 2c 20 | in.file| names, |
|00000e30| 73 6f 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |so the o|riginal |
|00000e40| 72 61 74 66 6f 72 20 76 | 65 72 73 69 6f 6e 20 64 |ratfor v|ersion d|
|00000e50| 69 64 20 6e 6f 74 20 68 | 61 76 65 20 74 6f 20 64 |id not h|ave to d|
|00000e60| 6f 20 74 68 69 73 2e 29 | 0a 0a 41 72 6e 6f 6c 64 |o this.)|..Arnold|
|00000e70| 20 52 6f 62 62 69 6e 73 | 0a 47 65 6f 72 67 69 61 | Robbins|.Georgia|
|00000e80| 20 54 65 63 68 0a 32 2f | 38 34 0a 53 48 41 52 5f | Tech.2/|84.SHAR_|
|00000e90| 45 4f 46 0a 66 69 0a 65 | 63 68 6f 20 73 68 61 72 |EOF.fi.e|cho shar|
|00000ea0| 3a 20 22 65 78 74 72 61 | 63 74 69 6e 67 20 27 61 |: "extra|cting 'a|
|00000eb0| 27 22 20 27 28 37 39 33 | 20 63 68 61 72 61 63 74 |'" '(793| charact|
|00000ec0| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|00000ed0| 20 27 61 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 | 'a'.the|n..echo |
|00000ee0| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00000ef0| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00000f00| 69 6e 67 20 66 69 6c 65 | 20 27 61 27 22 0a 65 6c |ing file| 'a'".el|
|00000f10| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|00000f20| 45 4f 46 20 3e 20 27 61 | 27 0a 20 20 20 20 20 20 |EOF > 'a|'. |
|00000f30| 20 20 20 61 20 20 20 20 | 2d 2d 20 41 70 70 65 6e | a |-- Appen|
|00000f40| 64 20 63 6f 6d 6d 61 6e | 64 0a 0a 20 20 20 20 20 |d comman|d.. |
|00000f50| 20 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 | | default|
|00000f60| 20 72 61 6e 67 65 20 20 | 20 20 20 20 20 20 20 20 | range | |
|00000f70| 20 73 79 6e 74 61 78 0a | 20 20 20 20 20 20 20 20 | syntax.| |
|00000f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f90| 20 20 2e 20 20 20 20 20 | 20 20 20 20 20 20 61 0a | . | a.|
|00000fa0| 0a 20 20 20 20 20 20 20 | 20 22 61 22 20 69 73 20 |. | "a" is |
|00000fb0| 66 6f 72 20 61 70 70 65 | 6e 64 69 6e 67 20 6e 65 |for appe|nding ne|
|00000fc0| 77 20 6c 69 6e 65 73 20 | 6f 66 20 74 65 78 74 20 |w lines |of text |
|00000fd0| 61 66 74 65 72 20 61 20 | 67 69 76 65 6e 20 6c 69 |after a |given li|
|00000fe0| 6e 65 2e 20 20 49 66 0a | 20 20 20 20 20 20 20 20 |ne. If.| |
|00000ff0| 6e 6f 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 20 69 |no line |number i|
|00001000| 73 20 74 79 70 65 64 20 | 62 65 66 6f 72 65 20 74 |s typed |before t|
|00001010| 68 65 20 22 61 22 2c 20 | 74 65 78 74 20 77 69 6c |he "a", |text wil|
|00001020| 6c 20 62 65 20 20 61 70 | 70 65 6e 64 65 64 0a 20 |l be ap|pended. |
|00001030| 20 20 20 20 20 20 20 61 | 66 74 65 72 20 20 74 68 | a|fter th|
|00001040| 65 20 20 63 75 72 72 65 | 6e 74 20 20 6c 69 6e 65 |e curre|nt line|
|00001050| 2e 20 20 54 68 65 20 6c | 61 73 74 20 6c 69 6e 65 |. The l|ast line|
|00001060| 20 61 70 70 65 6e 64 65 | 64 20 62 65 63 6f 6d 65 | appende|d become|
|00001070| 73 20 74 68 65 0a 20 20 | 20 20 20 20 20 20 63 75 |s the. | cu|
|00001080| 72 72 65 6e 74 20 6c 69 | 6e 65 2e 20 20 54 6f 20 |rrent li|ne. To |
|00001090| 73 69 67 6e 61 6c 20 74 | 68 65 20 65 6e 64 20 6f |signal t|he end o|
|000010a0| 66 20 20 74 68 65 20 20 | 61 70 70 65 6e 64 65 64 |f the |appended|
|000010b0| 20 20 74 65 78 74 2c 20 | 20 79 6f 75 0a 20 20 20 | text, | you. |
|000010c0| 20 20 20 20 20 74 79 70 | 65 20 61 20 22 2e 22 20 | typ|e a "." |
|000010d0| 20 6f 6e 20 61 20 6c 69 | 6e 65 20 62 79 20 69 74 | on a li|ne by it|
|000010e0| 73 65 6c 66 2e 20 20 43 | 6f 6e 74 72 6f 6c 20 63 |self. C|ontrol c|
|000010f0| 68 61 72 61 63 74 65 72 | 73 20 22 66 22 2c 20 22 |haracter|s "f", "|
|00001100| 76 22 2c 0a 20 20 20 20 | 20 20 20 20 22 6c 22 2c |v",. | "l",|
|00001110| 20 20 61 6e 64 20 20 22 | 6b 22 20 20 77 6f 72 6b | and "|k" work|
|00001120| 20 64 69 66 66 65 72 65 | 6e 74 6c 79 20 66 6f 72 | differe|ntly for|
|00001130| 20 22 61 22 20 63 6f 6d | 6d 61 6e 64 20 74 68 61 | "a" com|mand tha|
|00001140| 6e 20 66 6f 72 20 22 76 | 22 2e 0a 20 20 20 20 20 |n for "v|".. |
|00001150| 20 20 20 22 61 3a 22 20 | 20 77 6f 72 6b 73 20 61 | "a:" | works a|
|00001160| 73 20 61 20 6f 6e 65 20 | 6c 69 6e 65 20 61 70 70 |s a one |line app|
|00001170| 65 6e 64 20 28 69 2e 65 | 2e 20 61 6e 79 74 68 69 |end (i.e|. anythi|
|00001180| 6e 67 20 66 6f 6c 6c 6f | 77 69 6e 67 20 20 74 68 |ng follo|wing th|
|00001190| 65 0a 20 20 20 20 20 20 | 20 20 63 6f 6c 6f 6e 20 |e. | colon |
|000011a0| 69 73 20 61 70 70 65 6e | 64 65 64 20 61 66 74 65 |is appen|ded afte|
|000011b0| 72 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6c 69 |r the cu|rrent li|
|000011c0| 6e 65 29 2e 0a 0a 20 20 | 20 20 20 20 20 20 54 6f |ne)... | To|
|000011d0| 20 72 65 74 75 72 6e 20 | 74 6f 20 74 68 65 20 63 | return |to the c|
|000011e0| 6f 6d 6d 61 6e 64 20 64 | 69 72 65 63 74 6f 72 79 |ommand d|irectory|
|000011f0| 2c 20 74 79 70 65 20 22 | 68 63 6f 6d 64 69 72 2e |, type "|hcomdir.|
|00001200| 22 0a 20 20 20 20 20 20 | 20 20 53 65 65 20 61 6c |". | See al|
|00001210| 73 6f 3a 20 20 22 68 63 | 63 22 20 28 63 6f 6e 74 |so: "hc|c" (cont|
|00001220| 72 6f 6c 20 63 68 61 72 | 61 63 74 65 72 73 29 20 |rol char|acters) |
|00001230| 61 6e 64 20 22 68 63 22 | 20 28 63 68 61 6e 67 65 |and "hc"| (change|
|00001240| 29 2e 0a 53 48 41 52 5f | 45 4f 46 0a 66 69 0a 65 |)..SHAR_|EOF.fi.e|
|00001250| 63 68 6f 20 73 68 61 72 | 3a 20 22 65 78 74 72 61 |cho shar|: "extra|
|00001260| 63 74 69 6e 67 20 27 61 | 62 74 27 22 20 27 28 35 |cting 'a|bt'" '(5|
|00001270| 39 39 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |99 chara|cters)'.|
|00001280| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 62 74 27 |if test |-f 'abt'|
|00001290| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|000012a0| 3a 20 22 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |: "will |not over|
|000012b0| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|000012c0| 66 69 6c 65 20 27 61 62 | 74 27 22 0a 65 6c 73 65 |file 'ab|t'".else|
|000012d0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|000012e0| 46 20 3e 20 27 61 62 74 | 27 0a 20 20 20 20 20 20 |F > 'abt|'. |
|000012f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001300| 20 20 20 20 20 20 20 20 | 20 41 62 6f 72 74 20 63 | | Abort c|
|00001310| 68 61 72 61 63 74 65 72 | 20 20 20 20 20 20 20 20 |haracter| |
|00001320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001330| 20 20 20 20 20 20 20 20 | 0a 0a 20 20 20 20 20 20 | |.. |
|00001340| 20 20 43 54 52 4c 2d 46 | 20 28 22 46 75 6e 6e 79 | CTRL-F| ("Funny|
|00001350| 20 52 65 74 75 72 6e 22 | 29 20 63 68 61 72 61 63 | Return"|) charac|
|00001360| 74 65 72 20 20 69 73 20 | 20 75 73 65 64 20 20 74 |ter is | used t|
|00001370| 6f 20 20 61 62 6f 72 74 | 20 20 61 20 20 22 76 22 |o abort| a "v"|
|00001380| 0a 20 20 20 20 20 20 20 | 20 63 6f 6d 6d 61 6e 64 |. | command|
|00001390| 20 20 62 65 66 6f 72 65 | 20 20 61 6c 6c 20 20 74 | before| all t|
|000013a0| 68 65 20 20 73 70 65 63 | 69 66 69 65 64 20 6c 69 |he spec|ified li|
|000013b0| 6e 65 73 20 68 61 76 65 | 20 62 65 65 6e 20 6d 6f |nes have| been mo|
|000013c0| 64 69 66 69 65 64 2e 0a | 20 20 20 20 20 20 20 20 |dified..| |
|000013d0| 54 79 70 69 6e 67 20 69 | 74 20 63 61 75 73 65 73 |Typing i|t causes|
|000013e0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 69 6e | the cur|rent lin|
|000013f0| 65 20 74 6f 20 62 65 20 | 72 65 73 74 6f 72 65 64 |e to be |restored|
|00001400| 20 74 6f 20 69 74 73 20 | 20 73 74 61 74 65 0a 20 | to its | state. |
|00001410| 20 20 20 20 20 20 20 6f | 66 20 20 62 65 66 6f 72 | o|f befor|
|00001420| 65 20 20 74 68 65 20 20 | 22 76 22 20 63 6f 6d 6d |e the |"v" comm|
|00001430| 61 6e 64 20 77 61 73 20 | 62 65 67 75 6e 2c 20 61 |and was |begun, a|
|00001440| 6e 64 20 63 61 75 73 65 | 73 20 61 20 72 65 74 75 |nd cause|s a retu|
|00001450| 72 6e 20 74 6f 0a 20 20 | 20 20 20 20 20 20 74 68 |rn to. | th|
|00001460| 65 20 65 64 69 74 6f 72 | 27 73 20 63 6f 6d 6d 61 |e editor|'s comma|
|00001470| 6e 64 20 6c 65 76 65 6c | 2e 0a 0a 0a 20 20 20 20 |nd level|.... |
|00001480| 20 20 20 20 54 79 70 65 | 20 22 68 76 22 20 66 6f | Type| "hv" fo|
|00001490| 72 20 61 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |r a desc|ription |
|000014a0| 6f 66 20 74 68 65 20 22 | 76 22 20 63 6f 6d 6d 61 |of the "|v" comma|
|000014b0| 6e 64 2e 0a 20 20 20 20 | 20 20 20 20 54 79 70 65 |nd.. | Type|
|000014c0| 20 22 68 72 70 74 22 20 | 66 6f 72 20 43 54 52 4c | "hrpt" |for CTRL|
|000014d0| 2d 46 27 73 20 6d 65 61 | 6e 69 6e 67 20 69 66 20 |-F's mea|ning if |
|000014e0| 69 6e 20 61 70 70 65 6e | 64 20 6f 72 20 63 6f 6d |in appen|d or com|
|000014f0| 6d 61 6e 64 20 6d 6f 64 | 65 2e 0a 20 20 20 20 20 |mand mod|e.. |
|00001500| 20 20 20 54 79 70 65 20 | 22 68 74 65 72 6d 63 68 | Type |"htermch|
|00001510| 61 72 22 20 66 6f 72 20 | 69 6e 66 6f 20 61 62 6f |ar" for |info abo|
|00001520| 75 74 20 6f 74 68 65 72 | 20 74 65 72 6d 69 6e 61 |ut other| termina|
|00001530| 74 69 6f 6e 20 63 68 61 | 72 61 63 74 65 72 73 2e |tion cha|racters.|
|00001540| 0a 53 48 41 52 5f 45 4f | 46 0a 66 69 0a 65 63 68 |.SHAR_EO|F.fi.ech|
|00001550| 6f 20 73 68 61 72 3a 20 | 22 65 78 74 72 61 63 74 |o shar: |"extract|
|00001560| 69 6e 67 20 27 61 68 27 | 22 20 27 28 31 34 32 20 |ing 'ah'|" '(142 |
|00001570| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00001580| 74 65 73 74 20 2d 66 20 | 27 61 68 27 0a 74 68 65 |test -f |'ah'.the|
|00001590| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 77 |n..echo |shar: "w|
|000015a0| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|000015b0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|000015c0| 20 27 61 68 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 | 'ah'".e|lse.cat |
|000015d0| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|000015e0| 61 68 27 0a 0a 20 20 20 | 20 20 20 20 20 20 20 49 |ah'.. | I|
|000015f0| 66 20 79 6f 75 27 72 65 | 20 72 75 6e 6e 69 6e 67 |f you're| running|
|00001600| 20 42 65 72 6b 65 6c 65 | 79 20 55 6e 69 78 2c 20 | Berkele|y Unix, |
|00001610| 61 6e 64 20 79 6f 75 27 | 72 65 20 62 6f 72 65 64 |and you'|re bored|
|00001620| 0a 20 20 20 20 20 20 20 | 20 20 20 54 79 70 65 20 |. | Type |
|00001630| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 63 6f |the foll|owing co|
|00001640| 6d 6d 61 6e 64 20 66 6f | 72 20 73 6f 6d 65 74 68 |mmand fo|r someth|
|00001650| 69 6e 67 20 65 6e 6a 6f | 79 61 62 6c 65 3a 0a 0a |ing enjo|yable:..|
|00001660| 20 20 20 20 20 20 20 20 | 20 20 21 72 6f 67 75 65 | | !rogue|
|00001670| 0a 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 65 63 |..SHAR_E|OF.fi.ec|
|00001680| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|00001690| 74 69 6e 67 20 27 61 68 | 5f 73 77 74 27 22 20 27 |ting 'ah|_swt'" '|
|000016a0| 28 31 34 33 20 63 68 61 | 72 61 63 74 65 72 73 29 |(143 cha|racters)|
|000016b0| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 61 68 |'.if tes|t -f 'ah|
|000016c0| 5f 73 77 74 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |_swt'.th|en..echo|
|000016d0| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|000016e0| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|000016f0| 74 69 6e 67 20 66 69 6c | 65 20 27 61 68 5f 73 77 |ting fil|e 'ah_sw|
|00001700| 74 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |t'".else|.cat << |
|00001710| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 61 68 5f |\SHAR_EO|F > 'ah_|
|00001720| 73 77 74 27 0a 0a 0a 20 | 20 20 20 20 20 20 20 20 |swt'... | |
|00001730| 20 49 66 20 79 6f 75 27 | 72 65 20 72 75 6e 6e 69 | If you'|re runni|
|00001740| 6e 67 20 42 65 72 6b 65 | 6c 65 79 20 55 6e 69 78 |ng Berke|ley Unix|
|00001750| 2c 20 61 6e 64 20 79 6f | 75 27 72 65 20 62 6f 72 |, and yo|u're bor|
|00001760| 65 64 0a 20 20 20 20 20 | 20 20 20 20 20 54 79 70 |ed. | Typ|
|00001770| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|00001780| 63 6f 6d 6d 61 6e 64 20 | 66 6f 72 20 73 6f 6d 65 |command |for some|
|00001790| 74 68 69 6e 67 20 65 6e | 6a 6f 79 61 62 6c 65 3a |thing en|joyable:|
|000017a0| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 7e 72 6f 67 |.. | ~rog|
|000017b0| 75 65 0a 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |ue..SHAR|_EOF.fi.|
|000017c0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 78 74 72 |echo sha|r: "extr|
|000017d0| 61 63 74 69 6e 67 20 27 | 61 72 67 32 27 22 20 27 |acting '|arg2'" '|
|000017e0| 28 39 31 37 20 63 68 61 | 72 61 63 74 65 72 73 29 |(917 cha|racters)|
|000017f0| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 61 72 |'.if tes|t -f 'ar|
|00001800| 67 32 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |g2'.then|..echo s|
|00001810| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00001820| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00001830| 6e 67 20 66 69 6c 65 20 | 27 61 72 67 32 27 22 0a |ng file |'arg2'".|
|00001840| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00001850| 52 5f 45 4f 46 20 3e 20 | 27 61 72 67 32 27 0a 20 |R_EOF > |'arg2'. |
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 72 | | Ar|
|00001880| 67 75 6d 65 6e 74 73 20 | 28 63 6f 6e 74 29 0a 0a |guments |(cont)..|
|00001890| 20 20 20 20 20 20 20 20 | 4f 6e 63 65 20 74 68 65 | |Once the|
|000018a0| 20 74 65 72 6d 69 6e 61 | 6c 20 74 79 70 65 20 20 | termina|l type |
|000018b0| 69 73 20 20 65 73 74 61 | 62 6c 69 73 68 65 64 2c |is esta|blished,|
|000018c0| 20 20 74 68 65 20 20 72 | 65 6d 61 69 6e 69 6e 67 | the r|emaining|
|000018d0| 20 20 61 72 67 2d 0a 20 | 20 20 20 20 20 20 20 75 | arg-. | u|
|000018e0| 6d 65 6e 74 73 20 20 61 | 72 65 20 20 69 6e 74 65 |ments a|re inte|
|000018f0| 72 70 72 65 74 65 64 20 | 20 74 68 75 73 3a 20 20 |rpreted | thus: |
|00001900| 69 66 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |if the a|rgument |
|00001910| 62 65 67 69 6e 73 20 77 | 69 74 68 20 61 0a 20 20 |begins w|ith a. |
|00001920| 20 20 20 20 20 20 22 2d | 22 2c 20 74 68 65 20 72 | "-|", the r|
|00001930| 65 73 74 20 6f 66 20 69 | 74 20 69 73 20 69 6e 74 |est of i|t is int|
|00001940| 65 72 70 72 65 74 65 64 | 20 61 73 20 74 68 6f 75 |erpreted| as thou|
|00001950| 67 68 20 69 74 20 61 70 | 70 65 61 72 65 64 20 61 |gh it ap|peared a|
|00001960| 66 74 65 72 0a 20 20 20 | 20 20 20 20 20 74 68 65 |fter. | the|
|00001970| 20 22 6f 22 20 69 6e 20 | 61 6e 20 6f 70 74 69 6f | "o" in |an optio|
|00001980| 6e 20 63 6f 6d 6d 61 6e | 64 2e 20 20 46 6f 72 20 |n comman|d. For |
|00001990| 20 65 78 61 6d 70 6c 65 | 2c 20 20 61 6e 20 20 61 | example|, an a|
|000019a0| 72 67 75 6d 65 6e 74 20 | 20 6f 66 0a 20 20 20 20 |rgument | of. |
|000019b0| 20 20 20 20 22 2d 77 31 | 30 22 20 20 61 63 74 73 | "-w1|0" acts|
|000019c0| 20 20 61 73 20 20 61 20 | 63 6f 6d 6d 61 6e 64 20 | as a |command |
|000019d0| 22 6f 77 31 30 22 2e 20 | 20 4f 6e 20 74 68 65 20 |"ow10". | On the |
|000019e0| 6f 74 68 65 72 20 68 61 | 6e 64 2c 20 69 66 20 74 |other ha|nd, if t|
|000019f0| 68 65 0a 20 20 20 20 20 | 20 20 20 61 72 67 75 6d |he. | argum|
|00001a00| 65 6e 74 20 64 6f 65 73 | 20 6e 6f 74 20 62 65 67 |ent does| not beg|
|00001a10| 69 6e 20 77 69 74 68 20 | 22 2d 22 2c 20 69 74 20 |in with |"-", it |
|00001a20| 69 73 20 69 6e 74 65 72 | 70 72 65 74 65 64 20 61 |is inter|preted a|
|00001a30| 73 20 61 20 20 66 69 6c | 65 0a 20 20 20 20 20 20 |s a fil|e. |
|00001a40| 20 20 6e 61 6d 65 20 20 | 28 70 61 74 68 2d 20 20 | name |(path- |
|00001a50| 6e 61 6d 65 29 2e 20 20 | 20 54 68 65 20 20 6e 61 |name). | The na|
|00001a60| 6d 65 64 20 20 66 69 6c | 65 20 20 69 73 20 72 65 |med fil|e is re|
|00001a70| 61 64 20 69 6e 74 6f 20 | 74 68 65 20 65 64 69 74 |ad into |the edit|
|00001a80| 0a 20 20 20 20 20 20 20 | 20 62 75 66 66 65 72 2c |. | buffer,|
|00001a90| 20 61 6e 64 20 69 74 73 | 20 6e 61 6d 65 20 62 65 | and its| name be|
|00001aa0| 63 6f 6d 65 73 20 74 68 | 65 20 20 72 65 6d 65 6d |comes th|e remem|
|00001ab0| 62 65 72 65 64 20 20 66 | 69 6c 65 20 20 6e 61 6d |bered f|ile nam|
|00001ac0| 65 2e 20 20 20 49 66 0a | 20 20 20 20 20 20 20 20 |e. If.| |
|00001ad0| 6d 6f 72 65 20 20 74 68 | 61 6e 20 6f 6e 65 20 66 |more th|an one f|
|00001ae0| 69 6c 65 20 69 73 20 6e | 61 6d 65 64 2c 20 74 68 |ile is n|amed, th|
|00001af0| 65 20 65 64 69 74 20 62 | 75 66 66 65 72 20 77 69 |e edit b|uffer wi|
|00001b00| 6c 6c 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 0a 20 |ll conta|in the. |
|00001b10| 20 20 20 20 20 20 20 63 | 6f 6e 74 65 6e 74 73 20 | c|ontents |
|00001b20| 6f 66 20 61 6c 6c 20 74 | 68 65 20 66 69 6c 65 73 |of all t|he files|
|00001b30| 2e 20 20 49 66 20 20 61 | 6e 20 20 65 72 72 6f 72 |. If a|n error|
|00001b40| 20 69 73 20 65 6e 63 6f | 75 6e 74 65 72 65 64 20 | is enco|untered |
|00001b50| 77 68 69 6c 65 0a 20 20 | 20 20 20 20 20 20 69 6e |while. | in|
|00001b60| 74 65 72 70 72 65 74 69 | 6e 67 20 61 72 67 75 6d |terpreti|ng argum|
|00001b70| 65 6e 74 73 20 28 66 69 | 6c 65 20 6e 6f 74 20 66 |ents (fi|le not f|
|00001b80| 6f 75 6e 64 2c 20 69 6c | 6c 65 67 61 6c 20 20 6f |ound, il|legal o|
|00001b90| 70 74 69 6f 6e 29 2c 20 | 20 74 68 65 0a 20 20 20 |ption), | the. |
|00001ba0| 20 20 20 20 20 72 65 6d | 61 69 6e 64 65 72 20 77 | rem|ainder w|
|00001bb0| 69 6c 6c 20 62 65 20 69 | 67 6e 6f 72 65 64 2e 0a |ill be i|gnored..|
|00001bc0| 0a 20 20 20 20 20 20 20 | 20 46 6f 72 20 69 6e 76 |. | For inv|
|00001bd0| 6f 6b 69 6e 67 20 63 6f | 6d 6d 61 6e 64 20 73 79 |oking co|mmand sy|
|00001be0| 6e 74 61 78 2c 20 74 79 | 70 65 20 22 68 61 72 67 |ntax, ty|pe "harg|
|00001bf0| 73 22 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |s"..SHAR|_EOF.fi.|
|00001c00| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 78 74 72 |echo sha|r: "extr|
|00001c10| 61 63 74 69 6e 67 20 27 | 61 72 67 73 27 22 20 27 |acting '|args'" '|
|00001c20| 28 34 32 35 20 63 68 61 | 72 61 63 74 65 72 73 29 |(425 cha|racters)|
|00001c30| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 61 72 |'.if tes|t -f 'ar|
|00001c40| 67 73 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |gs'.then|..echo s|
|00001c50| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00001c60| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00001c70| 6e 67 20 66 69 6c 65 20 | 27 61 72 67 73 27 22 0a |ng file |'args'".|
|00001c80| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00001c90| 52 5f 45 4f 46 20 3e 20 | 27 61 72 67 73 27 0a 20 |R_EOF > |'args'. |
|00001ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 72 67 | | Arg|
|00001cc0| 75 6d 65 6e 74 20 48 61 | 6e 64 6c 69 6e 67 0a 0a |ument Ha|ndling..|
|00001cd0| 20 20 20 20 20 20 20 20 | 54 68 65 20 73 79 6e 74 | |The synt|
|00001ce0| 61 78 20 66 6f 72 20 27 | 73 65 27 73 20 69 6e 76 |ax for '|se's inv|
|00001cf0| 6f 6b 69 6e 67 20 63 6f | 6d 6d 61 6e 64 20 69 73 |oking co|mmand is|
|00001d00| 20 75 73 75 61 6c 6c 79 | 20 67 69 76 65 6e 20 61 | usually| given a|
|00001d10| 73 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 73 65 |s. | se|
|00001d20| 20 7b 2d 3c 6f 70 74 69 | 6f 6e 3e 20 7c 20 3c 70 | {-<opti|on> | <p|
|00001d30| 61 74 68 6e 61 6d 65 3e | 7d 0a 20 20 20 20 20 20 |athname>|}. |
|00001d40| 20 20 49 74 20 69 73 20 | 73 75 67 67 65 73 74 65 | It is |suggeste|
|00001d50| 64 20 20 74 68 61 74 20 | 20 79 6f 75 20 20 73 65 |d that | you se|
|00001d60| 74 20 75 70 20 61 20 63 | 6f 6d 6d 61 6e 64 20 20 |t up a c|ommand |
|00001d70| 66 69 6c 65 20 20 74 68 | 61 74 20 20 77 69 6c 6c |file th|at will|
|00001d80| 0a 20 20 20 20 20 20 20 | 20 61 75 74 6f 6d 61 74 |. | automat|
|00001d90| 69 63 61 6c 6c 79 20 69 | 6e 76 6f 6b 65 20 27 73 |ically i|nvoke 's|
|00001da0| 65 27 20 77 69 74 68 20 | 74 68 65 20 6f 70 74 69 |e' with |the opti|
|00001db0| 6f 6e 73 20 74 68 61 74 | 20 79 6f 75 20 6c 69 6b |ons that| you lik|
|00001dc0| 65 2e 0a 0a 20 20 20 20 | 20 20 20 20 54 6f 20 73 |e... | To s|
|00001dd0| 65 65 20 68 6f 77 20 74 | 68 65 20 72 65 6d 61 69 |ee how t|he remai|
|00001de0| 6e 69 6e 67 20 61 72 67 | 75 6d 65 6e 74 73 20 61 |ning arg|uments a|
|00001df0| 72 65 20 74 72 65 61 74 | 65 64 2c 20 74 79 70 65 |re treat|ed, type|
|00001e00| 20 22 68 61 72 67 32 22 | 2e 0a 20 20 20 20 20 20 | "harg2"|.. |
|00001e10| 20 20 54 6f 20 72 65 74 | 75 72 6e 20 74 6f 20 74 | To ret|urn to t|
|00001e20| 68 65 20 67 65 6e 65 72 | 61 6c 20 68 65 6c 70 20 |he gener|al help |
|00001e30| 64 69 72 65 63 74 6f 72 | 79 2c 20 74 79 70 65 20 |director|y, type |
|00001e40| 22 68 64 69 72 22 2e 0a | 53 48 41 52 5f 45 4f 46 |"hdir"..|SHAR_EOF|
|00001e50| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 22 |.fi.echo| shar: "|
|00001e60| 65 78 74 72 61 63 74 69 | 6e 67 20 27 62 27 22 20 |extracti|ng 'b'" |
|00001e70| 27 28 31 30 30 20 63 68 | 61 72 61 63 74 65 72 73 |'(100 ch|aracters|
|00001e80| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 62 |)'.if te|st -f 'b|
|00001e90| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00001ea0| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|00001eb0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00001ec0| 20 66 69 6c 65 20 27 62 | 27 22 0a 65 6c 73 65 0a | file 'b|'".else.|
|00001ed0| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00001ee0| 20 3e 20 27 62 27 0a 0a | 0a 0a 20 20 20 20 20 20 | > 'b'..|.. |
|00001ef0| 20 20 20 20 20 20 20 20 | 20 54 68 65 72 65 20 69 | | There i|
|00001f00| 73 20 6e 6f 20 22 62 22 | 20 63 6f 6d 6d 61 6e 64 |s no "b"| command|
|00001f10| 2e 0a 20 20 20 54 6f 20 | 72 65 74 75 72 6e 20 74 |.. To |return t|
|00001f20| 6f 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 64 69 |o the co|mmand di|
|00001f30| 72 65 63 74 6f 72 79 2c | 20 74 79 70 65 20 22 68 |rectory,| type "h|
|00001f40| 63 6f 6d 64 69 72 2e 22 | 0a 0a 0a 53 48 41 52 5f |comdir."|...SHAR_|
|00001f50| 45 4f 46 0a 66 69 0a 65 | 63 68 6f 20 73 68 61 72 |EOF.fi.e|cho shar|
|00001f60| 3a 20 22 65 78 74 72 61 | 63 74 69 6e 67 20 27 62 |: "extra|cting 'b|
|00001f70| 61 6e 67 27 22 20 27 28 | 33 35 30 20 63 68 61 72 |ang'" '(|350 char|
|00001f80| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|00001f90| 20 2d 66 20 27 62 61 6e | 67 27 0a 74 68 65 6e 0a | -f 'ban|g'.then.|
|00001fa0| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00001fb0| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00001fc0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|00001fd0| 62 61 6e 67 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |bang'".e|lse.cat |
|00001fe0| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00001ff0| 62 61 6e 67 27 0a 0a 0a | 20 20 20 20 20 20 20 20 |bang'...| |
|00002000| 21 20 2d 2d 2d 20 65 78 | 63 6c 75 64 65 20 6f 6e |! --- ex|clude on|
|00002010| 20 6d 61 72 6b 6e 61 6d | 65 0a 0a 20 20 20 20 20 | marknam|e.. |
|00002020| 20 20 20 64 65 66 61 75 | 6c 74 20 72 61 6e 67 65 | defau|lt range|
|00002030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002040| 20 20 20 73 79 6e 74 61 | 78 0a 20 20 20 20 20 20 | synta|x. |
|00002050| 20 20 20 20 31 2c 24 20 | 20 20 20 20 20 20 20 20 | 1,$ | |
|00002060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002070| 20 20 20 20 21 3c 6d 3e | 63 6f 6d 6d 61 6e 64 0a | !<m>|command.|
|00002080| 20 20 20 20 20 20 20 20 | 0a 20 20 20 20 20 20 20 | |. |
|00002090| 20 53 69 6d 69 6c 61 72 | 20 74 6f 20 74 68 65 20 | Similar| to the |
|000020a0| 22 78 22 20 70 72 65 66 | 69 78 2c 20 65 78 63 65 |"x" pref|ix, exce|
|000020b0| 70 74 20 74 68 61 74 20 | 20 22 63 6f 6d 6d 61 6e |pt that | "comman|
|000020c0| 64 22 20 69 73 20 70 65 | 72 66 6f 72 6d 65 64 0a |d" is pe|rformed.|
|000020d0| 20 20 20 20 20 20 20 20 | 66 6f 72 20 61 6c 6c 20 | |for all |
|000020e0| 6c 69 6e 65 73 20 69 6e | 20 74 68 65 20 72 61 6e |lines in| the ran|
|000020f0| 67 65 20 74 68 61 74 20 | 64 6f 20 6e 6f 74 20 68 |ge that |do not h|
|00002100| 61 76 65 20 74 68 65 20 | 6d 61 72 6b 20 6e 61 6d |ave the |mark nam|
|00002110| 65 20 3c 6d 3e 2e 0a 0a | 20 20 20 20 20 20 20 20 |e <m>...| |
|00002120| 54 6f 20 72 65 74 75 72 | 6e 20 74 6f 20 74 68 65 |To retur|n to the|
|00002130| 20 63 6f 6d 6d 61 6e 64 | 20 64 69 72 65 63 74 6f | command| directo|
|00002140| 72 79 2c 20 74 79 70 65 | 20 22 68 63 6f 6d 64 69 |ry, type| "hcomdi|
|00002150| 72 22 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |r"..SHAR|_EOF.fi.|
|00002160| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 78 74 72 |echo sha|r: "extr|
|00002170| 61 63 74 69 6e 67 20 27 | 62 75 67 27 22 20 27 28 |acting '|bug'" '(|
|00002180| 34 31 33 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |413 char|acters)'|
|00002190| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 62 75 67 |.if test| -f 'bug|
|000021a0| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|000021b0| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|000021c0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|000021d0| 20 66 69 6c 65 20 27 62 | 75 67 27 22 0a 65 6c 73 | file 'b|ug'".els|
|000021e0| 65 0a 63 61 74 20 3c 3c | 20 5c 53 48 41 52 5f 45 |e.cat <<| \SHAR_E|
|000021f0| 4f 46 20 3e 20 27 62 75 | 67 27 0a 0a 20 20 20 20 |OF > 'bu|g'.. |
|00002200| 20 20 20 20 20 20 20 20 | 54 68 65 72 65 20 69 73 | |There is|
|00002210| 20 61 20 6c 69 6d 69 74 | 20 28 4d 41 58 4c 49 4e | a limit| (MAXLIN|
|00002220| 45 20 2d 20 32 29 20 6f | 6e 20 74 68 65 20 6e 75 |E - 2) o|n the nu|
|00002230| 6d 62 65 72 20 6f 66 20 | 63 68 61 72 61 63 74 65 |mber of |characte|
|00002240| 72 73 0a 20 20 20 20 20 | 20 20 20 69 6e 20 61 20 |rs. | in a |
|00002250| 6c 69 6e 65 2e 20 53 65 | 27 73 20 4d 41 58 4c 49 |line. Se|'s MAXLI|
|00002260| 4e 45 20 69 73 20 63 75 | 72 72 65 6e 74 6c 79 20 |NE is cu|rrently |
|00002270| 35 31 32 2c 20 73 6f 20 | 74 68 69 73 20 69 73 6e |512, so |this isn|
|00002280| 27 74 20 74 6f 6f 20 6d | 75 63 68 0a 20 20 20 20 |'t too m|uch. |
|00002290| 20 20 20 20 6f 66 20 61 | 20 70 72 6f 62 6c 65 6d | of a| problem|
|000022a0| 2e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 49 66 |.. | If|
|000022b0| 20 61 20 66 69 6c 65 6e | 61 6d 65 20 69 73 20 61 | a filen|ame is a|
|000022c0| 62 73 65 6e 74 20 77 68 | 65 6e 20 69 6e 76 6f 6b |bsent wh|en invok|
|000022d0| 65 64 2c 20 61 6c 6c 20 | 6f 66 20 74 68 65 0a 20 |ed, all |of the. |
|000022e0| 20 20 20 20 20 20 20 6f | 70 74 69 6f 6e 73 20 61 | o|ptions a|
|000022f0| 72 65 20 6e 6f 74 20 70 | 72 6f 63 65 73 73 65 64 |re not p|rocessed|
|00002300| 2e 0a 0a 0a 20 20 20 20 | 20 20 20 20 54 6f 20 67 |.... | To g|
|00002310| 6f 20 61 6c 6c 20 74 68 | 65 20 77 61 79 20 62 61 |o all th|e way ba|
|00002320| 63 6b 20 74 6f 20 74 68 | 65 20 67 65 6e 65 72 61 |ck to th|e genera|
|00002330| 6c 20 68 65 6c 70 20 64 | 69 73 70 6c 61 79 2c 20 |l help d|isplay, |
|00002340| 74 79 70 65 20 22 68 22 | 2e 20 20 20 20 0a 20 20 |type "h"|. . |
|00002350| 20 20 20 20 20 20 54 6f | 20 67 6f 20 62 61 63 6b | To| go back|
|00002360| 20 74 6f 20 74 68 65 20 | 67 65 6e 65 72 61 6c 20 | to the |general |
|00002370| 68 65 6c 70 20 64 69 72 | 65 63 74 6f 72 79 2c 20 |help dir|ectory, |
|00002380| 74 79 70 65 20 22 68 64 | 69 72 2e 22 20 20 20 20 |type "hd|ir." |
|00002390| 20 20 20 20 20 20 20 0a | 53 48 41 52 5f 45 4f 46 | .|SHAR_EOF|
|000023a0| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 22 |.fi.echo| shar: "|
|000023b0| 65 78 74 72 61 63 74 69 | 6e 67 20 27 63 27 22 20 |extracti|ng 'c'" |
|000023c0| 27 28 36 31 39 20 63 68 | 61 72 61 63 74 65 72 73 |'(619 ch|aracters|
|000023d0| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 63 |)'.if te|st -f 'c|
|000023e0| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|000023f0| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|00002400| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00002410| 20 66 69 6c 65 20 27 63 | 27 22 0a 65 6c 73 65 0a | file 'c|'".else.|
|00002420| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00002430| 20 3e 20 27 63 27 0a 20 | 20 20 20 20 20 20 20 20 | > 'c'. | |
|00002440| 20 63 20 20 20 20 2d 2d | 20 43 68 61 6e 67 65 20 | c --| Change |
|00002450| 63 6f 6d 6d 61 6e 64 0a | 0a 20 20 20 20 20 20 20 |command.|. |
|00002460| 20 20 20 20 20 20 20 20 | 64 65 66 61 75 6c 74 20 | |default |
|00002470| 72 61 6e 67 65 20 20 20 | 20 20 20 20 20 20 20 20 |range | |
|00002480| 73 79 6e 74 61 78 0a 20 | 20 20 20 20 20 20 20 20 |syntax. | |
|00002490| 20 20 20 20 20 20 20 20 | 20 20 20 2e 2c 2e 20 20 | | .,. |
|000024a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024b0| 63 0a 0a 20 20 20 20 20 | 20 20 20 22 63 22 20 20 |c.. | "c" |
|000024c0| 66 69 72 73 74 20 20 64 | 65 6c 65 74 65 73 20 20 |first d|eletes |
|000024d0| 74 68 65 20 72 61 6e 67 | 65 20 6f 66 20 6c 69 6e |the rang|e of lin|
|000024e0| 65 73 20 64 65 74 65 72 | 6d 69 6e 65 64 20 62 79 |es deter|mined by|
|000024f0| 20 74 68 65 20 6c 69 6e | 65 0a 20 20 20 20 20 20 | the lin|e. |
|00002500| 20 20 6e 75 6d 62 65 72 | 73 20 28 64 65 66 61 75 | number|s (defau|
|00002510| 6c 74 20 22 2e 2c 2e 22 | 29 2c 20 74 68 65 6e 20 |lt ".,."|), then |
|00002520| 65 6e 74 65 72 73 20 61 | 70 70 65 6e 64 20 6d 6f |enters a|ppend mo|
|00002530| 64 65 20 73 6f 20 20 74 | 68 61 74 20 20 79 6f 75 |de so t|hat you|
|00002540| 0a 20 20 20 20 20 20 20 | 20 63 61 6e 20 20 74 79 |. | can ty|
|00002550| 70 65 20 20 6c 69 6e 65 | 73 20 74 6f 20 72 65 70 |pe line|s to rep|
|00002560| 6c 61 63 65 20 74 68 65 | 20 64 65 6c 65 74 65 64 |lace the| deleted|
|00002570| 20 6c 69 6e 65 73 2e 20 | 20 41 70 70 65 6e 64 20 | lines. | Append |
|00002580| 6d 6f 64 65 20 69 73 0a | 20 20 20 20 20 20 20 20 |mode is.| |
|00002590| 74 65 72 6d 69 6e 61 74 | 65 64 20 77 69 74 68 20 |terminat|ed with |
|000025a0| 61 20 64 6f 74 20 6f 6e | 20 61 20 6c 69 6e 65 20 |a dot on| a line |
|000025b0| 62 79 20 69 74 73 65 6c | 66 2c 20 61 73 20 77 69 |by itsel|f, as wi|
|000025c0| 74 68 20 74 68 65 20 20 | 41 70 70 65 6e 64 0a 20 |th the |Append. |
|000025d0| 20 20 20 20 20 20 20 63 | 6f 6d 6d 61 6e 64 2e 20 | c|ommand. |
|000025e0| 22 63 3a 22 20 77 6f 72 | 6b 73 20 61 73 20 61 20 |"c:" wor|ks as a |
|000025f0| 6f 6e 65 20 6c 69 6e 65 | 20 63 68 61 6e 67 65 20 |one line| change |
|00002600| 28 69 2e 65 2e 20 77 68 | 61 74 20 20 69 73 20 20 |(i.e. wh|at is |
|00002610| 61 66 74 65 72 0a 20 20 | 20 20 20 20 20 20 74 68 |after. | th|
|00002620| 65 20 63 6f 6c 6f 6e 20 | 72 65 70 6c 61 63 65 73 |e colon |replaces|
|00002630| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 69 6e | the cur|rent lin|
|00002640| 65 29 2e 0a 0a 20 20 20 | 20 20 20 20 20 54 6f 20 |e)... | To |
|00002650| 72 65 74 75 72 6e 20 74 | 6f 20 74 68 65 20 63 6f |return t|o the co|
|00002660| 6d 6d 61 6e 64 20 64 69 | 72 65 63 74 6f 72 79 2c |mmand di|rectory,|
|00002670| 20 74 79 70 65 20 22 68 | 63 6f 6d 64 69 72 2e 22 | type "h|comdir."|
|00002680| 0a 20 20 20 20 20 20 20 | 20 53 65 65 20 61 6c 73 |. | See als|
|00002690| 6f 20 20 20 22 68 61 22 | 20 61 6e 64 20 22 68 64 |o "ha"| and "hd|
|000026a0| 22 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 65 63 |".SHAR_E|OF.fi.ec|
|000026b0| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|000026c0| 74 69 6e 67 20 27 63 63 | 27 22 20 27 28 37 34 37 |ting 'cc|'" '(747|
|000026d0| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 69 66 | charact|ers)'.if|
|000026e0| 20 74 65 73 74 20 2d 66 | 20 27 63 63 27 0a 74 68 | test -f| 'cc'.th|
|000026f0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|00002700| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00002710| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00002720| 65 20 27 63 63 27 22 0a | 65 6c 73 65 0a 63 61 74 |e 'cc'".|else.cat|
|00002730| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00002740| 27 63 63 27 0a 0a 20 20 | 20 20 20 20 20 20 43 6f |'cc'.. | Co|
|00002750| 6e 74 72 6f 6c 20 63 68 | 61 72 61 63 74 65 72 73 |ntrol ch|aracters|
|00002760| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 66 6f 72 | can be |used for|
|00002770| 20 63 6f 72 72 65 63 74 | 69 6e 67 20 74 79 70 69 | correct|ing typi|
|00002780| 6e 67 20 6d 69 73 74 61 | 6b 65 73 2c 0a 20 20 20 |ng mista|kes,. |
|00002790| 20 20 20 20 20 66 6f 72 | 20 63 6f 72 72 65 63 74 | for| correct|
|000027a0| 69 6e 67 20 63 6f 6d 6d | 61 6e 64 73 20 74 68 61 |ing comm|ands tha|
|000027b0| 74 20 68 61 76 65 20 69 | 6e 63 75 72 72 65 64 20 |t have i|ncurred |
|000027c0| 61 6e 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |an error| message|
|000027d0| 2c 0a 20 20 20 20 20 20 | 20 20 6f 72 20 66 6f 72 |,. | or for|
|000027e0| 20 65 64 69 74 69 6e 67 | 20 74 68 65 20 65 64 69 | editing| the edi|
|000027f0| 74 20 62 75 66 66 65 72 | 20 28 22 69 6e 6c 69 6e |t buffer| ("inlin|
|00002800| 65 20 65 64 69 74 69 6e | 67 22 29 20 76 69 61 20 |e editin|g") via |
|00002810| 74 68 65 20 22 76 22 0a | 20 20 20 20 20 20 20 20 |the "v".| |
|00002820| 63 6f 6d 6d 61 6e 64 2e | 20 20 54 68 65 20 6e 6f |command.| The no|
|00002830| 76 69 63 65 20 73 68 6f | 75 6c 64 20 62 65 20 74 |vice sho|uld be t|
|00002840| 6f 6c 64 20 72 69 67 68 | 74 20 61 77 61 79 20 74 |old righ|t away t|
|00002850| 68 61 74 20 68 69 74 74 | 69 6e 67 0a 20 20 20 20 |hat hitt|ing. |
|00002860| 20 20 20 20 74 68 65 20 | 44 45 4c 20 6f 72 20 52 | the |DEL or R|
|00002870| 55 42 4f 55 54 20 6b 65 | 79 20 69 73 20 61 20 77 |UBOUT ke|y is a w|
|00002880| 61 79 20 74 6f 20 65 72 | 61 73 65 20 61 6e 20 65 |ay to er|ase an e|
|00002890| 72 72 6f 6e 65 6f 75 73 | 20 63 6f 6d 6d 61 6e 64 |rroneous| command|
|000028a0| 2e 0a 0a 20 20 20 20 20 | 20 20 20 47 65 6e 65 72 |... | Gener|
|000028b0| 61 6c 20 48 65 6c 70 20 | 44 69 72 65 63 74 6f 72 |al Help |Director|
|000028c0| 79 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e |y. . . .| . . . .|
|000028d0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 68 64 69 | . . . .| . . hdi|
|000028e0| 72 0a 20 20 20 20 20 20 | 20 20 4f 74 68 65 72 20 |r. | Other |
|000028f0| 43 6f 6e 74 72 6f 6c 20 | 43 68 61 72 61 63 74 65 |Control |Characte|
|00002900| 72 73 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |rs. . . |. . . . |
|00002910| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 68 63 63 6d |. . . . |. . hccm|
|00002920| 69 73 63 0a 20 20 20 20 | 20 20 20 20 43 68 61 72 |isc. | Char|
|00002930| 61 63 74 65 72 20 49 6e | 73 65 72 74 69 6f 6e 20 |acter In|sertion |
|00002940| 43 6f 6e 74 72 6f 6c 20 | 43 68 61 72 61 63 74 65 |Control |Characte|
|00002950| 72 73 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 68 63 |rs. . . |. . . hc|
|00002960| 68 61 72 69 6e 73 0a 20 | 20 20 20 20 20 20 20 54 |harins. | T|
|00002970| 65 72 6d 69 6e 61 74 69 | 6f 6e 20 43 6f 6e 74 72 |erminati|on Contr|
|00002980| 6f 6c 20 43 68 61 72 61 | 63 74 65 72 73 2e 20 2e |ol Chara|cters. .|
|00002990| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|000029a0| 20 68 74 65 72 6d 63 68 | 61 72 0a 20 20 20 20 20 | htermch|ar. |
|000029b0| 20 20 20 43 68 61 72 61 | 63 74 65 72 20 44 65 6c | Chara|cter Del|
|000029c0| 65 74 69 6f 6e 20 43 6f | 6e 74 72 6f 6c 20 43 68 |etion Co|ntrol Ch|
|000029d0| 61 72 61 63 74 65 72 73 | 20 2e 20 2e 20 2e 20 2e |aracters| . . . .|
|000029e0| 20 2e 20 2e 20 68 63 68 | 61 72 64 65 6c 0a 20 20 | . . hch|ardel. |
|000029f0| 20 20 20 20 20 20 43 75 | 72 73 6f 72 20 4d 6f 74 | Cu|rsor Mot|
|00002a00| 69 6f 6e 20 43 6f 6e 74 | 72 6f 6c 20 43 68 61 72 |ion Cont|rol Char|
|00002a10| 61 63 74 65 72 73 2e 20 | 2e 20 2e 20 2e 20 2e 20 |acters. |. . . . |
|00002a20| 2e 20 2e 20 2e 20 2e 20 | 68 6d 6f 74 69 6f 6e 0a |. . . . |hmotion.|
|00002a30| 53 48 41 52 5f 45 4f 46 | 0a 66 69 0a 65 63 68 6f |SHAR_EOF|.fi.echo|
|00002a40| 20 73 68 61 72 3a 20 22 | 65 78 74 72 61 63 74 69 | shar: "|extracti|
|00002a50| 6e 67 20 27 63 63 6d 69 | 73 63 27 22 20 27 28 34 |ng 'ccmi|sc'" '(4|
|00002a60| 31 35 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |15 chara|cters)'.|
|00002a70| 69 66 20 74 65 73 74 20 | 2d 66 20 27 63 63 6d 69 |if test |-f 'ccmi|
|00002a80| 73 63 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |sc'.then|..echo s|
|00002a90| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00002aa0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00002ab0| 6e 67 20 66 69 6c 65 20 | 27 63 63 6d 69 73 63 27 |ng file |'ccmisc'|
|00002ac0| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|00002ad0| 48 41 52 5f 45 4f 46 20 | 3e 20 27 63 63 6d 69 73 |HAR_EOF |> 'ccmis|
|00002ae0| 63 27 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c'. | |
|00002af0| 20 20 20 20 20 20 20 20 | 20 20 4d 69 73 63 65 6c | | Miscel|
|00002b00| 6c 61 6e 65 6f 75 73 20 | 43 6f 6e 74 72 6f 6c 20 |laneous |Control |
|00002b10| 43 68 61 72 61 63 74 65 | 72 73 0a 0a 20 20 20 20 |Characte|rs.. |
|00002b20| 20 20 20 20 20 43 54 52 | 4c 2d 5a 20 74 6f 67 67 | CTR|L-Z togg|
|00002b30| 6c 65 73 20 61 6e 20 69 | 6e 64 69 63 61 74 6f 72 |les an i|ndicator|
|00002b40| 20 74 68 61 74 20 61 63 | 74 73 20 61 73 20 61 20 | that ac|ts as a |
|00002b50| 22 73 68 69 66 74 20 6c | 6f 63 6b 22 2c 0a 20 20 |"shift l|ock",. |
|00002b60| 20 20 20 20 20 20 20 63 | 6f 6e 74 72 6f 6c 6c 69 | c|ontrolli|
|00002b70| 6e 67 20 63 61 73 65 20 | 6d 61 70 70 69 6e 67 20 |ng case |mapping |
|00002b80| 6f 6e 20 61 6c 70 68 61 | 62 65 74 69 63 73 20 74 |on alpha|betics t|
|00002b90| 79 70 65 64 2e 0a 0a 20 | 20 20 20 20 20 20 20 20 |yped... | |
|00002ba0| 43 54 52 4c 2d 51 20 73 | 69 67 6e 61 6c 73 20 74 |CTRL-Q s|ignals t|
|00002bb0| 68 65 20 65 64 69 74 6f | 72 20 74 68 61 74 20 79 |he edito|r that y|
|00002bc0| 6f 75 20 73 75 73 70 65 | 63 74 20 74 68 61 74 20 |ou suspe|ct that |
|00002bd0| 66 6f 72 20 73 6f 6d 65 | 0a 20 20 20 20 20 20 20 |for some|. |
|00002be0| 20 20 72 65 61 73 6f 6e | 20 74 68 65 20 73 63 72 | reason| the scr|
|00002bf0| 65 65 6e 20 69 73 20 67 | 61 72 62 61 67 65 64 2e |een is g|arbaged.|
|00002c00| 20 20 54 68 65 20 72 65 | 73 70 6f 6e 73 65 20 69 | The re|sponse i|
|00002c10| 73 20 74 6f 20 63 6c 65 | 61 72 20 61 6e 64 0a 20 |s to cle|ar and. |
|00002c20| 20 20 20 20 20 20 20 20 | 72 65 73 74 6f 72 65 20 | |restore |
|00002c30| 74 68 65 20 73 63 72 65 | 65 6e 2e 0a 0a 0a 20 20 |the scre|en.... |
|00002c40| 20 20 20 20 20 20 20 54 | 79 70 65 20 22 68 63 63 | T|ype "hcc|
|00002c50| 22 20 74 6f 20 67 65 74 | 20 62 61 63 6b 20 74 6f |" to get| back to|
|00002c60| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 20 63 68 61 | the con|trol cha|
|00002c70| 72 61 63 74 65 72 20 64 | 69 72 65 63 74 6f 72 79 |racter d|irectory|
|00002c80| 2e 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 65 63 |..SHAR_E|OF.fi.ec|
|00002c90| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|00002ca0| 74 69 6e 67 20 27 63 68 | 61 72 64 65 6c 27 22 20 |ting 'ch|ardel'" |
|00002cb0| 27 28 34 38 31 20 63 68 | 61 72 61 63 74 65 72 73 |'(481 ch|aracters|
|00002cc0| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 63 |)'.if te|st -f 'c|
|00002cd0| 68 61 72 64 65 6c 27 0a | 74 68 65 6e 0a 09 65 63 |hardel'.|then..ec|
|00002ce0| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|00002cf0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00002d00| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 63 68 61 |isting f|ile 'cha|
|00002d10| 72 64 65 6c 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |rdel'".e|lse.cat |
|00002d20| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00002d30| 63 68 61 72 64 65 6c 27 | 0a 20 20 20 20 20 20 20 |chardel'|. |
|00002d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 43 68 61 | | Cha|
|00002d50| 72 61 63 74 65 72 20 44 | 65 6c 65 74 69 6f 6e 20 |racter D|eletion |
|00002d60| 43 6f 6e 74 72 6f 6c 20 | 43 68 61 72 61 63 74 65 |Control |Characte|
|00002d70| 72 73 0a 20 20 20 20 20 | 20 20 20 47 6f 62 62 6c |rs. | Gobbl|
|00002d80| 65 20 6f 6e 65 20 63 68 | 61 72 61 63 74 65 72 0a |e one ch|aracter.|
|00002d90| 20 20 20 20 20 20 20 20 | 20 20 74 6f 20 6c 65 66 | | to lef|
|00002da0| 74 20 6f 66 20 63 75 72 | 73 6f 72 20 20 20 20 20 |t of cur|sor |
|00002db0| 20 20 20 20 20 43 54 52 | 4c 2d 55 0a 20 20 20 20 | CTR|L-U. |
|00002dc0| 20 20 20 20 20 20 61 74 | 20 63 75 72 73 6f 72 20 | at| cursor |
|00002dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002de0| 20 43 54 52 4c 2d 52 0a | 20 20 20 20 20 20 20 20 | CTRL-R.| |
|00002df0| 47 6f 62 62 6c 65 20 61 | 6c 6c 20 63 68 61 72 61 |Gobble a|ll chara|
|00002e00| 63 74 65 72 73 0a 20 20 | 20 20 20 20 20 20 20 20 |cters. | |
|00002e10| 74 6f 20 6c 65 66 74 20 | 6f 66 20 63 75 72 73 6f |to left |of curso|
|00002e20| 72 20 20 20 20 20 20 20 | 20 20 20 43 54 52 4c 2d |r | CTRL-|
|00002e30| 59 0a 20 20 20 20 20 20 | 20 20 20 20 61 74 20 61 |Y. | at a|
|00002e40| 6e 64 20 74 6f 20 72 69 | 67 68 74 20 6f 66 20 63 |nd to ri|ght of c|
|00002e50| 75 72 73 6f 72 20 20 43 | 54 52 4c 2d 54 0a 20 20 |ursor C|TRL-T. |
|00002e60| 20 20 20 20 20 20 20 20 | 6f 6e 20 65 6e 74 69 72 | |on entir|
|00002e70| 65 20 6c 69 6e 65 20 20 | 20 20 20 20 20 20 20 20 |e line | |
|00002e80| 20 20 20 44 45 4c 20 28 | 61 2e 20 6b 2e 20 61 2e | DEL (|a. k. a.|
|00002e90| 20 52 55 42 4f 55 54 29 | 0a 0a 0a 20 20 20 20 20 | RUBOUT)|... |
|00002ea0| 20 20 20 22 68 64 69 72 | 22 20 67 65 74 73 20 79 | "hdir|" gets y|
|00002eb0| 6f 75 20 62 61 63 6b 20 | 74 6f 20 74 68 65 20 67 |ou back |to the g|
|00002ec0| 65 6e 65 72 61 6c 20 68 | 65 6c 70 20 64 69 72 65 |eneral h|elp dire|
|00002ed0| 63 74 6f 72 79 2e 0a 20 | 20 20 20 20 20 20 20 54 |ctory.. | T|
|00002ee0| 79 70 65 20 22 68 63 63 | 22 20 74 6f 20 67 65 74 |ype "hcc|" to get|
|00002ef0| 20 62 61 63 6b 20 74 6f | 20 74 68 65 20 63 6f 6e | back to| the con|
|00002f00| 74 72 6f 6c 20 63 68 61 | 72 61 63 74 65 72 20 64 |trol cha|racter d|
|00002f10| 69 72 65 63 74 6f 72 79 | 2e 0a 53 48 41 52 5f 45 |irectory|..SHAR_E|
|00002f20| 4f 46 0a 66 69 0a 65 63 | 68 6f 20 73 68 61 72 3a |OF.fi.ec|ho shar:|
|00002f30| 20 22 65 78 74 72 61 63 | 74 69 6e 67 20 27 63 68 | "extrac|ting 'ch|
|00002f40| 61 72 69 6e 73 27 22 20 | 27 28 36 32 30 20 63 68 |arins'" |'(620 ch|
|00002f50| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|00002f60| 73 74 20 2d 66 20 27 63 | 68 61 72 69 6e 73 27 0a |st -f 'c|harins'.|
|00002f70| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00002f80| 20 22 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d | "will n|ot over-|
|00002f90| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00002fa0| 69 6c 65 20 27 63 68 61 | 72 69 6e 73 27 22 0a 65 |ile 'cha|rins'".e|
|00002fb0| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|00002fc0| 5f 45 4f 46 20 3e 20 27 | 63 68 61 72 69 6e 73 27 |_EOF > '|charins'|
|00002fd0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002fe0| 20 20 20 20 20 43 68 61 | 72 61 63 74 65 72 20 49 | Cha|racter I|
|00002ff0| 6e 73 65 72 74 69 6f 6e | 20 43 6f 6e 74 72 6f 6c |nsertion| Control|
|00003000| 20 43 68 61 72 61 63 74 | 65 72 73 0a 0a 20 20 20 | Charact|ers.. |
|00003010| 20 20 20 20 20 43 54 52 | 4c 2d 43 20 69 6e 73 65 | CTR|L-C inse|
|00003020| 72 74 73 20 61 20 62 6c | 61 6e 6b 20 61 74 20 74 |rts a bl|ank at t|
|00003030| 68 65 20 63 75 72 73 6f | 72 20 70 6f 73 69 74 69 |he curso|r positi|
|00003040| 6f 6e 2e 0a 20 20 20 20 | 20 20 20 20 43 54 52 4c |on.. | CTRL|
|00003050| 2d 58 20 69 6e 73 65 72 | 74 73 20 62 6c 61 6e 6b |-X inser|ts blank|
|00003060| 73 20 74 6f 20 74 68 65 | 20 6e 65 78 74 20 74 61 |s to the| next ta|
|00003070| 62 20 73 74 6f 70 20 61 | 74 20 74 68 65 20 63 75 |b stop a|t the cu|
|00003080| 72 73 6f 72 20 70 6f 73 | 69 74 69 6f 6e 2e 0a 20 |rsor pos|ition.. |
|00003090| 20 20 20 20 20 20 20 43 | 54 52 4c 2d 41 20 74 6f | C|TRL-A to|
|000030a0| 67 67 6c 65 73 20 49 6e | 73 65 72 74 20 4d 6f 64 |ggles In|sert Mod|
|000030b0| 65 2e 0a 0a 20 20 20 20 | 20 20 20 20 57 68 65 6e |e... | When|
|000030c0| 20 49 6e 73 65 72 74 20 | 4d 6f 64 65 20 69 73 20 | Insert |Mode is |
|000030d0| 69 6e 20 65 66 66 65 63 | 74 2c 20 61 6e 79 20 70 |in effec|t, any p|
|000030e0| 72 69 6e 74 69 6e 67 20 | 63 68 61 72 61 63 74 65 |rinting |characte|
|000030f0| 72 20 74 79 70 65 64 20 | 69 73 0a 20 20 20 20 20 |r typed |is. |
|00003100| 20 20 20 69 6e 73 65 72 | 74 65 64 20 69 6e 74 6f | inser|ted into|
|00003110| 20 74 68 65 20 6c 69 6e | 65 2c 20 77 69 74 68 20 | the lin|e, with |
|00003120| 63 68 61 72 61 63 74 65 | 72 73 20 61 74 20 61 6e |characte|rs at an|
|00003130| 64 20 74 6f 20 74 68 65 | 20 72 69 67 68 74 20 6f |d to the| right o|
|00003140| 66 0a 20 20 20 20 20 20 | 20 20 74 68 65 20 63 75 |f. | the cu|
|00003150| 72 73 6f 72 20 6d 6f 76 | 69 6e 67 20 6f 76 65 72 |rsor mov|ing over|
|00003160| 20 74 6f 20 6d 61 6b 65 | 20 72 6f 6f 6d 2e 20 20 | to make| room. |
|00003170| 57 68 65 6e 20 49 6e 73 | 65 72 74 20 4d 6f 64 65 |When Ins|ert Mode|
|00003180| 20 69 73 20 20 6e 6f 74 | 0a 20 20 20 20 20 20 20 | is not|. |
|00003190| 20 69 6e 20 65 66 66 65 | 63 74 2c 20 61 6e 79 20 | in effe|ct, any |
|000031a0| 70 72 69 6e 74 69 6e 67 | 20 63 68 61 72 61 63 74 |printing| charact|
|000031b0| 65 72 20 74 79 70 65 64 | 20 77 69 6c 6c 20 72 65 |er typed| will re|
|000031c0| 70 6c 61 63 65 20 28 6f | 76 65 72 6c 61 79 29 0a |place (o|verlay).|
|000031d0| 20 20 20 20 20 20 20 20 | 74 68 65 20 63 68 61 72 | |the char|
|000031e0| 61 63 74 65 72 20 61 74 | 20 74 68 65 20 63 75 72 |acter at| the cur|
|000031f0| 73 6f 72 2e 0a 0a 0a 20 | 20 20 20 20 20 20 20 54 |sor.... | T|
|00003200| 6f 20 72 65 74 75 72 6e | 20 74 6f 20 74 68 65 20 |o return| to the |
|00003210| 64 69 72 65 63 74 6f 72 | 79 20 6f 66 20 63 6f 6e |director|y of con|
|00003220| 74 72 6f 6c 20 63 68 61 | 72 61 63 74 65 72 73 2c |trol cha|racters,|
|00003230| 20 74 79 70 65 20 22 68 | 63 63 22 2e 0a 53 48 41 | type "h|cc"..SHA|
|00003240| 52 5f 45 4f 46 0a 66 69 | 0a 65 63 68 6f 20 73 68 |R_EOF.fi|.echo sh|
|00003250| 61 72 3a 20 22 65 78 74 | 72 61 63 74 69 6e 67 20 |ar: "ext|racting |
|00003260| 27 63 6f 6c 6f 6e 27 22 | 20 27 28 33 35 35 20 63 |'colon'"| '(355 c|
|00003270| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00003280| 65 73 74 20 2d 66 20 27 | 63 6f 6c 6f 6e 27 0a 74 |est -f '|colon'.t|
|00003290| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000032a0| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|000032b0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000032c0| 6c 65 20 27 63 6f 6c 6f | 6e 27 22 0a 65 6c 73 65 |le 'colo|n'".else|
|000032d0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|000032e0| 46 20 3e 20 27 63 6f 6c | 6f 6e 27 0a 20 20 20 20 |F > 'col|on'. |
|000032f0| 20 20 20 20 20 3a 20 20 | 20 20 2d 2d 20 50 61 67 | : | -- Pag|
|00003300| 65 20 63 6f 6d 6d 61 6e | 64 0a 0a 20 20 20 20 20 |e comman|d.. |
|00003310| 20 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 | | default|
|00003320| 20 72 61 6e 67 65 20 20 | 20 20 20 20 20 20 20 20 | range | |
|00003330| 20 73 79 6e 74 61 78 0a | 20 20 20 20 20 20 20 20 | syntax.| |
|00003340| 20 20 20 20 20 20 20 20 | 20 20 20 20 2e 20 20 20 | | . |
|00003350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3a 0a | | :.|
|00003360| 0a 20 20 20 20 20 20 22 | 3a 22 20 69 73 20 66 6f |. "|:" is fo|
|00003370| 72 20 70 61 67 69 6e 67 | 20 74 68 65 20 61 63 74 |r paging| the act|
|00003380| 69 76 65 20 61 72 65 61 | 20 6f 6e 65 20 70 61 67 |ive area| one pag|
|00003390| 65 20 28 6e 2d 31 20 6c | 69 6e 65 73 29 0a 20 20 |e (n-1 l|ines). |
|000033a0| 20 20 20 20 66 6f 72 77 | 61 72 64 2e 0a 0a 0a 20 | forw|ard.... |
|000033b0| 20 20 20 20 20 20 46 6f | 72 20 70 61 67 69 6e 67 | Fo|r paging|
|000033c0| 20 62 61 63 6b 77 61 72 | 64 2c 20 73 65 65 20 22 | backwar|d, see "|
|000033d0| 68 70 22 0a 20 20 20 20 | 20 20 20 53 65 65 20 61 |hp". | See a|
|000033e0| 6c 73 6f 3a 20 20 22 68 | 63 63 22 20 28 63 6f 6e |lso: "h|cc" (con|
|000033f0| 74 72 6f 6c 20 63 68 61 | 72 61 63 74 65 72 73 29 |trol cha|racters)|
|00003400| 20 61 6e 64 20 22 68 63 | 22 20 28 63 68 61 6e 67 | and "hc|" (chang|
|00003410| 65 29 2e 0a 20 20 20 20 | 20 20 20 54 6f 20 72 65 |e).. | To re|
|00003420| 74 75 72 6e 20 74 6f 20 | 74 68 65 20 63 6f 6d 6d |turn to |the comm|
|00003430| 61 6e 64 20 64 69 72 65 | 63 74 6f 72 79 2c 20 74 |and dire|ctory, t|
|00003440| 79 70 65 20 22 68 63 6f | 6d 64 69 72 2e 22 0a 53 |ype "hco|mdir.".S|
|00003450| 48 41 52 5f 45 4f 46 0a | 66 69 0a 65 63 68 6f 20 |HAR_EOF.|fi.echo |
|00003460| 73 68 61 72 3a 20 22 65 | 78 74 72 61 63 74 69 6e |shar: "e|xtractin|
|00003470| 67 20 27 63 6f 6d 27 22 | 20 27 28 35 38 39 20 63 |g 'com'"| '(589 c|
|00003480| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00003490| 65 73 74 20 2d 66 20 27 | 63 6f 6d 27 0a 74 68 65 |est -f '|com'.the|
|000034a0| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 77 |n..echo |shar: "w|
|000034b0| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|000034c0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|000034d0| 20 27 63 6f 6d 27 22 0a | 65 6c 73 65 0a 63 61 74 | 'com'".|else.cat|
|000034e0| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000034f0| 27 63 6f 6d 27 0a 20 20 | 20 20 20 20 20 20 20 20 |'com'. | |
|00003500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003510| 20 20 20 20 20 20 20 20 | 20 43 6f 6d 6d 61 6e 64 | | Command|
|00003520| 73 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s. | |
|00003530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003560| 20 20 20 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 | | . |
|00003570| 20 20 20 20 57 68 65 6e | 20 20 74 68 65 20 22 63 | When| the "c|
|00003580| 6d 64 3e 22 20 70 72 6f | 6d 70 74 20 61 70 70 65 |md>" pro|mpt appe|
|00003590| 61 72 73 20 6e 65 61 72 | 20 74 68 65 20 62 6f 74 |ars near| the bot|
|000035a0| 74 6f 6d 20 6f 66 20 74 | 68 65 20 73 63 72 65 65 |tom of t|he scree|
|000035b0| 6e 2c 0a 20 20 20 20 20 | 20 20 20 61 20 63 6f 6d |n,. | a com|
|000035c0| 6d 61 6e 64 20 6d 61 79 | 20 62 65 20 74 79 70 65 |mand may| be type|
|000035d0| 64 2e 20 20 43 6f 6d 6d | 61 6e 64 73 20 77 6f 72 |d. Comm|ands wor|
|000035e0| 6b 20 66 6f 72 20 74 68 | 65 20 6d 6f 73 74 20 20 |k for th|e most |
|000035f0| 70 61 72 74 20 20 74 68 | 65 0a 20 20 20 20 20 20 |part th|e. |
|00003600| 20 20 73 61 6d 65 20 77 | 61 79 20 61 73 20 63 6f | same w|ay as co|
|00003610| 6d 6d 61 6e 64 73 20 74 | 6f 20 27 65 64 27 2c 20 |mmands t|o 'ed', |
|00003620| 74 68 65 20 55 6e 69 78 | 20 73 79 73 74 65 6d 20 |the Unix| system |
|00003630| 74 65 78 74 20 65 64 69 | 74 6f 72 20 77 69 74 68 |text edi|tor with|
|00003640| 0a 20 20 20 20 20 20 20 | 20 77 68 69 63 68 20 79 |. | which y|
|00003650| 6f 75 20 6d 61 79 20 62 | 65 20 66 61 6d 69 6c 69 |ou may b|e famili|
|00003660| 61 72 2e 0a 0a 20 20 20 | 20 20 20 20 20 20 20 54 |ar... | T|
|00003670| 6f 20 72 65 74 75 72 6e | 20 74 6f 20 74 68 65 20 |o return| to the |
|00003680| 67 65 6e 65 72 61 6c 20 | 68 65 6c 70 20 64 69 72 |general |help dir|
|00003690| 65 63 74 6f 72 79 2c 20 | 74 79 70 65 20 22 68 64 |ectory, |type "hd|
|000036a0| 69 72 22 2e 20 20 20 20 | 20 20 20 20 20 20 0a 20 |ir". | . |
|000036b0| 20 20 20 20 20 20 20 20 | 20 46 6f 72 20 69 6e 66 | | For inf|
|000036c0| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 73 |ormation| about s|
|000036d0| 70 65 63 69 66 69 63 20 | 63 6f 6d 6d 61 6e 64 73 |pecific |commands|
|000036e0| 2c 20 74 79 70 65 20 22 | 68 63 6f 6d 64 69 72 22 |, type "|hcomdir"|
|000036f0| 2e 20 20 20 20 20 20 20 | 0a 20 20 20 20 20 20 20 |. |. |
|00003700| 20 20 20 46 6f 72 20 64 | 65 74 61 69 6c 73 20 6f | For d|etails o|
|00003710| 6e 20 63 6f 6d 6d 61 6e | 64 20 73 79 6e 74 61 78 |n comman|d syntax|
|00003720| 2c 20 74 79 70 65 20 22 | 68 63 6f 6d 73 79 6e 22 |, type "|hcomsyn"|
|00003730| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003740| 20 20 0a 53 48 41 52 5f | 45 4f 46 0a 66 69 0a 65 | .SHAR_|EOF.fi.e|
|00003750| 63 68 6f 20 73 68 61 72 | 3a 20 22 65 78 74 72 61 |cho shar|: "extra|
|00003760| 63 74 69 6e 67 20 27 63 | 6f 6d 5f 73 77 74 27 22 |cting 'c|om_swt'"|
|00003770| 20 27 28 36 30 34 20 63 | 68 61 72 61 63 74 65 72 | '(604 c|haracter|
|00003780| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00003790| 63 6f 6d 5f 73 77 74 27 | 0a 74 68 65 6e 0a 09 65 |com_swt'|.then..e|
|000037a0| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|000037b0| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|000037c0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 63 6f |xisting |file 'co|
|000037d0| 6d 5f 73 77 74 27 22 0a | 65 6c 73 65 0a 63 61 74 |m_swt'".|else.cat|
|000037e0| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000037f0| 27 63 6f 6d 5f 73 77 74 | 27 0a 20 20 20 20 20 20 |'com_swt|'. |
|00003800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 43 6f 6d | | Com|
|00003820| 6d 61 6e 64 73 0a 20 20 | 20 20 20 20 20 20 20 20 |mands. | |
|00003830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00003870| 20 20 20 20 20 20 20 20 | 57 68 65 6e 20 20 74 68 | |When th|
|00003880| 65 20 22 63 6d 64 3e 22 | 20 70 72 6f 6d 70 74 20 |e "cmd>"| prompt |
|00003890| 61 70 70 65 61 72 73 20 | 6e 65 61 72 20 74 68 65 |appears |near the|
|000038a0| 20 20 62 6f 74 74 6f 6d | 20 6f 66 20 74 68 65 20 | bottom| of the |
|000038b0| 73 63 72 65 65 6e 2c 0a | 20 20 20 20 20 20 20 20 |screen,.| |
|000038c0| 61 20 63 6f 6d 6d 61 6e | 64 20 6d 61 79 20 62 65 |a comman|d may be|
|000038d0| 20 74 79 70 65 64 2e 20 | 20 43 6f 6d 6d 61 6e 64 | typed. | Command|
|000038e0| 73 20 77 6f 72 6b 20 20 | 66 6f 72 20 74 68 65 20 |s work |for the |
|000038f0| 6d 6f 73 74 20 20 70 61 | 72 74 20 20 74 68 65 0a |most pa|rt the.|
|00003900| 20 20 20 20 20 20 20 20 | 73 61 6d 65 20 77 61 79 | |same way|
|00003910| 20 61 73 20 63 6f 6d 6d | 61 6e 64 73 20 74 6f 20 | as comm|ands to |
|00003920| 27 65 64 27 2c 20 74 68 | 65 20 53 6f 66 74 77 61 |'ed', th|e Softwa|
|00003930| 72 65 20 54 6f 6f 6c 73 | 20 53 75 62 73 79 73 74 |re Tools| Subsyst|
|00003940| 65 6d 20 74 65 78 74 0a | 20 20 20 20 20 20 20 20 |em text.| |
|00003950| 65 64 69 74 6f 72 20 77 | 69 74 68 20 77 68 69 63 |editor w|ith whic|
|00003960| 68 20 79 6f 75 20 6d 61 | 79 20 62 65 20 66 61 6d |h you ma|y be fam|
|00003970| 69 6c 69 61 72 2e 0a 0a | 20 20 20 20 20 20 20 20 |iliar...| |
|00003980| 20 20 54 6f 20 72 65 74 | 75 72 6e 20 74 6f 20 74 | To ret|urn to t|
|00003990| 68 65 20 67 65 6e 65 72 | 61 6c 20 68 65 6c 70 20 |he gener|al help |
|000039a0| 64 69 72 65 63 74 6f 72 | 79 2c 20 74 79 70 65 20 |director|y, type |
|000039b0| 22 68 64 69 72 22 2e 20 | 20 20 20 20 20 20 20 20 |"hdir". | |
|000039c0| 20 0a 20 20 20 20 20 20 | 20 20 20 20 46 6f 72 20 | . | For |
|000039d0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|000039e0| 74 20 73 70 65 63 69 66 | 69 63 20 63 6f 6d 6d 61 |t specif|ic comma|
|000039f0| 6e 64 73 2c 20 74 79 70 | 65 20 22 68 63 6f 6d 64 |nds, typ|e "hcomd|
|00003a00| 69 72 22 2e 20 20 20 20 | 20 20 20 0a 20 20 20 20 |ir". | . |
|00003a10| 20 20 20 20 20 20 46 6f | 72 20 64 65 74 61 69 6c | Fo|r detail|
|00003a20| 73 20 6f 6e 20 63 6f 6d | 6d 61 6e 64 20 73 79 6e |s on com|mand syn|
|00003a30| 74 61 78 2c 20 74 79 70 | 65 20 22 68 63 6f 6d 73 |tax, typ|e "hcoms|
|00003a40| 79 6e 22 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |yn". | |
|00003a50| 20 20 20 20 20 0a 53 48 | 41 52 5f 45 4f 46 0a 66 | .SH|AR_EOF.f|
|00003a60| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 22 65 78 |i.echo s|har: "ex|
|00003a70| 74 72 61 63 74 69 6e 67 | 20 27 63 6f 6d 64 69 72 |tracting| 'comdir|
|00003a80| 27 22 20 27 28 38 31 39 | 20 63 68 61 72 61 63 74 |'" '(819| charact|
|00003a90| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|00003aa0| 20 27 63 6f 6d 64 69 72 | 27 0a 74 68 65 6e 0a 09 | 'comdir|'.then..|
|00003ab0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|00003ac0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00003ad0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 63 |existing| file 'c|
|00003ae0| 6f 6d 64 69 72 27 22 0a | 65 6c 73 65 0a 63 61 74 |omdir'".|else.cat|
|00003af0| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00003b00| 27 63 6f 6d 64 69 72 27 | 0a 0a 20 20 20 20 20 20 |'comdir'|.. |
|00003b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b20| 20 20 20 20 20 20 20 20 | 43 6f 6d 6d 61 6e 64 20 | |Command |
|00003b30| 44 69 72 65 63 74 6f 72 | 79 0a 0a 20 20 20 20 20 |Director|y.. |
|00003b40| 20 20 20 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 | The f|ollowing|
|00003b50| 20 61 72 65 20 74 68 65 | 20 66 75 6c 6c 20 6e 61 | are the| full na|
|00003b60| 6d 65 73 20 6f 66 20 6f | 6e 65 2d 6c 65 74 74 65 |mes of o|ne-lette|
|00003b70| 72 20 63 6f 6d 6d 61 6e | 64 73 0a 20 20 20 20 20 |r comman|ds. |
|00003b80| 20 20 20 41 70 70 65 6e | 64 20 20 20 20 20 20 20 | Appen|d |
|00003b90| 20 20 20 20 20 43 68 61 | 6e 67 65 20 20 20 44 65 | Cha|nge De|
|00003ba0| 6c 65 74 65 20 20 20 45 | 6e 74 65 72 20 20 20 20 |lete E|nter |
|00003bb0| 46 69 6c 65 20 20 20 20 | 20 47 6c 6f 62 61 6c 0a |File | Global.|
|00003bc0| 20 20 20 20 20 20 20 20 | 48 65 6c 70 20 20 20 20 | |Help |
|00003bd0| 20 49 6e 73 65 72 74 20 | 20 20 4a 6f 69 6e 20 20 | Insert | Join |
|00003be0| 20 20 20 6d 61 72 4b 20 | 20 20 20 20 4c 6f 63 61 | marK | Loca|
|00003bf0| 74 65 20 20 20 4d 6f 76 | 65 20 20 20 20 20 4e 61 |te Mov|e Na|
|00003c00| 6d 65 0a 20 20 20 20 20 | 20 20 20 4f 70 74 69 6f |me. | Optio|
|00003c10| 6e 20 20 20 50 61 67 65 | 20 20 20 20 20 51 75 69 |n Page| Qui|
|00003c20| 74 20 20 20 20 20 52 65 | 61 64 20 20 20 20 20 53 |t Re|ad S|
|00003c30| 75 62 73 74 69 74 75 74 | 65 20 20 20 20 20 20 20 |ubstitut|e |
|00003c40| 20 54 6f 0a 20 20 20 20 | 20 20 20 20 55 6e 64 65 | To. | Unde|
|00003c50| 6c 65 74 65 20 6f 56 65 | 72 6c 61 79 20 20 57 72 |lete oVe|rlay Wr|
|00003c60| 69 74 65 20 20 20 20 65 | 58 63 6c 75 64 65 20 20 |ite e|Xclude |
|00003c70| 74 72 61 6e 73 6c 59 74 | 65 72 61 74 65 0a 0a 20 |translYt|erate.. |
|00003c80| 20 20 20 20 20 20 20 46 | 6f 72 20 69 6e 66 6f 20 | F|or info |
|00003c90| 61 62 6f 75 74 20 6f 6e | 65 20 6f 66 20 74 68 65 |about on|e of the|
|00003ca0| 73 65 20 63 6f 6d 6d 61 | 6e 64 73 2c 20 74 79 70 |se comma|nds, typ|
|00003cb0| 65 20 22 68 22 20 66 6f | 6c 6c 6f 77 65 64 20 62 |e "h" fo|llowed b|
|00003cc0| 79 0a 20 20 20 20 20 20 | 20 20 77 68 69 63 68 65 |y. | whiche|
|00003cd0| 76 65 72 20 6c 65 74 74 | 65 72 20 69 73 20 63 61 |ver lett|er is ca|
|00003ce0| 70 69 74 61 6c 69 7a 65 | 64 20 69 6e 20 74 68 65 |pitalize|d in the|
|00003cf0| 20 63 6f 6d 6d 61 6e 64 | 20 6e 61 6d 65 20 61 62 | command| name ab|
|00003d00| 6f 76 65 2e 0a 0a 20 20 | 20 20 20 20 20 20 4f 74 |ove... | Ot|
|00003d10| 68 65 72 20 63 6f 6d 6d | 61 6e 64 73 20 61 6e 64 |her comm|ands and|
|00003d20| 20 74 68 65 69 72 20 68 | 65 6c 70 20 63 6f 6d 6d | their h|elp comm|
|00003d30| 61 6e 64 73 20 61 72 65 | 3a 0a 20 20 20 20 20 20 |ands are|:. |
|00003d40| 20 20 20 20 20 20 70 72 | 69 6e 74 20 76 61 6c 75 | pr|int valu|
|00003d50| 65 20 20 20 68 65 71 75 | 61 6c 20 20 20 20 20 20 |e hequ|al |
|00003d60| 20 20 67 6c 6f 62 61 6c | 20 6f 6e 20 6d 61 72 6b | global| on mark|
|00003d70| 20 20 20 68 71 75 6f 74 | 65 0a 20 20 20 20 20 20 | hquot|e. |
|00003d80| 20 20 20 20 20 20 6d 69 | 73 63 65 6c 6c 61 6e 79 | mi|scellany|
|00003d90| 20 20 20 20 68 7a 20 20 | 20 20 20 20 20 20 20 20 | hz | |
|00003da0| 20 20 65 78 63 6c 75 64 | 65 20 6f 6e 20 6d 61 72 | exclud|e on mar|
|00003db0| 6b 20 20 68 74 69 6c 64 | 65 0a 20 20 20 20 20 20 |k htild|e. |
|00003dc0| 20 20 20 20 20 20 73 68 | 65 6c 6c 20 65 73 63 61 | sh|ell esca|
|00003dd0| 70 65 20 20 68 73 68 65 | 6c 6c 20 20 20 20 20 20 |pe hshe|ll |
|00003de0| 20 20 2e 73 65 72 63 20 | 66 69 6c 65 20 20 20 20 | .serc |file |
|00003df0| 20 20 20 68 73 65 72 63 | 0a 0a 20 20 20 20 20 20 | hserc|.. |
|00003e00| 20 20 54 68 65 72 65 20 | 61 72 65 20 73 74 69 6c | There |are stil|
|00003e10| 6c 20 6d 6f 72 65 20 63 | 6f 6d 6d 61 6e 64 73 3b |l more c|ommands;|
|00003e20| 20 74 6f 20 73 65 65 20 | 74 68 65 6d 20 74 79 70 | to see |them typ|
|00003e30| 65 20 22 68 73 70 65 63 | 6c 22 2e 0a 53 48 41 52 |e "hspec|l"..SHAR|
|00003e40| 5f 45 4f 46 0a 66 69 0a | 65 63 68 6f 20 73 68 61 |_EOF.fi.|echo sha|
|00003e50| 72 3a 20 22 65 78 74 72 | 61 63 74 69 6e 67 20 27 |r: "extr|acting '|
|00003e60| 63 6f 6d 64 69 72 5f 73 | 77 74 27 22 20 27 28 38 |comdir_s|wt'" '(8|
|00003e70| 31 31 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |11 chara|cters)'.|
|00003e80| 69 66 20 74 65 73 74 20 | 2d 66 20 27 63 6f 6d 64 |if test |-f 'comd|
|00003e90| 69 72 5f 73 77 74 27 0a | 74 68 65 6e 0a 09 65 63 |ir_swt'.|then..ec|
|00003ea0| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|00003eb0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00003ec0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 63 6f 6d |isting f|ile 'com|
|00003ed0| 64 69 72 5f 73 77 74 27 | 22 0a 65 6c 73 65 0a 63 |dir_swt'|".else.c|
|00003ee0| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|00003ef0| 3e 20 27 63 6f 6d 64 69 | 72 5f 73 77 74 27 0a 0a |> 'comdi|r_swt'..|
|00003f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 6f | | Co|
|00003f20| 6d 6d 61 6e 64 20 44 69 | 72 65 63 74 6f 72 79 0a |mmand Di|rectory.|
|00003f30| 0a 20 20 20 20 20 20 20 | 20 54 68 65 20 66 6f 6c |. | The fol|
|00003f40| 6c 6f 77 69 6e 67 20 61 | 72 65 20 74 68 65 20 66 |lowing a|re the f|
|00003f50| 75 6c 6c 20 6e 61 6d 65 | 73 20 6f 66 20 6f 6e 65 |ull name|s of one|
|00003f60| 2d 6c 65 74 74 65 72 20 | 63 6f 6d 6d 61 6e 64 73 |-letter |commands|
|00003f70| 0a 20 20 20 20 20 20 20 | 20 41 70 70 65 6e 64 20 |. | Append |
|00003f80| 20 20 63 6f 70 59 20 20 | 20 20 20 43 68 61 6e 67 | copY | Chang|
|00003f90| 65 20 20 20 44 65 6c 65 | 74 65 20 20 20 45 6e 74 |e Dele|te Ent|
|00003fa0| 65 72 20 20 20 20 46 69 | 6c 65 20 20 20 20 20 47 |er Fi|le G|
|00003fb0| 6c 6f 62 61 6c 0a 20 20 | 20 20 20 20 20 20 48 65 |lobal. | He|
|00003fc0| 6c 70 20 20 20 20 20 49 | 6e 73 65 72 74 20 20 20 |lp I|nsert |
|00003fd0| 4a 6f 69 6e 20 20 20 20 | 20 6d 61 72 4b 20 20 20 |Join | marK |
|00003fe0| 20 20 4c 6f 63 61 74 65 | 20 20 20 4d 6f 76 65 20 | Locate| Move |
|00003ff0| 20 20 20 20 4e 61 6d 65 | 0a 20 20 20 20 20 20 20 | Name|. |
|00004000| 20 4f 70 74 69 6f 6e 20 | 20 20 50 61 67 65 20 20 | Option | Page |
|00004010| 20 20 20 51 75 69 74 20 | 20 20 20 20 52 65 61 64 | Quit | Read|
|00004020| 20 20 20 20 20 53 75 62 | 73 74 69 74 75 74 65 0a | Sub|stitute.|
|00004030| 20 20 20 20 20 20 20 20 | 54 72 61 6e 73 6c 69 74 | |Translit|
|00004040| 65 72 61 74 65 20 20 20 | 20 20 55 6e 64 65 6c 65 |erate | Undele|
|00004050| 74 65 20 6f 56 65 72 6c | 61 79 20 20 57 72 69 74 |te oVerl|ay Writ|
|00004060| 65 20 20 20 20 65 58 63 | 6c 75 64 65 0a 0a 20 20 |e eXc|lude.. |
|00004070| 20 20 20 20 20 20 46 6f | 72 20 69 6e 66 6f 20 61 | Fo|r info a|
|00004080| 62 6f 75 74 20 6f 6e 65 | 20 6f 66 20 74 68 65 73 |bout one| of thes|
|00004090| 65 20 63 6f 6d 6d 61 6e | 64 73 2c 20 74 79 70 65 |e comman|ds, type|
|000040a0| 20 22 68 22 20 66 6f 6c | 6c 6f 77 65 64 20 62 79 | "h" fol|lowed by|
|000040b0| 0a 20 20 20 20 20 20 20 | 20 77 68 69 63 68 65 76 |. | whichev|
|000040c0| 65 72 20 6c 65 74 74 65 | 72 20 69 73 20 63 61 70 |er lette|r is cap|
|000040d0| 69 74 61 6c 69 7a 65 64 | 20 69 6e 20 74 68 65 20 |italized| in the |
|000040e0| 63 6f 6d 6d 61 6e 64 20 | 6e 61 6d 65 20 61 62 6f |command |name abo|
|000040f0| 76 65 2e 0a 0a 20 20 20 | 20 20 20 20 20 4f 74 68 |ve... | Oth|
|00004100| 65 72 20 63 6f 6d 6d 61 | 6e 64 73 20 61 6e 64 20 |er comma|nds and |
|00004110| 74 68 65 69 72 20 68 65 | 6c 70 20 63 6f 6d 6d 61 |their he|lp comma|
|00004120| 6e 64 73 20 61 72 65 3a | 0a 20 20 20 20 20 20 20 |nds are:|. |
|00004130| 20 20 20 20 20 70 72 69 | 6e 74 20 76 61 6c 75 65 | pri|nt value|
|00004140| 20 20 20 68 65 71 75 61 | 6c 20 20 20 20 20 20 20 | hequa|l |
|00004150| 20 67 6c 6f 62 61 6c 20 | 6f 6e 20 6d 61 72 6b 20 | global |on mark |
|00004160| 20 20 68 71 75 6f 74 65 | 0a 20 20 20 20 20 20 20 | hquote|. |
|00004170| 20 20 20 20 20 6d 69 73 | 63 65 6c 6c 61 6e 79 20 | mis|cellany |
|00004180| 20 20 20 68 7a 20 20 20 | 20 20 20 20 20 20 20 20 | hz | |
|00004190| 20 65 78 63 6c 75 64 65 | 20 6f 6e 20 6d 61 72 6b | exclude| on mark|
|000041a0| 20 20 68 62 61 6e 67 0a | 20 20 20 20 20 20 20 20 | hbang.| |
|000041b0| 20 20 20 20 73 68 65 6c | 6c 20 65 73 63 61 70 65 | shel|l escape|
|000041c0| 20 20 68 73 68 65 6c 6c | 20 20 20 20 20 20 20 20 | hshell| |
|000041d0| 2e 73 65 72 63 20 66 69 | 6c 65 20 20 20 20 20 20 |.serc fi|le |
|000041e0| 20 68 73 65 72 63 0a 0a | 20 20 20 20 20 20 20 20 | hserc..| |
|000041f0| 54 68 65 72 65 20 61 72 | 65 20 73 74 69 6c 6c 20 |There ar|e still |
|00004200| 6d 6f 72 65 20 63 6f 6d | 6d 61 6e 64 73 3b 20 74 |more com|mands; t|
|00004210| 6f 20 73 65 65 20 74 68 | 65 6d 20 74 79 70 65 20 |o see th|em type |
|00004220| 22 68 73 70 65 63 6c 22 | 2e 0a 53 48 41 52 5f 45 |"hspecl"|..SHAR_E|
|00004230| 4f 46 0a 66 69 0a 65 63 | 68 6f 20 73 68 61 72 3a |OF.fi.ec|ho shar:|
|00004240| 20 22 65 78 74 72 61 63 | 74 69 6e 67 20 27 63 6f | "extrac|ting 'co|
|00004250| 6d 73 79 6e 27 22 20 27 | 28 37 32 32 20 63 68 61 |msyn'" '|(722 cha|
|00004260| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00004270| 74 20 2d 66 20 27 63 6f | 6d 73 79 6e 27 0a 74 68 |t -f 'co|msyn'.th|
|00004280| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|00004290| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|000042a0| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|000042b0| 65 20 27 63 6f 6d 73 79 | 6e 27 22 0a 65 6c 73 65 |e 'comsy|n'".else|
|000042c0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|000042d0| 46 20 3e 20 27 63 6f 6d | 73 79 6e 27 0a 20 20 20 |F > 'com|syn'. |
|000042e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 43 6f 6d | | Com|
|00004300| 6d 61 6e 64 20 53 79 6e | 74 61 78 0a 0a 20 20 20 |mand Syn|tax.. |
|00004310| 20 20 20 20 20 41 20 63 | 6f 6d 6d 61 6e 64 20 63 | A c|ommand c|
|00004320| 6f 6e 73 69 73 74 73 20 | 20 6f 66 20 20 61 6e 20 |onsists | of an |
|00004330| 20 6f 70 74 69 6f 6e 61 | 6c 20 20 6c 69 73 74 20 | optiona|l list |
|00004340| 20 6f 66 20 20 4c 49 4e | 45 20 20 4e 55 4d 42 45 | of LIN|E NUMBE|
|00004350| 52 53 2c 0a 20 20 20 20 | 20 20 20 20 66 6f 6c 6c |RS,. | foll|
|00004360| 6f 77 65 64 20 20 62 79 | 20 61 20 43 4f 4d 4d 41 |owed by| a COMMA|
|00004370| 4e 44 20 4c 45 54 54 45 | 52 2c 20 70 6f 73 73 69 |ND LETTE|R, possi|
|00004380| 62 6c 79 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 |bly foll|owed by |
|00004390| 70 61 72 61 6d 65 74 65 | 72 73 0a 20 20 20 20 20 |paramete|rs. |
|000043a0| 20 20 20 61 6c 6c 6f 77 | 65 64 20 6f 72 20 72 65 | allow|ed or re|
|000043b0| 71 75 69 72 65 64 20 66 | 6f 72 20 61 20 73 70 65 |quired f|or a spe|
|000043c0| 63 69 66 69 63 20 20 63 | 6f 6d 6d 61 6e 64 2e 20 |cific c|ommand. |
|000043d0| 20 20 50 72 65 63 65 65 | 64 69 6e 67 20 20 61 6c | Precee|ding al|
|000043e0| 6c 0a 20 20 20 20 20 20 | 20 20 74 68 69 73 2c 20 |l. | this, |
|000043f0| 20 74 68 65 72 65 20 20 | 63 61 6e 20 62 65 20 61 | there |can be a|
|00004400| 20 47 4c 4f 42 41 4c 20 | 50 52 45 46 49 58 20 70 | GLOBAL |PREFIX p|
|00004410| 72 65 63 65 65 64 65 64 | 20 6f 70 74 69 6f 6e 61 |receeded| optiona|
|00004420| 6c 6c 79 20 62 79 20 61 | 0a 20 20 20 20 20 20 20 |lly by a|. |
|00004430| 20 6c 69 73 74 20 20 6f | 66 20 20 6c 69 6e 65 20 | list o|f line |
|00004440| 20 20 6e 75 6d 62 65 72 | 73 2e 20 20 20 48 65 6e | number|s. Hen|
|00004450| 63 65 20 20 20 74 68 65 | 20 20 20 77 68 6f 6c 65 |ce the| whole|
|00004460| 20 20 20 73 79 6e 74 61 | 78 20 20 20 69 73 3a 0a | synta|x is:.|
|00004470| 0a 20 20 20 20 20 20 20 | 20 5b 5b 3c 6c 69 73 74 |. | [[<list|
|00004480| 3e 5d 3c 67 6c 6f 62 61 | 6c 20 70 72 65 66 69 78 |>]<globa|l prefix|
|00004490| 3e 5d 5b 3c 6c 69 73 74 | 3e 5d 3c 63 6f 6d 6d 61 |>][<list|>]<comma|
|000044a0| 6e 64 20 6c 65 74 74 65 | 72 3e 5b 3c 73 74 75 66 |nd lette|r>[<stuf|
|000044b0| 66 3e 5d 0a 0a 20 20 20 | 20 20 20 20 20 46 6f 72 |f>].. | For|
|000044c0| 20 67 65 6e 65 72 61 6c | 20 69 6e 66 6f 72 6d 61 | general| informa|
|000044d0| 74 69 6f 6e 20 61 62 6f | 75 74 20 63 6f 6d 6d 61 |tion abo|ut comma|
|000044e0| 6e 64 73 2c 20 74 79 70 | 65 20 22 68 63 6f 6d 22 |nds, typ|e "hcom"|
|000044f0| 2e 0a 20 20 20 20 20 20 | 20 20 46 6f 72 20 69 6e |.. | For in|
|00004500| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about |
|00004510| 73 70 65 63 69 66 69 63 | 20 63 6f 6d 6d 61 6e 64 |specific| command|
|00004520| 73 2c 20 74 79 70 65 20 | 22 68 63 6f 6d 64 69 72 |s, type |"hcomdir|
|00004530| 22 2e 0a 20 20 20 20 20 | 20 20 20 46 6f 72 20 47 |".. | For G|
|00004540| 4c 4f 42 41 4c 20 50 52 | 45 46 49 58 20 73 79 6e |LOBAL PR|EFIX syn|
|00004550| 74 61 78 20 61 6e 64 20 | 73 65 6d 61 6e 74 69 63 |tax and |semantic|
|00004560| 73 2c 20 74 79 70 65 20 | 22 68 67 22 2e 0a 20 20 |s, type |"hg".. |
|00004570| 20 20 20 20 20 20 46 6f | 72 20 4c 49 4e 45 20 4e | Fo|r LINE N|
|00004580| 55 4d 42 45 52 20 4c 49 | 53 54 20 73 79 6e 74 61 |UMBER LI|ST synta|
|00004590| 78 20 61 6e 64 20 73 65 | 6d 61 6e 74 69 63 73 2c |x and se|mantics,|
|000045a0| 20 74 79 70 65 20 22 68 | 6c 69 73 74 22 2e 0a 53 | type "h|list"..S|
|000045b0| 48 41 52 5f 45 4f 46 0a | 66 69 0a 65 63 68 6f 20 |HAR_EOF.|fi.echo |
|000045c0| 73 68 61 72 3a 20 22 65 | 78 74 72 61 63 74 69 6e |shar: "e|xtractin|
|000045d0| 67 20 27 64 27 22 20 27 | 28 36 31 34 20 63 68 61 |g 'd'" '|(614 cha|
|000045e0| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|000045f0| 74 20 2d 66 20 27 64 27 | 0a 74 68 65 6e 0a 09 65 |t -f 'd'|.then..e|
|00004600| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|00004610| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00004620| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 64 27 |xisting |file 'd'|
|00004630| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|00004640| 48 41 52 5f 45 4f 46 20 | 3e 20 27 64 27 0a 20 20 |HAR_EOF |> 'd'. |
|00004650| 20 20 20 20 20 20 64 20 | 20 20 20 2d 2d 20 44 65 | d | -- De|
|00004660| 6c 65 74 65 20 63 6f 6d | 6d 61 6e 64 0a 0a 20 20 |lete com|mand.. |
|00004670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 65 66 | | def|
|00004680| 61 75 6c 74 20 72 61 6e | 67 65 20 20 20 20 20 20 |ault ran|ge |
|00004690| 20 20 20 20 20 73 79 6e | 74 61 78 0a 20 20 20 20 | syn|tax. |
|000046a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046b0| 20 20 20 20 20 2e 2c 2e | 20 20 20 20 20 20 20 20 | .,.| |
|000046c0| 20 20 20 64 0a 0a 20 20 | 20 20 20 20 20 20 22 64 | d.. | "d|
|000046d0| 22 20 20 69 73 20 20 75 | 73 65 64 20 20 74 6f 20 |" is u|sed to |
|000046e0| 20 64 65 6c 65 74 65 20 | 20 6c 69 6e 65 73 20 6f | delete | lines o|
|000046f0| 66 20 74 65 78 74 20 66 | 72 6f 6d 20 74 68 65 20 |f text f|rom the |
|00004700| 62 75 66 66 65 72 2e 20 | 20 54 68 65 0a 20 20 20 |buffer. | The. |
|00004710| 20 20 20 20 20 6c 69 6e | 65 73 20 69 6e 20 74 68 | lin|es in th|
|00004720| 65 20 72 61 6e 67 65 20 | 73 70 65 63 69 66 69 65 |e range |specifie|
|00004730| 64 20 20 62 79 20 20 74 | 68 65 20 20 6c 69 6e 65 |d by t|he line|
|00004740| 20 20 6e 75 6d 62 65 72 | 20 20 6c 69 73 74 20 20 | number| list |
|00004750| 61 72 65 0a 20 20 20 20 | 20 20 20 20 64 65 6c 65 |are. | dele|
|00004760| 74 65 64 2e 20 20 20 54 | 68 65 20 20 70 6f 73 69 |ted. T|he posi|
|00004770| 74 69 6f 6e 69 6e 67 20 | 20 6f 66 20 74 68 65 20 |tioning | of the |
|00004780| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 20 70 6f 69 |current |line poi|
|00004790| 6e 74 65 72 20 61 66 74 | 65 72 0a 20 20 20 20 20 |nter aft|er. |
|000047a0| 20 20 20 65 78 65 63 75 | 74 69 6f 6e 20 6f 66 20 | execu|tion of |
|000047b0| 74 68 65 20 22 64 22 20 | 63 6f 6d 6d 61 6e 64 20 |the "d" |command |
|000047c0| 69 73 20 63 6f 6e 74 72 | 6f 6c 6c 65 64 20 62 79 |is contr|olled by|
|000047d0| 20 74 68 65 20 22 64 22 | 20 20 6f 70 74 69 6f 6e | the "d"| option|
|000047e0| 3b 0a 20 20 20 20 20 20 | 20 20 73 65 65 20 20 22 |;. | see "|
|000047f0| 68 6f 64 22 2e 20 20 20 | 54 68 65 20 20 6e 6f 72 |hod". |The nor|
|00004800| 6d 61 6c 20 20 62 65 68 | 61 76 69 6f 72 20 20 69 |mal beh|avior i|
|00004810| 73 20 74 6f 20 6d 61 6b | 65 20 74 68 65 20 66 69 |s to mak|e the fi|
|00004820| 72 73 74 20 6c 69 6e 65 | 0a 20 20 20 20 20 20 20 |rst line|. |
|00004830| 20 41 46 54 45 52 20 74 | 68 65 20 6c 69 6e 65 73 | AFTER t|he lines|
|00004840| 20 64 65 6c 65 74 65 64 | 20 74 68 65 20 6e 65 77 | deleted| the new|
|00004850| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 2e 0a 0a | current| line...|
|00004860| 20 20 20 20 20 20 20 20 | 54 6f 20 72 65 74 75 72 | |To retur|
|00004870| 6e 20 74 6f 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |n to the| command|
|00004880| 20 64 69 72 65 63 74 6f | 72 79 2c 20 74 79 70 65 | directo|ry, type|
|00004890| 20 22 68 63 6f 6d 64 69 | 72 2e 22 0a 20 20 20 20 | "hcomdi|r.". |
|000048a0| 20 20 20 20 53 65 65 20 | 61 6c 73 6f 20 22 68 6f | See |also "ho|
|000048b0| 64 22 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |d"..SHAR|_EOF.fi.|
|000048c0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 78 74 72 |echo sha|r: "extr|
|000048d0| 61 63 74 69 6e 67 20 27 | 64 65 74 61 62 2e 63 27 |acting '|detab.c'|
|000048e0| 22 20 27 28 31 31 38 38 | 20 63 68 61 72 61 63 74 |" '(1188| charact|
|000048f0| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|00004900| 20 27 64 65 74 61 62 2e | 63 27 0a 74 68 65 6e 0a | 'detab.|c'.then.|
|00004910| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00004920| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00004930| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|00004940| 64 65 74 61 62 2e 63 27 | 22 0a 65 6c 73 65 0a 63 |detab.c'|".else.c|
|00004950| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|00004960| 3e 20 27 64 65 74 61 62 | 2e 63 27 0a 2f 2a 20 44 |> 'detab|.c'./* D|
|00004970| 65 74 61 62 20 2d 20 63 | 6f 6e 76 65 72 74 20 74 |etab - c|onvert t|
|00004980| 61 62 73 20 74 6f 20 61 | 70 70 72 6f 70 72 69 61 |abs to a|ppropria|
|00004990| 74 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 73 70 61 |te numbe|r of spa|
|000049a0| 63 65 73 20 2a 2f 0a 0a | 2f 2a 20 74 72 61 6e 73 |ces */..|/* trans|
|000049b0| 63 72 69 62 65 64 20 66 | 72 6f 6d 20 4b 65 72 6e |cribed f|rom Kern|
|000049c0| 69 67 68 61 6e 20 61 6e | 64 20 50 6c 61 67 75 65 |ighan an|d Plague|
|000049d0| 72 20 28 53 6f 66 74 77 | 61 72 65 20 54 6f 6f 6c |r (Softw|are Tool|
|000049e0| 73 29 20 2a 2f 0a 2f 2a | 20 66 69 78 65 64 20 75 |s) */./*| fixed u|
|000049f0| 70 20 62 79 20 41 72 6e | 6f 6c 64 20 52 6f 62 62 |p by Arn|old Robb|
|00004a00| 69 6e 73 20 2a 2f 0a 0a | 23 69 6e 63 6c 75 64 65 |ins */..|#include|
|00004a10| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 0a 23 64 65 66 | <stdio.|h>..#def|
|00004a20| 69 6e 65 20 4d 41 58 4c | 49 4e 45 20 20 20 20 20 |ine MAXL|INE |
|00004a30| 20 20 20 20 31 33 32 0a | 0a 23 64 65 66 69 6e 65 | 132.|.#define|
|00004a40| 20 72 65 70 65 61 74 20 | 20 20 20 20 20 20 20 20 | repeat | |
|00004a50| 20 64 6f 0a 23 64 65 66 | 69 6e 65 20 75 6e 74 69 | do.#def|ine unti|
|00004a60| 6c 28 78 29 20 20 20 20 | 20 20 20 20 77 68 69 6c |l(x) | whil|
|00004a70| 65 28 21 28 78 29 29 0a | 0a 23 64 65 66 69 6e 65 |e(!(x)).|.#define|
|00004a80| 20 74 61 62 70 6f 73 28 | 63 6f 6c 2c 20 74 61 62 | tabpos(|col, tab|
|00004a90| 73 29 20 20 20 20 20 20 | 20 28 20 28 63 6f 6c 20 |s) | ( (col |
|00004aa0| 3e 20 4d 41 58 4c 49 4e | 45 29 20 3f 20 31 20 3a |> MAXLIN|E) ? 1 :|
|00004ab0| 20 74 61 62 73 5b 63 6f | 6c 20 2d 20 31 5d 29 0a | tabs[co|l - 1]).|
|00004ac0| 0a 6d 61 69 6e 28 29 0a | 7b 0a 20 20 20 20 20 20 |.main().|{. |
|00004ad0| 20 20 69 6e 74 20 63 2c | 20 69 2c 20 74 61 62 73 | int c,| i, tabs|
|00004ae0| 5b 4d 41 58 4c 49 4e 45 | 5d 2c 20 63 6f 6c 20 3d |[MAXLINE|], col =|
|00004af0| 20 31 3b 0a 0a 20 20 20 | 20 20 20 20 20 73 65 74 | 1;.. | set|
|00004b00| 74 61 62 73 28 74 61 62 | 73 29 3b 0a 0a 20 20 20 |tabs(tab|s);.. |
|00004b10| 20 20 20 20 20 77 68 69 | 6c 65 20 28 28 63 20 3d | whi|le ((c =|
|00004b20| 20 67 65 74 63 68 61 72 | 28 29 29 20 21 3d 20 45 | getchar|()) != E|
|00004b30| 4f 46 29 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |OF). | |
|00004b40| 20 20 20 20 73 77 69 74 | 63 68 28 63 29 20 7b 0a | swit|ch(c) {.|
|00004b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b60| 63 61 73 65 20 27 5c 74 | 27 3a 0a 20 20 20 20 20 |case '\t|':. |
|00004b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b80| 20 20 20 72 65 70 65 61 | 74 0a 20 20 20 20 20 20 | repea|t. |
|00004b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ba0| 20 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00004bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004bc0| 20 20 20 20 70 75 74 63 | 68 61 72 28 27 20 27 29 | putc|har(' ')|
|00004bd0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00004be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004bf0| 20 20 63 6f 6c 2b 2b 3b | 0a 20 20 20 20 20 20 20 | col++;|. |
|00004c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c10| 20 7d 20 75 6e 74 69 6c | 28 74 61 62 70 6f 73 28 | } until|(tabpos(|
|00004c20| 63 6f 6c 2c 20 74 61 62 | 73 29 29 3b 0a 20 20 20 |col, tab|s));. |
|00004c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c40| 20 20 20 20 20 62 72 65 | 61 6b 3b 0a 0a 20 20 20 | bre|ak;.. |
|00004c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 61 73 | | cas|
|00004c60| 65 20 27 5c 6e 27 3a 0a | 20 20 20 20 20 20 20 20 |e '\n':.| |
|00004c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c80| 70 75 74 63 68 61 72 28 | 27 5c 6e 27 29 3b 0a 20 |putchar(|'\n');. |
|00004c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ca0| 20 20 20 20 20 20 20 63 | 6f 6c 20 3d 20 31 3b 0a | c|ol = 1;.|
|00004cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004cc0| 20 20 20 20 20 20 20 20 | 62 72 65 61 6b 3b 0a 0a | |break;..|
|00004cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ce0| 64 65 66 61 75 6c 74 3a | 0a 20 20 20 20 20 20 20 |default:|. |
|00004cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d00| 20 70 75 74 63 68 61 72 | 28 63 29 3b 0a 20 20 20 | putchar|(c);. |
|00004d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d20| 20 20 20 20 20 63 6f 6c | 2b 2b 3b 0a 20 20 20 20 | col|++;. |
|00004d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d40| 20 20 20 20 62 72 65 61 | 6b 3b 0a 20 20 20 20 20 | brea|k;. |
|00004d50| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 7d 0a 0a | | }.}..|
|00004d60| 73 65 74 74 61 62 73 28 | 74 61 62 73 29 0a 69 6e |settabs(|tabs).in|
|00004d70| 74 20 74 61 62 73 5b 5d | 3b 0a 7b 0a 20 20 20 20 |t tabs[]|;.{. |
|00004d80| 20 20 20 20 69 6e 74 20 | 69 3b 0a 0a 20 20 20 20 | int |i;.. |
|00004d90| 20 20 20 20 66 6f 72 28 | 69 20 3d 20 31 3b 20 69 | for(|i = 1; i|
|00004da0| 20 3c 3d 20 4d 41 58 4c | 49 4e 45 3b 20 69 2b 2b | <= MAXL|INE; i++|
|00004db0| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |). | |
|00004dc0| 20 20 74 61 62 73 5b 69 | 20 2d 20 31 5d 20 3d 20 | tabs[i| - 1] = |
|00004dd0| 28 28 69 20 25 20 38 29 | 20 3d 3d 20 31 29 3b 0a |((i % 8)| == 1);.|
|00004de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004df0| 2f 2a 20 72 65 73 75 6c | 74 20 69 73 20 65 69 74 |/* resul|t is eit|
|00004e00| 68 65 72 20 31 20 6f 72 | 20 30 20 2a 2f 0a 7d 0a |her 1 or| 0 */.}.|
|00004e10| 53 48 41 52 5f 45 4f 46 | 0a 66 69 0a 65 63 68 6f |SHAR_EOF|.fi.echo|
|00004e20| 20 73 68 61 72 3a 20 22 | 65 78 74 72 61 63 74 69 | shar: "|extracti|
|00004e30| 6e 67 20 27 64 69 72 27 | 22 20 27 28 34 34 31 20 |ng 'dir'|" '(441 |
|00004e40| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00004e50| 74 65 73 74 20 2d 66 20 | 27 64 69 72 27 0a 74 68 |test -f |'dir'.th|
|00004e60| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|00004e70| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00004e80| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00004e90| 65 20 27 64 69 72 27 22 | 0a 65 6c 73 65 0a 63 61 |e 'dir'"|.else.ca|
|00004ea0| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00004eb0| 20 27 64 69 72 27 0a 20 | 20 20 20 20 20 20 20 20 | 'dir'. | |
|00004ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ed0| 20 20 20 20 20 20 20 48 | 45 4c 50 20 44 49 52 45 | H|ELP DIRE|
|00004ee0| 43 54 4f 52 59 0a 0a 0a | 20 20 20 20 20 20 20 20 |CTORY...| |
|00004ef0| 54 6f 20 67 6f 20 62 61 | 63 6b 20 74 6f 20 74 68 |To go ba|ck to th|
|00004f00| 65 20 67 65 6e 65 72 61 | 6c 20 64 65 73 63 72 69 |e genera|l descri|
|00004f10| 70 74 69 6f 6e 2c 20 74 | 79 70 65 20 20 20 20 20 |ption, t|ype |
|00004f20| 20 20 20 22 68 22 0a 20 | 20 20 20 20 20 20 20 46 | "h". | F|
|00004f30| 6f 72 20 69 6e 66 6f 20 | 6f 6e 20 74 68 65 20 27 |or info |on the '|
|00004f40| 73 65 27 20 69 6e 76 6f | 6b 69 6e 67 20 63 6f 6d |se' invo|king com|
|00004f50| 6d 61 6e 64 2c 20 74 79 | 70 65 20 20 20 20 20 20 |mand, ty|pe |
|00004f60| 20 20 22 68 61 72 67 73 | 22 0a 20 20 20 20 20 20 | "hargs|". |
|00004f70| 20 20 46 6f 72 20 61 20 | 64 69 73 63 75 73 73 69 | For a |discussi|
|00004f80| 6f 6e 20 6f 66 20 63 6f | 6d 6d 61 6e 64 73 2c 20 |on of co|mmands, |
|00004f90| 20 20 20 20 20 20 20 20 | 20 74 79 70 65 20 20 20 | | type |
|00004fa0| 20 20 20 20 20 22 68 63 | 6f 6d 22 0a 20 20 20 20 | "hc|om". |
|00004fb0| 20 20 20 20 46 6f 72 20 | 61 20 64 65 73 63 72 69 | For |a descri|
|00004fc0| 70 74 69 6f 6e 20 6f 66 | 20 27 73 65 27 73 20 70 |ption of| 'se's p|
|00004fd0| 72 6f 62 6c 65 6d 73 2c | 20 20 20 74 79 70 65 20 |roblems,| type |
|00004fe0| 20 20 20 20 20 20 20 22 | 68 62 75 67 22 0a 20 20 | "|hbug". |
|00004ff0| 20 20 20 20 20 20 54 6f | 20 6c 65 61 72 6e 20 61 | To| learn a|
|00005000| 62 6f 75 74 20 63 6f 6e | 74 72 6f 6c 20 63 68 61 |bout con|trol cha|
|00005010| 72 61 63 74 65 72 73 2c | 20 20 20 20 20 74 79 70 |racters,| typ|
|00005020| 65 20 20 20 20 20 20 20 | 20 22 68 63 63 22 0a 20 |e | "hcc". |
|00005030| 20 20 20 20 20 20 20 46 | 6f 72 20 69 6e 66 6f 20 | F|or info |
|00005040| 6f 6e 20 6f 70 74 69 6f | 6e 73 2c 20 20 20 20 20 |on optio|ns, |
|00005050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 74 79 | | ty|
|00005060| 70 65 20 20 20 20 20 20 | 20 20 22 68 6f 22 0a 0a |pe | "ho"..|
|00005070| 53 48 41 52 5f 45 4f 46 | 0a 66 69 0a 65 63 68 6f |SHAR_EOF|.fi.echo|
|00005080| 20 73 68 61 72 3a 20 22 | 65 78 74 72 61 63 74 69 | shar: "|extracti|
|00005090| 6e 67 20 27 65 27 22 20 | 27 28 37 39 33 20 63 68 |ng 'e'" |'(793 ch|
|000050a0| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|000050b0| 73 74 20 2d 66 20 27 65 | 27 0a 74 68 65 6e 0a 09 |st -f 'e|'.then..|
|000050c0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|000050d0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|000050e0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 65 |existing| file 'e|
|000050f0| 27 22 0a 65 6c 73 65 0a | 63 61 74 20 3c 3c 20 5c |'".else.|cat << \|
|00005100| 53 48 41 52 5f 45 4f 46 | 20 3e 20 27 65 27 0a 20 |SHAR_EOF| > 'e'. |
|00005110| 20 20 20 20 20 20 20 20 | 20 65 20 20 20 20 2d 2d | | e --|
|00005120| 20 45 6e 74 65 72 20 63 | 6f 6d 6d 61 6e 64 0a 0a | Enter c|ommand..|
|00005130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00005140| 65 66 61 75 6c 74 20 72 | 61 6e 67 65 20 20 20 20 |efault r|ange |
|00005150| 20 20 20 20 20 20 20 73 | 79 6e 74 61 78 0a 20 20 | s|yntax. |
|00005160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005170| 20 20 20 20 20 20 20 6e | 2f 61 20 20 20 20 20 20 | n|/a |
|00005180| 20 20 20 20 20 65 5b 21 | 20 7c 20 78 5d 20 5b 66 | e[!| | x] [f|
|00005190| 69 6c 65 20 6e 61 6d 65 | 5d 0a 0a 20 20 20 20 20 |ile name|].. |
|000051a0| 20 20 20 22 65 22 20 70 | 72 65 76 65 6e 74 73 20 | "e" p|revents |
|000051b0| 6f 6e 65 20 66 72 6f 6d | 20 68 61 76 69 6e 67 20 |one from| having |
|000051c0| 74 6f 20 65 78 69 74 20 | 61 6e 64 20 72 65 65 6e |to exit |and reen|
|000051d0| 74 65 72 20 74 68 65 20 | 65 64 69 74 6f 72 20 74 |ter the |editor t|
|000051e0| 6f 0a 20 20 20 20 20 20 | 20 20 65 64 69 74 20 20 |o. | edit |
|000051f0| 61 20 20 64 69 66 66 65 | 72 65 6e 74 20 66 69 6c |a diffe|rent fil|
|00005200| 65 2e 20 20 22 65 22 20 | 65 6d 70 74 69 65 73 20 |e. "e" |empties |
|00005210| 74 68 65 20 65 64 69 74 | 20 62 75 66 66 65 72 2c |the edit| buffer,|
|00005220| 20 72 65 61 64 73 20 61 | 0a 20 20 20 20 20 20 20 | reads a|. |
|00005230| 20 66 69 6c 65 2c 20 61 | 6e 64 20 72 65 73 65 74 | file, a|nd reset|
|00005240| 73 20 74 68 65 20 72 65 | 6d 65 6d 62 65 72 65 64 |s the re|membered|
|00005250| 20 66 69 6c 65 20 6e 61 | 6d 65 2e 20 20 49 66 20 | file na|me. If |
|00005260| 5b 66 69 6c 65 20 6e 61 | 6d 65 5d 20 20 69 73 0a |[file na|me] is.|
|00005270| 20 20 20 20 20 20 20 20 | 6f 6d 69 74 74 65 64 2c | |omitted,|
|00005280| 20 20 74 68 65 20 20 72 | 65 6d 65 6d 62 65 72 65 | the r|emembere|
|00005290| 64 20 20 66 69 6c 65 20 | 20 6e 61 6d 65 20 69 73 |d file | name is|
|000052a0| 20 75 73 65 64 2e 20 20 | 5b 21 5d 20 69 73 20 75 | used. |[!] is u|
|000052b0| 73 65 64 20 74 6f 0a 20 | 20 20 20 20 20 20 20 6f |sed to. | o|
|000052c0| 76 65 72 72 69 64 65 20 | 61 20 63 68 65 63 6b 20 |verride |a check |
|000052d0| 6d 61 64 65 20 74 6f 20 | 70 72 65 76 65 6e 74 20 |made to |prevent |
|000052e0| 79 6f 75 20 66 72 6f 6d | 20 61 63 63 69 64 65 6e |you from| acciden|
|000052f0| 74 6c 79 20 6c 6f 73 69 | 6e 67 20 20 61 0a 20 20 |tly losi|ng a. |
|00005300| 20 20 20 20 20 20 62 75 | 66 66 65 72 20 74 68 61 | bu|ffer tha|
|00005310| 74 20 68 61 73 20 6e 6f | 74 20 62 65 65 6e 20 73 |t has no|t been s|
|00005320| 61 76 65 64 20 28 73 61 | 6d 65 20 61 73 20 69 6e |aved (sa|me as in|
|00005330| 20 22 71 22 29 2e 20 5b | 78 5d 20 20 20 69 73 20 | "q"). [|x] is |
|00005340| 75 73 65 64 0a 20 20 20 | 20 20 20 20 20 74 6f 20 |used. | to |
|00005350| 74 75 72 6e 20 74 61 62 | 20 65 78 70 61 6e 73 69 |turn tab| expansi|
|00005360| 6f 6e 20 20 20 6f 6e 20 | 77 68 65 6e 20 72 65 61 |on on |when rea|
|00005370| 64 69 6e 67 20 74 68 65 | 20 66 69 6c 65 20 69 6e |ding the| file in|
|00005380| 2e 20 20 53 65 20 20 77 | 69 6c 6c 0a 20 20 20 20 |. Se w|ill. |
|00005390| 20 20 20 20 65 78 70 61 | 6e 64 20 65 6e 76 69 72 | expa|nd envir|
|000053a0| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 73 |onment v|ariables|
|000053b0| 20 74 68 61 74 20 73 74 | 61 72 74 20 77 69 74 68 | that st|art with|
|000053c0| 20 20 24 20 69 6e 20 66 | 69 6c 65 20 6e 61 6d 65 | $ in f|ile name|
|000053d0| 73 2e 0a 0a 20 20 20 20 | 20 20 20 20 54 6f 20 72 |s... | To r|
|000053e0| 65 74 75 72 6e 20 74 6f | 20 74 68 65 20 63 6f 6d |eturn to| the com|
|000053f0| 6d 61 6e 64 20 64 69 72 | 65 63 74 6f 72 79 2c 20 |mand dir|ectory, |
|00005400| 74 79 70 65 20 22 68 63 | 6f 6d 64 69 72 2e 22 0a |type "hc|omdir.".|
|00005410| 20 20 20 20 20 20 20 20 | 53 65 65 20 61 6c 73 6f | |See also|
|00005420| 3a 20 20 22 68 71 22 0a | 53 48 41 52 5f 45 4f 46 |: "hq".|SHAR_EOF|
|00005430| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 22 |.fi.echo| shar: "|
|00005440| 65 78 74 72 61 63 74 69 | 6e 67 20 27 65 68 27 22 |extracti|ng 'eh'"|
|00005450| 20 27 28 33 31 38 20 63 | 68 61 72 61 63 74 65 72 | '(318 c|haracter|
|00005460| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00005470| 65 68 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |eh'.then|..echo s|
|00005480| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00005490| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|000054a0| 6e 67 20 66 69 6c 65 20 | 27 65 68 27 22 0a 65 6c |ng file |'eh'".el|
|000054b0| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|000054c0| 45 4f 46 20 3e 20 27 65 | 68 27 0a 20 20 20 20 59 |EOF > 'e|h'. Y|
|000054d0| 6f 75 20 61 72 65 20 73 | 74 61 6e 64 69 6e 67 20 |ou are s|tanding |
|000054e0| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 61 20 |at the e|nd of a |
|000054f0| 72 6f 61 64 20 62 65 66 | 6f 72 65 20 61 20 73 6d |road bef|ore a sm|
|00005500| 61 6c 6c 20 62 72 69 63 | 6b 20 62 75 69 6c 64 69 |all bric|k buildi|
|00005510| 6e 67 2e 0a 20 20 20 20 | 61 72 6f 75 6e 64 20 79 |ng.. |around y|
|00005520| 6f 75 20 69 73 20 61 20 | 66 6f 72 65 73 74 2e 20 |ou is a |forest. |
|00005530| 20 41 20 73 6d 61 6c 6c | 20 73 74 72 65 61 6d 20 | A small| stream |
|00005540| 66 6c 6f 77 73 20 6f 75 | 74 20 6f 66 20 74 68 65 |flows ou|t of the|
|00005550| 20 62 75 69 6c 64 69 6e | 67 20 61 6e 64 0a 20 20 | buildin|g and. |
|00005560| 20 20 64 6f 77 6e 20 61 | 20 67 75 6c 6c 79 2e 0a | down a| gully..|
|00005570| 0a 0a 20 20 20 20 59 6f | 75 20 61 72 65 20 69 6e |.. Yo|u are in|
|00005580| 73 69 64 65 20 61 20 62 | 75 69 6c 64 69 6e 67 2c |side a b|uilding,|
|00005590| 20 61 20 77 65 6c 6c 20 | 68 6f 75 73 65 20 66 6f | a well |house fo|
|000055a0| 72 20 61 20 6c 61 72 67 | 65 20 73 70 72 69 6e 67 |r a larg|e spring|
|000055b0| 2e 0a 0a 20 20 20 20 54 | 68 65 72 65 20 61 72 65 |... T|here are|
|000055c0| 20 73 6f 6d 65 20 6b 65 | 79 73 20 6f 6e 20 74 68 | some ke|ys on th|
|000055d0| 65 20 67 72 6f 75 6e 64 | 20 68 65 72 65 2e 0a 0a |e ground| here...|
|000055e0| 20 20 20 20 54 68 65 72 | 65 20 69 73 20 61 20 73 | Ther|e is a s|
|000055f0| 68 69 6e 79 20 62 72 61 | 73 73 20 6c 61 6d 70 20 |hiny bra|ss lamp |
|00005600| 6e 65 61 72 62 79 2e 0a | 0a 53 48 41 52 5f 45 4f |nearby..|.SHAR_EO|
|00005610| 46 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |F.fi.ech|o shar: |
|00005620| 22 65 78 74 72 61 63 74 | 69 6e 67 20 27 65 6c 70 |"extract|ing 'elp|
|00005630| 27 22 20 27 28 38 38 31 | 20 63 68 61 72 61 63 74 |'" '(881| charact|
|00005640| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|00005650| 20 27 65 6c 70 27 0a 74 | 68 65 6e 0a 09 65 63 68 | 'elp'.t|hen..ech|
|00005660| 6f 20 73 68 61 72 3a 20 | 22 77 69 6c 6c 20 6e 6f |o shar: |"will no|
|00005670| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00005680| 73 74 69 6e 67 20 66 69 | 6c 65 20 27 65 6c 70 27 |sting fi|le 'elp'|
|00005690| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|000056a0| 48 41 52 5f 45 4f 46 20 | 3e 20 27 65 6c 70 27 0a |HAR_EOF |> 'elp'.|
|000056b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000056c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000056d0| 20 20 20 20 20 48 65 6c | 70 0a 0a 20 20 20 20 20 | Hel|p.. |
|000056e0| 20 20 20 59 6f 75 20 61 | 72 65 20 75 73 69 6e 67 | You a|re using|
|000056f0| 20 27 73 65 27 2c 20 74 | 68 65 20 20 47 65 6f 72 | 'se', t|he Geor|
|00005700| 67 69 61 20 20 54 65 63 | 68 20 73 63 72 65 65 6e |gia Tec|h screen|
|00005710| 20 65 64 69 74 6f 72 20 | 77 68 69 63 68 20 20 69 | editor |which i|
|00005720| 73 0a 20 20 20 20 20 20 | 20 20 62 61 73 65 64 20 |s. | based |
|00005730| 75 70 6f 6e 20 74 68 65 | 20 65 64 69 74 6f 72 20 |upon the| editor |
|00005740| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 65 |describe|d in the|
|00005750| 20 62 6f 6f 6b 20 53 4f | 46 54 57 41 52 45 20 54 | book SO|FTWARE T|
|00005760| 4f 4f 4c 53 2c 20 62 79 | 0a 20 20 20 20 20 20 20 |OOLS, by|. |
|00005770| 20 42 72 69 61 6e 20 57 | 2e 20 20 4b 65 72 6e 69 | Brian W|. Kerni|
|00005780| 67 68 61 6e 20 20 61 6e | 64 20 20 50 2e 20 20 20 |ghan an|d P. |
|00005790| 4a 2e 20 20 20 50 6c 61 | 75 67 65 72 20 20 20 28 |J. Pla|uger (|
|000057a0| 41 64 64 69 73 6f 6e 2d | 57 65 73 6c 65 79 2c 0a |Addison-|Wesley,.|
|000057b0| 20 20 20 20 20 20 20 20 | 31 39 37 36 29 2e 20 20 | |1976). |
|000057c0| 20 54 68 65 20 20 73 63 | 72 65 65 6e 2d 6f 72 69 | The sc|reen-ori|
|000057d0| 65 6e 74 65 64 20 20 6d | 6f 64 69 66 69 63 61 74 |ented m|odificat|
|000057e0| 69 6f 6e 73 20 28 61 6e | 64 20 73 6f 6d 65 20 6f |ions (an|d some o|
|000057f0| 74 68 65 72 73 29 0a 20 | 20 20 20 20 20 20 20 61 |thers). | a|
|00005800| 72 65 20 62 79 20 20 4a | 61 63 6b 20 20 57 61 75 |re by J|ack Wau|
|00005810| 67 68 20 61 6e 64 20 20 | 50 65 72 72 79 20 20 46 |gh and |Perry F|
|00005820| 6c 69 6e 6e 2e 20 20 44 | 61 6e 20 46 6f 72 73 79 |linn. D|an Forsy|
|00005830| 74 68 20 74 72 61 6e 73 | 6c 61 74 65 64 0a 20 20 |th trans|lated. |
|00005840| 20 20 20 20 20 20 74 68 | 65 20 52 61 74 66 6f 72 | th|e Ratfor|
|00005850| 20 69 6e 74 6f 20 43 2e | 20 20 41 72 6e 6f 6c 64 | into C.| Arnold|
|00005860| 20 52 6f 62 62 69 6e 73 | 20 6d 6f 64 69 66 69 65 | Robbins| modifie|
|00005870| 64 20 74 68 65 20 65 64 | 69 74 6f 72 20 74 6f 20 |d the ed|itor to |
|00005880| 20 75 73 65 0a 20 20 20 | 20 20 20 20 20 74 68 65 | use. | the|
|00005890| 20 42 65 72 6b 65 6c 65 | 79 20 74 65 72 6d 6c 69 | Berkele|y termli|
|000058a0| 62 20 6c 69 62 72 61 72 | 79 2c 20 6d 61 6b 69 6e |b librar|y, makin|
|000058b0| 67 20 74 68 65 20 65 64 | 69 74 6f 72 20 74 65 72 |g the ed|itor ter|
|000058c0| 6d 69 6e 61 6c 20 69 6e | 64 65 2d 0a 20 20 20 20 |minal in|de-. |
|000058d0| 20 20 20 20 70 65 6e 64 | 61 6e 74 2e 20 20 4d 6f | pend|ant. Mo|
|000058e0| 73 74 20 6f 66 20 74 68 | 69 73 20 20 27 68 65 6c |st of th|is 'hel|
|000058f0| 70 27 20 69 73 20 20 63 | 6f 75 72 74 65 73 79 20 |p' is c|ourtesy |
|00005900| 20 6f 66 20 42 6f 62 20 | 20 47 6f 72 64 6f 6e 20 | of Bob | Gordon |
|00005910| 6f 66 0a 20 20 20 20 20 | 20 20 20 50 72 69 6d 65 |of. | Prime|
|00005920| 20 20 52 65 73 65 61 72 | 63 68 2c 20 61 73 20 20 | Resear|ch, as |
|00005930| 61 6d 65 6e 64 65 64 20 | 62 79 20 20 41 72 6e 6f |amended |by Arno|
|00005940| 6c 64 20 52 6f 62 62 69 | 6e 73 2e 20 20 54 68 65 |ld Robbi|ns. The|
|00005950| 20 64 65 73 63 72 69 70 | 2d 0a 20 20 20 20 20 20 | descrip|-. |
|00005960| 20 20 74 69 6f 6e 20 62 | 65 66 6f 72 65 20 79 6f | tion b|efore yo|
|00005970| 75 20 6e 6f 77 20 20 69 | 73 20 20 69 6e 76 6f 6b |u now i|s invok|
|00005980| 65 64 20 62 79 20 74 68 | 65 20 20 22 68 22 20 28 |ed by th|e "h" (|
|00005990| 68 65 6c 70 29 20 63 6f | 6d 6d 61 6e 64 2e 0a 0a |help) co|mmand...|
|000059a0| 20 20 20 20 20 20 20 20 | 46 6f 72 20 61 20 64 65 | |For a de|
|000059b0| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 74 68 65 |scriptio|n of the|
|000059c0| 20 27 68 65 6c 70 27 20 | 63 6f 6d 6d 61 6e 64 2c | 'help' |command,|
|000059d0| 20 74 79 70 65 20 22 68 | 68 22 2e 0a 20 20 20 20 | type "h|h".. |
|000059e0| 20 20 20 20 46 69 6e 64 | 20 6f 75 74 20 77 68 61 | Find| out wha|
|000059f0| 74 20 74 68 65 20 68 65 | 6c 70 20 63 6f 6d 6d 61 |t the he|lp comma|
|00005a00| 6e 64 20 63 61 6e 20 74 | 65 6c 6c 20 79 6f 75 20 |nd can t|ell you |
|00005a10| 2d 20 74 79 70 65 20 22 | 68 64 69 72 22 2e 0a 0a |- type "|hdir"...|
|00005a20| 0a 53 48 41 52 5f 45 4f | 46 0a 66 69 0a 65 63 68 |.SHAR_EO|F.fi.ech|
|00005a30| 6f 20 73 68 61 72 3a 20 | 22 65 78 74 72 61 63 74 |o shar: |"extract|
|00005a40| 69 6e 67 20 27 65 71 75 | 61 6c 27 22 20 27 28 33 |ing 'equ|al'" '(3|
|00005a50| 30 36 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |06 chara|cters)'.|
|00005a60| 69 66 20 74 65 73 74 20 | 2d 66 20 27 65 71 75 61 |if test |-f 'equa|
|00005a70| 6c 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |l'.then.|.echo sh|
|00005a80| 61 72 3a 20 22 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |ar: "wil|l not ov|
|00005a90| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00005aa0| 67 20 66 69 6c 65 20 27 | 65 71 75 61 6c 27 22 0a |g file '|equal'".|
|00005ab0| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00005ac0| 52 5f 45 4f 46 20 3e 20 | 27 65 71 75 61 6c 27 0a |R_EOF > |'equal'.|
|00005ad0| 20 20 20 20 20 20 20 20 | 20 3d 20 20 20 20 2d 2d | | = --|
|00005ae0| 20 44 69 73 70 6c 61 79 | 20 4c 69 6e 65 20 4e 75 | Display| Line Nu|
|00005af0| 6d 62 65 72 20 63 6f 6d | 6d 61 6e 64 0a 0a 20 20 |mber com|mand.. |
|00005b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 65 66 61 | | defa|
|00005b10| 75 6c 74 20 72 61 6e 67 | 65 20 20 20 20 20 20 20 |ult rang|e |
|00005b20| 20 20 20 20 73 79 6e 74 | 61 78 0a 20 20 20 20 20 | synt|ax. |
|00005b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2e 20 | | . |
|00005b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b50| 20 3d 0a 0a 20 20 20 20 | 20 20 22 3d 22 20 69 73 | =.. | "=" is|
|00005b60| 20 66 6f 72 20 64 65 74 | 65 72 6d 69 6e 69 6e 67 | for det|ermining|
|00005b70| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 74 | the num|ber of t|
|00005b80| 68 65 20 63 75 72 72 65 | 6e 74 20 6c 69 6e 65 0a |he curre|nt line.|
|00005b90| 20 20 20 20 20 20 74 68 | 61 74 20 79 6f 75 20 61 | th|at you a|
|00005ba0| 72 65 20 65 64 69 74 69 | 6e 67 2e 0a 0a 0a 0a 20 |re editi|ng..... |
|00005bb0| 20 20 20 20 20 20 54 6f | 20 72 65 74 75 72 6e 20 | To| return |
|00005bc0| 74 6f 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 64 |to the c|ommand d|
|00005bd0| 69 72 65 63 74 6f 72 79 | 2c 20 74 79 70 65 20 22 |irectory|, type "|
|00005be0| 68 63 6f 6d 64 69 72 2e | 22 0a 20 20 20 20 20 20 |hcomdir.|". |
|00005bf0| 20 53 65 65 20 61 6c 73 | 6f 3a 20 20 22 68 6f 61 | See als|o: "hoa|
|00005c00| 22 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 65 63 |".SHAR_E|OF.fi.ec|
|00005c10| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|00005c20| 74 69 6e 67 20 27 66 27 | 22 20 27 28 36 39 33 20 |ting 'f'|" '(693 |
|00005c30| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00005c40| 74 65 73 74 20 2d 66 20 | 27 66 27 0a 74 68 65 6e |test -f |'f'.then|
|00005c50| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 22 77 69 |..echo s|har: "wi|
|00005c60| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00005c70| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00005c80| 27 66 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |'f'".els|e.cat <<|
|00005c90| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 66 27 | \SHAR_E|OF > 'f'|
|00005ca0| 0a 20 20 20 20 20 20 20 | 20 66 20 2d 2d 20 46 69 |. | f -- Fi|
|00005cb0| 6c 65 20 63 6f 6d 6d 61 | 6e 64 0a 0a 20 20 20 20 |le comma|nd.. |
|00005cc0| 20 20 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 | | default|
|00005cd0| 20 72 61 6e 67 65 20 20 | 20 20 20 20 20 20 20 20 | range | |
|00005ce0| 20 20 20 20 73 79 6e 74 | 61 78 0a 20 20 20 20 20 | synt|ax. |
|00005cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6e 2f 61 | | n/a|
|00005d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 66 | | f|
|00005d10| 20 5b 66 69 6c 65 20 6e | 61 6d 65 5d 0a 0a 20 20 | [file n|ame].. |
|00005d20| 20 20 20 20 20 20 22 66 | 22 20 20 69 73 20 20 75 | "f|" is u|
|00005d30| 73 65 64 20 74 6f 20 70 | 72 69 6e 74 20 6f 72 20 |sed to p|rint or |
|00005d40| 72 65 73 65 74 20 74 68 | 65 20 6e 61 6d 65 20 6f |reset th|e name o|
|00005d50| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 66 69 |f the cu|rrent fi|
|00005d60| 6c 65 0a 20 20 20 20 20 | 20 20 20 62 65 69 6e 67 |le. | being|
|00005d70| 20 65 64 69 74 65 64 2e | 20 20 66 20 5b 66 69 6c | edited.| f [fil|
|00005d80| 65 20 6e 61 6d 65 5d 20 | 72 65 73 65 74 73 20 74 |e name] |resets t|
|00005d90| 68 65 20 6e 61 6d 65 20 | 66 6f 72 20 74 68 65 20 |he name |for the |
|00005da0| 63 75 72 72 65 6e 74 0a | 20 20 20 20 20 20 20 20 |current.| |
|00005db0| 66 69 6c 65 2e 20 20 54 | 68 69 73 20 66 69 6c 65 |file. T|his file|
|00005dc0| 6e 61 6d 65 20 69 73 20 | 75 73 65 64 20 62 79 20 |name is |used by |
|00005dd0| 74 68 65 20 22 77 22 2c | 20 22 65 22 2c 20 61 6e |the "w",| "e", an|
|00005de0| 64 20 20 22 72 22 20 20 | 63 6f 6d 2d 0a 20 20 20 |d "r" |com-. |
|00005df0| 20 20 20 20 20 6d 61 6e | 64 73 20 20 77 68 65 6e | man|ds when|
|00005e00| 20 20 6e 6f 20 20 70 61 | 72 61 6d 65 74 65 72 73 | no pa|rameters|
|00005e10| 20 61 72 65 20 70 72 6f | 76 69 64 65 64 2e 20 20 | are pro|vided. |
|00005e20| 66 20 64 6f 65 73 20 6e | 6f 74 20 63 68 61 6e 67 |f does n|ot chang|
|00005e30| 65 0a 20 20 20 20 20 20 | 20 20 74 68 65 20 22 6f |e. | the "o|
|00005e40| 6b 22 20 74 6f 67 67 6c | 65 2e 20 20 66 20 77 69 |k" toggl|e. f wi|
|00005e50| 74 68 20 6e 6f 20 70 61 | 72 61 6d 65 74 65 72 73 |th no pa|rameters|
|00005e60| 20 70 72 69 6e 74 73 20 | 6f 75 74 20 74 68 65 20 | prints |out the |
|00005e70| 72 65 6d 65 6d 2d 0a 20 | 20 20 20 20 20 20 20 62 |remem-. | b|
|00005e80| 65 72 65 64 20 6e 61 6d | 65 2e 20 20 49 6e 20 66 |ered nam|e. In f|
|00005e90| 69 6c 65 20 6e 61 6d 65 | 73 2c 20 53 65 20 77 69 |ile name|s, Se wi|
|00005ea0| 6c 6c 20 20 65 78 70 61 | 6e 64 20 20 61 6e 79 20 |ll expa|nd any |
|00005eb0| 20 65 6e 76 69 72 6f 6d | 65 6e 74 0a 20 20 20 20 | envirom|ent. |
|00005ec0| 20 20 20 20 76 61 72 69 | 61 62 6c 65 73 20 74 68 | vari|ables th|
|00005ed0| 61 74 20 73 74 61 72 74 | 20 77 69 74 68 20 61 20 |at start| with a |
|00005ee0| 24 2e 0a 0a 20 20 20 20 | 20 20 20 20 54 6f 20 20 |$... | To |
|00005ef0| 72 65 74 75 72 6e 20 20 | 74 6f 20 20 74 68 65 20 |return |to the |
|00005f00| 20 63 6f 6d 6d 61 6e 64 | 20 64 69 72 65 63 74 6f | command| directo|
|00005f10| 72 79 2c 20 74 79 70 65 | 20 22 68 63 6f 6d 64 69 |ry, type| "hcomdi|
|00005f20| 72 2e 22 20 20 53 65 65 | 0a 20 20 20 20 20 20 20 |r." See|. |
|00005f30| 20 61 6c 73 6f 3a 20 20 | 22 68 65 22 2c 20 22 68 | also: |"he", "h|
|00005f40| 77 22 2c 20 22 68 72 22 | 2c 20 61 6e 64 20 22 68 |w", "hr"|, and "h|
|00005f50| 6f 6b 22 2e 0a 0a 53 48 | 41 52 5f 45 4f 46 0a 66 |ok"...SH|AR_EOF.f|
|00005f60| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 22 65 78 |i.echo s|har: "ex|
|00005f70| 74 72 61 63 74 69 6e 67 | 20 27 67 27 22 20 27 28 |tracting| 'g'" '(|
|00005f80| 35 37 32 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |572 char|acters)'|
|00005f90| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 67 27 0a |.if test| -f 'g'.|
|00005fa0| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00005fb0| 20 22 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d | "will n|ot over-|
|00005fc0| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00005fd0| 69 6c 65 20 27 67 27 22 | 0a 65 6c 73 65 0a 63 61 |ile 'g'"|.else.ca|
|00005fe0| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00005ff0| 20 27 67 27 0a 20 20 20 | 20 20 20 20 20 20 20 67 | 'g'. | g|
|00006000| 20 20 20 20 2d 2d 20 47 | 6c 6f 62 61 6c 20 63 6f | -- G|lobal co|
|00006010| 6d 6d 61 6e 64 0a 0a 20 | 20 20 20 20 20 20 20 20 |mmand.. | |
|00006020| 20 20 20 20 20 20 64 65 | 66 61 75 6c 74 20 72 61 | de|fault ra|
|00006030| 6e 67 65 20 20 20 20 20 | 20 20 20 20 20 20 73 79 |nge | sy|
|00006040| 6e 74 61 78 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ntax. | |
|00006050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 2c | | 1,|
|00006060| 24 20 20 20 20 20 20 20 | 20 20 20 20 67 2f 70 61 |$ | g/pa|
|00006070| 74 74 65 72 6e 2f 63 6f | 6d 6d 61 6e 64 0a 0a 20 |ttern/co|mmand.. |
|00006080| 20 20 20 20 20 20 20 22 | 67 22 20 20 69 73 20 20 | "|g" is |
|00006090| 75 73 65 64 20 20 74 6f | 20 70 65 72 66 6f 72 6d |used to| perform|
|000060a0| 20 61 6e 20 65 64 69 74 | 69 6e 67 20 63 6f 6d 6d | an edit|ing comm|
|000060b0| 61 6e 64 20 6f 6e 20 61 | 6c 6c 20 6c 69 6e 65 73 |and on a|ll lines|
|000060c0| 20 74 68 61 74 0a 20 20 | 20 20 20 20 20 20 6d 61 | that. | ma|
|000060d0| 74 63 68 20 74 68 65 20 | 22 70 61 74 74 65 72 6e |tch the |"pattern|
|000060e0| 22 2e 20 20 20 22 70 61 | 74 74 65 72 6e 22 20 20 |". "pa|ttern" |
|000060f0| 69 73 20 20 61 6e 79 20 | 20 6c 65 67 61 6c 20 20 |is any | legal |
|00006100| 70 61 74 74 65 72 6e 20 | 20 61 6e 64 0a 20 20 20 |pattern | and. |
|00006110| 20 20 20 20 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 | com|mand is |
|00006120| 61 6e 20 65 64 69 74 6f | 72 20 63 6f 6d 6d 61 6e |an edito|r comman|
|00006130| 64 2e 20 20 54 68 65 20 | 22 78 22 20 63 6f 6d 6d |d. The |"x" comm|
|00006140| 61 6e 64 20 69 73 20 74 | 68 65 20 63 6f 6e 76 65 |and is t|he conve|
|00006150| 72 73 65 0a 20 20 20 20 | 20 20 20 20 6f 66 20 22 |rse. | of "|
|00006160| 67 22 20 61 6e 64 20 70 | 65 72 66 6f 72 6d 73 20 |g" and p|erforms |
|00006170| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6f 6e 20 61 |the comm|and on a|
|00006180| 6c 6c 20 6c 69 6e 65 73 | 20 74 68 61 74 20 64 6f |ll lines| that do|
|00006190| 20 6e 6f 74 20 6d 61 74 | 63 68 0a 20 20 20 20 20 | not mat|ch. |
|000061a0| 20 20 20 74 68 65 20 70 | 61 74 74 65 72 6e 2e 20 | the p|attern. |
|000061b0| 20 54 68 65 20 22 2f 22 | 20 6d 61 79 20 62 65 20 | The "/"| may be |
|000061c0| 61 6e 79 20 63 68 61 72 | 61 63 74 65 72 2e 0a 0a |any char|acter...|
|000061d0| 0a 20 20 20 20 20 20 20 | 20 54 6f 20 72 65 74 75 |. | To retu|
|000061e0| 72 6e 20 74 6f 20 74 68 | 65 20 63 6f 6d 6d 61 6e |rn to th|e comman|
|000061f0| 64 20 64 69 72 65 63 74 | 6f 72 79 2c 20 74 79 70 |d direct|ory, typ|
|00006200| 65 20 22 68 63 6f 6d 64 | 69 72 2e 22 0a 20 20 20 |e "hcomd|ir.". |
|00006210| 20 20 20 20 20 53 65 65 | 20 61 6c 73 6f 3a 20 20 | See| also: |
|00006220| 22 68 78 22 20 61 6e 64 | 20 22 68 70 61 74 22 2e |"hx" and| "hpat".|
|00006230| 0a 53 48 41 52 5f 45 4f | 46 0a 66 69 0a 65 63 68 |.SHAR_EO|F.fi.ech|
|00006240| 6f 20 73 68 61 72 3a 20 | 22 65 78 74 72 61 63 74 |o shar: |"extract|
|00006250| 69 6e 67 20 27 68 27 22 | 20 27 28 35 33 31 20 63 |ing 'h'"| '(531 c|
|00006260| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00006270| 65 73 74 20 2d 66 20 27 | 68 27 0a 74 68 65 6e 0a |est -f '|h'.then.|
|00006280| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00006290| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|000062a0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|000062b0| 68 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |h'".else|.cat << |
|000062c0| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 68 27 0a |\SHAR_EO|F > 'h'.|
|000062d0| 20 20 20 20 20 20 20 20 | 20 20 68 20 20 20 20 2d | | h -|
|000062e0| 2d 20 48 65 6c 70 20 63 | 6f 6d 6d 61 6e 64 0a 0a |- Help c|ommand..|
|000062f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00006300| 65 66 61 75 6c 74 20 72 | 61 6e 67 65 20 20 20 20 |efault r|ange |
|00006310| 20 20 20 20 20 20 20 73 | 79 6e 74 61 78 0a 20 20 | s|yntax. |
|00006320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006330| 20 20 20 20 20 20 20 6e | 2f 61 20 20 20 20 20 20 | n|/a |
|00006340| 20 20 20 20 20 68 5b 20 | 6e 75 6c 6c 20 7c 20 70 | h[ |null | p|
|00006350| 61 72 61 6d 65 74 65 72 | 5d 0a 0a 20 20 20 20 20 |arameter|].. |
|00006360| 20 20 20 54 79 70 69 6e | 67 20 20 22 68 22 20 20 | Typin|g "h" |
|00006370| 66 6f 6c 6c 6f 77 65 64 | 20 20 62 79 20 61 6e 79 |followed| by any|
|00006380| 20 63 68 61 72 61 63 74 | 65 72 20 20 73 74 72 69 | charact|er stri|
|00006390| 6e 67 20 73 69 6d 70 6c | 79 20 64 69 73 70 6c 61 |ng simpl|y displa|
|000063a0| 79 73 0a 20 20 20 20 20 | 20 20 20 74 68 65 20 20 |ys. | the |
|000063b0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |contents| of the |
|000063c0| 73 65 20 68 65 6c 70 20 | 73 63 72 69 70 74 20 6f |se help |script o|
|000063d0| 66 20 74 68 61 74 20 6e | 61 6d 65 20 61 74 20 74 |f that n|ame at t|
|000063e0| 68 65 20 74 6f 70 20 20 | 6f 66 0a 20 20 20 20 20 |he top |of. |
|000063f0| 20 20 20 74 68 65 20 20 | 73 63 72 65 65 6e 20 20 | the |screen |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.