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
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| makefile script, 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)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 6b 65 |.sources|.misc.ke|
|00000020| 79 77 6f 72 64 73 3a 20 | 0a 6f 72 67 61 6e 69 7a |ywords: |.organiz|
|00000030| 61 74 69 6f 6e 3a 20 43 | 6f 6c 6f 72 61 64 6f 20 |ation: C|olorado |
|00000040| 53 74 61 74 65 20 55 6e | 69 76 65 72 73 69 74 79 |State Un|iversity|
|00000050| 2c 20 46 6f 72 74 20 43 | 6f 6c 6c 69 6e 73 2c 20 |, Fort C|ollins, |
|00000060| 43 4f 20 20 38 30 35 32 | 33 0a 73 75 62 6a 65 63 |CO 8052|3.subjec|
|00000070| 74 3a 20 76 30 39 69 30 | 36 30 3a 20 72 77 68 6f |t: v09i0|60: rwho|
|00000080| 20 70 61 72 73 65 72 20 | 70 72 69 6e 74 73 20 72 | parser |prints r|
|00000090| 65 61 6c 20 6e 61 6d 65 | 73 0a 66 72 6f 6d 3a 20 |eal name|s.from: |
|000000a0| 61 6c 6c 62 65 72 79 40 | 75 75 6e 65 74 2e 55 55 |allbery@|uunet.UU|
|000000b0| 2e 4e 45 54 20 28 42 72 | 61 6e 64 6f 6e 20 53 2e |.NET (Br|andon S.|
|000000c0| 20 41 6c 6c 62 65 72 79 | 20 2d 20 63 6f 6d 70 2e | Allbery| - comp.|
|000000d0| 73 6f 75 72 63 65 73 2e | 6d 69 73 63 29 0a 52 65 |sources.|misc).Re|
|000000e0| 70 6c 79 2d 54 6f 3a 20 | 72 6f 62 65 72 74 40 6c |ply-To: |robert@l|
|000000f0| 6f 6e 67 73 2e 4c 41 4e | 43 45 2e 43 6f 6c 6f 53 |ongs.LAN|CE.ColoS|
|00000100| 74 61 74 65 2e 45 64 75 | 20 28 52 6f 62 65 72 74 |tate.Edu| (Robert|
|00000110| 20 54 68 6f 6d 70 73 6f | 6e 29 0a 0a 50 6f 73 74 | Thompso|n)..Post|
|00000120| 69 6e 67 2d 6e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ing-numb|er: Volu|
|00000130| 6d 65 20 39 2c 20 49 73 | 73 75 65 20 36 30 0a 53 |me 9, Is|sue 60.S|
|00000140| 75 62 6d 69 74 74 65 64 | 2d 62 79 3a 20 72 6f 62 |ubmitted|-by: rob|
|00000150| 65 72 74 40 6c 6f 6e 67 | 73 2e 4c 41 4e 43 45 2e |ert@long|s.LANCE.|
|00000160| 43 6f 6c 6f 53 74 61 74 | 65 2e 45 64 75 20 28 52 |ColoStat|e.Edu (R|
|00000170| 6f 62 65 72 74 20 54 68 | 6f 6d 70 73 6f 6e 29 0a |obert Th|ompson).|
|00000180| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 72 77 |Archive-|name: rw|
|00000190| 68 6f 70 61 72 73 65 0a | 0a 48 65 72 65 20 69 73 |hoparse.|.Here is|
|000001a0| 20 61 20 70 72 6f 67 72 | 61 6d 20 74 68 61 74 20 | a progr|am that |
|000001b0| 79 6f 75 20 6d 69 67 68 | 74 20 66 69 6e 64 20 75 |you migh|t find u|
|000001c0| 73 65 66 75 6c 2c 20 70 | 65 6f 70 6c 65 20 61 72 |seful, p|eople ar|
|000001d0| 72 6f 75 6e 64 20 68 65 | 72 65 20 68 61 76 65 2e |round he|re have.|
|000001e0| 20 20 49 74 0a 70 61 72 | 73 65 73 20 74 68 65 20 | It.par|ses the |
|000001f0| 6f 75 74 70 75 74 20 66 | 72 6f 6d 20 72 77 68 6f |output f|rom rwho|
|00000200| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 73 6f 6d | and ret|urns som|
|00000210| 65 20 69 6e 74 65 72 65 | 73 74 69 6e 67 20 69 6e |e intere|sting in|
|00000220| 66 6f 72 6d 61 74 69 6f | 6e 2e 0a 0a 09 2d 52 6f |formatio|n....-Ro|
|00000230| 62 65 72 74 0a 0a 23 21 | 20 2f 62 69 6e 2f 73 68 |bert..#!| /bin/sh|
|00000240| 0a 23 20 54 68 69 73 20 | 69 73 20 61 20 73 68 65 |.# This |is a she|
|00000250| 6c 6c 20 61 72 63 68 69 | 76 65 2e 20 20 52 65 6d |ll archi|ve. Rem|
|00000260| 6f 76 65 20 61 6e 79 74 | 68 69 6e 67 20 62 65 66 |ove anyt|hing bef|
|00000270| 6f 72 65 20 74 68 69 73 | 20 6c 69 6e 65 2c 20 74 |ore this| line, t|
|00000280| 68 65 6e 20 75 6e 70 61 | 63 6b 0a 23 20 69 74 20 |hen unpa|ck.# it |
|00000290| 62 79 20 73 61 76 69 6e | 67 20 69 74 20 69 6e 74 |by savin|g it int|
|000002a0| 6f 20 61 20 66 69 6c 65 | 20 61 6e 64 20 74 79 70 |o a file| and typ|
|000002b0| 69 6e 67 20 22 73 68 20 | 66 69 6c 65 22 2e 20 20 |ing "sh |file". |
|000002c0| 54 6f 20 6f 76 65 72 77 | 72 69 74 65 20 65 78 69 |To overw|rite exi|
|000002d0| 73 74 69 6e 67 0a 23 20 | 66 69 6c 65 73 2c 20 74 |sting.# |files, t|
|000002e0| 79 70 65 20 22 73 68 20 | 66 69 6c 65 20 2d 63 22 |ype "sh |file -c"|
|000002f0| 2e 20 20 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |. You c|an also |
|00000300| 66 65 65 64 20 74 68 69 | 73 20 61 73 20 73 74 61 |feed thi|s as sta|
|00000310| 6e 64 61 72 64 20 69 6e | 70 75 74 20 76 69 61 0a |ndard in|put via.|
|00000320| 23 20 75 6e 73 68 61 72 | 2c 20 6f 72 20 62 79 20 |# unshar|, or by |
|00000330| 74 79 70 69 6e 67 20 22 | 73 68 20 3c 66 69 6c 65 |typing "|sh <file|
|00000340| 22 2c 20 65 2e 67 2e 2e | 20 20 49 66 20 74 68 69 |", e.g..| If thi|
|00000350| 73 20 61 72 63 68 69 76 | 65 20 69 73 20 63 6f 6d |s archiv|e is com|
|00000360| 70 6c 65 74 65 2c 20 79 | 6f 75 0a 23 20 77 69 6c |plete, y|ou.# wil|
|00000370| 6c 20 73 65 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |l see th|e follow|
|00000380| 69 6e 67 20 6d 65 73 73 | 61 67 65 20 61 74 20 74 |ing mess|age at t|
|00000390| 68 65 20 65 6e 64 3a 0a | 23 09 09 22 45 6e 64 20 |he end:.|#.."End |
|000003a0| 6f 66 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 |of shell| archive|
|000003b0| 2e 22 0a 23 20 43 6f 6e | 74 65 6e 74 73 3a 20 20 |.".# Con|tents: |
|000003c0| 52 45 41 44 4d 45 20 4d | 61 6b 65 66 69 6c 65 20 |README M|akefile |
|000003d0| 72 77 68 6f 70 2e 6e 20 | 72 77 68 6f 70 61 72 73 |rwhop.n |rwhopars|
|000003e0| 65 2e 63 0a 23 20 57 72 | 61 70 70 65 64 20 62 79 |e.c.# Wr|apped by|
|000003f0| 20 72 6f 62 65 72 74 40 | 6c 6f 6e 67 73 2e 4c 41 | robert@|longs.LA|
|00000400| 4e 43 45 2e 43 6f 6c 6f | 53 74 61 74 65 2e 45 64 |NCE.Colo|State.Ed|
|00000410| 75 20 6f 6e 20 4d 6f 6e | 20 44 65 63 20 31 31 20 |u on Mon| Dec 11 |
|00000420| 32 31 3a 31 36 3a 34 31 | 20 31 39 38 39 0a 50 41 |21:16:41| 1989.PA|
|00000430| 54 48 3d 2f 62 69 6e 3a | 2f 75 73 72 2f 62 69 6e |TH=/bin:|/usr/bin|
|00000440| 3a 2f 75 73 72 2f 75 63 | 62 20 3b 20 65 78 70 6f |:/usr/uc|b ; expo|
|00000450| 72 74 20 50 41 54 48 0a | 69 66 20 74 65 73 74 20 |rt PATH.|if test |
|00000460| 2d 66 20 27 52 45 41 44 | 4d 45 27 20 2d 61 20 22 |-f 'READ|ME' -a "|
|00000470| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00000480| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000490| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|000004a0| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|000004b0| 65 20 5c 22 27 52 45 41 | 44 4d 45 27 5c 22 0a 65 |e \"'REA|DME'\".e|
|000004c0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|000004d0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 52 45 41 |xtractin|g \"'REA|
|000004e0| 44 4d 45 27 5c 22 20 5c | 28 35 39 35 20 63 68 61 |DME'\" \|(595 cha|
|000004f0| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00000500| 2f 5e 58 2f 2f 22 20 3e | 27 52 45 41 44 4d 45 27 |/^X//" >|'README'|
|00000510| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00000520| 0a 72 77 68 6f 70 20 69 | 73 20 61 20 70 72 6f 67 |.rwhop i|s a prog|
|00000530| 72 61 6d 20 49 20 77 72 | 6f 74 65 20 6f 6e 65 20 |ram I wr|ote one |
|00000540| 62 6f 72 65 64 20 53 75 | 6e 64 61 79 20 6e 69 67 |bored Su|nday nig|
|00000550| 68 74 20 66 6f 72 20 73 | 6f 6d 65 74 68 69 6e 67 |ht for s|omething|
|00000560| 20 74 6f 20 64 6f 2e 20 | 20 49 0a 77 61 73 20 70 | to do. | I.was p|
|00000570| 72 6f 6d 70 74 65 64 20 | 74 6f 20 70 6f 73 74 20 |rompted |to post |
|00000580| 74 68 69 73 20 63 6f 64 | 65 20 66 6f 72 20 6f 74 |this cod|e for ot|
|00000590| 68 65 72 73 20 74 6f 20 | 75 73 65 2e 20 20 54 68 |hers to |use. Th|
|000005a0| 65 20 6d 61 69 6e 20 72 | 65 61 73 6f 6e 20 66 6f |e main r|eason fo|
|000005b0| 72 20 74 68 65 0a 70 72 | 6f 67 72 61 6d 20 69 73 |r the.pr|ogram is|
|000005c0| 20 74 6f 20 72 65 74 75 | 72 6e 20 74 68 65 20 75 | to retu|rn the u|
|000005d0| 73 65 72 73 20 72 65 61 | 6c 20 6e 61 6d 65 20 69 |sers rea|l name i|
|000005e0| 6e 73 74 65 61 64 20 6f | 66 20 6a 75 73 74 20 74 |nstead o|f just t|
|000005f0| 68 65 20 6c 6f 67 69 6e | 20 6e 61 6d 65 2e 0a 49 |he login| name..I|
|00000600| 66 20 74 68 65 72 65 20 | 61 72 65 20 61 6e 79 20 |f there |are any |
|00000610| 70 72 6f 62 6c 65 6d 73 | 2c 20 73 65 6e 64 20 6d |problems|, send m|
|00000620| 65 20 6d 61 69 6c 20 61 | 6e 64 20 49 20 77 69 6c |e mail a|nd I wil|
|00000630| 6c 20 74 72 79 20 74 6f | 20 72 65 63 74 69 66 79 |l try to| rectify|
|00000640| 20 74 68 65 20 62 75 67 | 2e 0a 58 0a 54 68 69 73 | the bug|..X.This|
|00000650| 20 63 6f 65 64 20 69 73 | 20 73 75 70 70 6c 69 65 | coed is| supplie|
|00000660| 64 20 77 69 74 68 6f 75 | 74 20 63 6f 70 79 72 69 |d withou|t copyri|
|00000670| 67 68 74 2c 20 64 6f 20 | 77 69 74 68 20 69 74 20 |ght, do |with it |
|00000680| 77 68 61 74 20 79 6f 75 | 20 70 6c 65 61 73 65 2e |what you| please.|
|00000690| 20 20 28 54 65 6c 6c 0a | 6d 65 20 6f 66 20 61 6e | (Tell.|me of an|
|000006a0| 79 20 69 6d 70 72 6f 76 | 65 6d 65 6e 74 73 20 79 |y improv|ements y|
|000006b0| 6f 75 20 68 61 76 65 2e | 29 20 20 49 20 77 61 73 |ou have.|) I was|
|000006c0| 20 74 68 69 6e 6b 69 6e | 67 20 6f 66 20 6d 61 6b | thinkin|g of mak|
|000006d0| 69 6e 67 20 74 68 65 20 | 70 72 6f 67 72 61 6d 0a |ing the |program.|
|000006e0| 73 65 61 72 63 68 20 66 | 6f 72 20 61 20 68 6f 73 |search f|or a hos|
|000006f0| 74 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 6a 75 |t rather| than ju|
|00000700| 73 74 20 61 20 75 73 65 | 72 20 28 6d 61 79 62 65 |st a use|r (maybe|
|00000710| 20 73 6f 6d 65 64 61 79 | 29 2e 20 20 0a 58 0a 52 | someday|). .X.R|
|00000720| 6f 62 65 72 74 0a 43 53 | 55 20 2d 20 43 65 6e 74 |obert.CS|U - Cent|
|00000730| 65 72 20 66 6f 72 43 6f | 6d 70 75 74 65 72 20 41 |er forCo|mputer A|
|00000740| 73 73 69 73 74 65 64 20 | 45 6e 67 69 6e 65 65 72 |ssisted |Engineer|
|00000750| 69 6e 67 0a 58 0a 72 6f | 62 65 72 74 40 6c 6f 6e |ing.X.ro|bert@lon|
|00000760| 67 73 2e 4c 41 4e 43 45 | 2e 43 6f 6c 6f 53 74 61 |gs.LANCE|.ColoSta|
|00000770| 74 65 2e 45 64 75 0a 45 | 4e 44 5f 4f 46 5f 46 49 |te.Edu.E|ND_OF_FI|
|00000780| 4c 45 0a 69 66 20 74 65 | 73 74 20 35 39 35 20 2d |LE.if te|st 595 -|
|00000790| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 52 45 41 44 |ne `wc -|c <'READ|
|000007a0| 4d 45 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |ME'`; th|en. e|
|000007b0| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 52 45 41 |cho shar|: \"'REA|
|000007c0| 44 4d 45 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |DME'\" u|npacked |
|000007d0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|000007e0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 52 45 |.fi.# en|d of 'RE|
|000007f0| 41 44 4d 45 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |ADME'.fi|.if test|
|00000800| 20 2d 66 20 27 4d 61 6b | 65 66 69 6c 65 27 20 2d | -f 'Mak|efile' -|
|00000810| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00000820| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00000830| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00000840| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00000850| 66 69 6c 65 20 5c 22 27 | 4d 61 6b 65 66 69 6c 65 |file \"'|Makefile|
|00000860| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00000870| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00000880| 22 27 4d 61 6b 65 66 69 | 6c 65 27 5c 22 20 5c 28 |"'Makefi|le'\" \(|
|00000890| 34 36 39 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |469 char|acters\)|
|000008a0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|000008b0| 4d 61 6b 65 66 69 6c 65 | 27 20 3c 3c 27 45 4e 44 |Makefile|' <<'END|
|000008c0| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 23 23 23 23 23 |_OF_FILE|'.X#####|
|000008d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000900| 23 23 23 23 23 23 23 23 | 23 23 23 23 0a 58 23 0a |########|####.X#.|
|00000910| 58 23 20 72 77 68 6f 70 | 61 72 73 65 20 6d 61 6b |X# rwhop|arse mak|
|00000920| 65 66 69 6c 65 20 63 72 | 65 61 74 65 64 20 31 32 |efile cr|eated 12|
|00000930| 2f 31 30 2f 38 39 0a 58 | 23 0a 58 23 20 4e 6f 20 |/10/89.X|#.X# No |
|00000940| 63 6f 70 79 72 69 67 68 | 74 73 20 69 6e 70 6c 69 |copyrigh|ts inpli|
|00000950| 65 64 20 6f 72 20 72 65 | 71 75 65 73 74 65 64 2e |ed or re|quested.|
|00000960| 20 20 54 68 69 73 20 63 | 6f 64 65 20 69 73 20 73 | This c|ode is s|
|00000970| 75 70 70 6c 69 65 64 20 | 61 73 20 69 73 0a 58 23 |upplied |as is.X#|
|00000980| 20 68 61 76 65 20 66 75 | 6e 20 75 73 69 6e 67 20 | have fu|n using |
|00000990| 69 74 20 61 6e 64 20 72 | 65 70 6f 72 74 20 61 6e |it and r|eport an|
|000009a0| 79 20 62 75 67 73 20 74 | 6f 3a 0a 58 23 0a 58 23 |y bugs t|o:.X#.X#|
|000009b0| 20 20 09 72 6f 62 65 72 | 74 40 6c 6f 6e 67 73 2e | .rober|t@longs.|
|000009c0| 4c 41 4e 43 45 2e 43 6f | 6c 6f 53 74 61 74 65 2e |LANCE.Co|loState.|
|000009d0| 65 64 75 0a 58 23 0a 58 | 23 23 23 23 23 23 23 23 |edu.X#.X|########|
|000009e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000009f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000a00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000a10| 23 23 23 23 23 23 23 23 | 23 0a 4f 42 4a 53 3d 09 |########|#.OBJS=.|
|00000a20| 72 77 68 6f 70 61 72 73 | 65 2e 6f 0a 53 52 43 53 |rwhopars|e.o.SRCS|
|00000a30| 3d 09 72 77 68 6f 70 61 | 72 73 65 2e 63 0a 58 0a |=.rwhopa|rse.c.X.|
|00000a40| 54 41 52 47 45 54 3d 20 | 72 77 68 6f 70 0a 43 43 |TARGET= |rwhop.CC|
|00000a50| 3d 20 67 63 63 20 2d 4f | 20 2d 61 6e 73 69 0a 58 |= gcc -O| -ansi.X|
|00000a60| 0a 61 6c 6c 3a 09 0a 58 | 09 24 28 43 43 29 20 2d |.all:..X|.$(CC) -|
|00000a70| 6f 20 24 28 54 41 52 47 | 45 54 29 20 72 77 68 6f |o $(TARG|ET) rwho|
|00000a80| 70 61 72 73 65 2e 63 20 | 0a 58 09 0a 63 6c 65 61 |parse.c |.X..clea|
|00000a90| 6e 3a 0a 58 09 72 6d 20 | 2d 66 20 2a 2e 6f 20 24 |n:.X.rm |-f *.o $|
|00000aa0| 28 54 41 52 47 45 54 29 | 20 63 6f 72 65 0a 45 4e |(TARGET)| core.EN|
|00000ab0| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00000ac0| 74 20 34 36 39 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 469 -n|e `wc -c|
|00000ad0| 20 3c 27 4d 61 6b 65 66 | 69 6c 65 27 60 3b 20 74 | <'Makef|ile'`; t|
|00000ae0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00000af0| 72 3a 20 5c 22 27 4d 61 | 6b 65 66 69 6c 65 27 5c |r: \"'Ma|kefile'\|
|00000b00| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00000b10| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00000b20| 20 65 6e 64 20 6f 66 20 | 27 4d 61 6b 65 66 69 6c | end of |'Makefil|
|00000b30| 65 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |e'.fi.if| test -f|
|00000b40| 20 27 72 77 68 6f 70 2e | 6e 27 20 2d 61 20 22 24 | 'rwhop.|n' -a "$|
|00000b50| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00000b60| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00000b70| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00000b80| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00000b90| 20 5c 22 27 72 77 68 6f | 70 2e 6e 27 5c 22 0a 65 | \"'rwho|p.n'\".e|
|00000ba0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00000bb0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 72 77 68 |xtractin|g \"'rwh|
|00000bc0| 6f 70 2e 6e 27 5c 22 20 | 5c 28 31 30 38 33 20 63 |op.n'\" |\(1083 c|
|00000bd0| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00000be0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 72 77 68 6f 70 |"s/^X//"| >'rwhop|
|00000bf0| 2e 6e 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.n' <<'E|ND_OF_FI|
|00000c00| 4c 45 27 0a 58 2e 5c 22 | 20 53 43 43 53 49 44 3a |LE'.X.\"| SCCSID:|
|00000c10| 20 40 28 23 29 72 77 68 | 6f 70 2e 6e 20 31 2e 30 | @(#)rwh|op.n 1.0|
|00000c20| 20 31 32 2f 31 30 2f 38 | 39 0a 58 2e 54 48 20 72 | 12/10/8|9.X.TH r|
|00000c30| 77 68 6f 70 20 6e 0a 58 | 2e 53 48 20 4e 41 4d 45 |whop n.X|.SH NAME|
|00000c40| 0a 72 77 68 6f 70 20 5c | 2d 20 72 77 68 6f 28 31 |.rwhop \|- rwho(1|
|00000c50| 29 20 6f 75 74 70 75 74 | 20 70 61 72 73 65 72 0a |) output| parser.|
|00000c60| 58 2e 53 48 20 53 59 4e | 54 41 58 0a 58 2e 42 20 |X.SH SYN|TAX.X.B |
|00000c70| 72 77 68 6f 70 0a 58 5b | 0a 58 2e 42 20 5c 2d 61 |rwhop.X[|.X.B \-a|
|00000c80| 68 0a 58 5d 20 5b 5c 66 | 49 75 73 65 72 73 5c 66 |h.X] [\f|Iusers\f|
|00000c90| 52 5d 0a 58 2e 53 48 20 | 44 45 53 43 52 49 50 54 |R].X.SH |DESCRIPT|
|00000ca0| 49 4f 4e 0a 54 68 65 0a | 58 2e 50 4e 20 72 77 68 |ION.The.|X.PN rwh|
|00000cb0| 6f 70 0a 63 6f 6d 6d 61 | 6e 64 20 74 61 6b 65 73 |op.comma|nd takes|
|00000cc0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 66 72 6f 6d | the out|put from|
|00000cd0| 20 72 77 68 6f 28 31 29 | 20 76 69 61 20 61 20 70 | rwho(1)| via a p|
|00000ce0| 69 70 65 20 73 74 72 65 | 61 6d 20 63 6f 6e 6e 65 |ipe stre|am conne|
|00000cf0| 63 74 69 6f 6e 2e 0a 54 | 68 65 20 72 65 74 75 72 |ction..T|he retur|
|00000d00| 6e 65 64 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ned info|rmation |
|00000d10| 69 73 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 74 |is the s|ame as t|
|00000d20| 68 61 74 20 6f 66 20 72 | 77 68 6f 20 77 69 74 68 |hat of r|who with|
|00000d30| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 0a 65 | the fol|lowing.e|
|00000d40| 78 63 65 70 74 69 6f 6e | 73 3a 20 31 29 20 66 75 |xception|s: 1) fu|
|00000d50| 6c 6c 79 20 71 75 61 6c | 69 66 69 65 64 20 68 6f |lly qual|ified ho|
|00000d60| 73 74 20 6e 61 6d 65 73 | 20 61 72 65 20 74 72 75 |st names| are tru|
|00000d70| 6e 63 61 74 65 64 20 74 | 6f 20 74 68 65 20 66 69 |ncated t|o the fi|
|00000d80| 72 73 74 20 6c 65 76 65 | 6c 2e 0a 58 32 29 20 54 |rst leve|l..X2) T|
|00000d90| 68 65 20 75 73 65 72 73 | 27 20 67 65 63 6f 73 20 |he users|' gecos |
|00000da0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 72 |informat|ion is r|
|00000db0| 65 74 72 65 69 76 65 64 | 20 76 69 61 20 74 68 65 |etreived| via the|
|00000dc0| 20 67 65 74 70 77 6e 61 | 6d 28 33 29 20 63 61 6c | getpwna|m(3) cal|
|00000dd0| 6c 2e 0a 54 68 65 20 66 | 69 72 73 74 20 66 69 65 |l..The f|irst fie|
|00000de0| 6c 64 20 6f 66 20 74 68 | 65 20 67 65 63 6f 73 20 |ld of th|e gecos |
|00000df0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 70 |informat|ion is p|
|00000e00| 72 69 6e 74 65 64 20 75 | 6e 20 74 68 65 20 68 65 |rinted u|n the he|
|00000e10| 61 64 69 6e 67 20 6f 66 | 20 27 52 65 61 6c 0a 4e |ading of| 'Real.N|
|00000e20| 61 6d 65 27 0a 58 2e 53 | 48 20 4f 50 54 49 4f 4e |ame'.X.S|H OPTION|
|00000e30| 53 0a 58 2e 49 50 20 5c | 66 42 5c 2d 61 5c 66 52 |S.X.IP \|fB\-a\fR|
|00000e40| 20 32 30 0a 4c 69 73 74 | 73 20 61 6c 6c 20 75 73 | 20.List|s all us|
|00000e50| 65 72 73 2e 20 20 4e 6f | 72 6d 61 6c 6c 79 2c 0a |ers. No|rmally,.|
|00000e60| 58 2e 50 4e 20 72 77 68 | 6f 70 0a 6f 6d 69 74 73 |X.PN rwh|op.omits|
|00000e70| 20 75 73 65 72 73 20 77 | 68 6f 20 68 61 76 65 20 | users w|ho have |
|00000e80| 6e 6f 74 20 74 79 70 65 | 64 20 74 6f 20 74 68 65 |not type|d to the|
|00000e90| 20 73 79 73 74 65 6d 20 | 66 6f 72 20 61 6e 20 68 | system |for an h|
|00000ea0| 6f 75 72 20 6f 72 0a 6d | 6f 72 65 2e 20 20 49 66 |our or.m|ore. If|
|00000eb0| 20 74 68 65 0a 58 2e 42 | 20 5c 2d 61 0a 66 6c 61 | the.X.B| \-a.fla|
|00000ec0| 67 20 69 73 20 73 70 65 | 63 69 66 69 65 64 2c 20 |g is spe|cified, |
|00000ed0| 74 68 65 73 65 20 75 73 | 65 72 73 20 61 72 65 20 |these us|ers are |
|00000ee0| 61 6c 73 6f 20 6c 69 73 | 74 65 64 2e 0a 58 2e 49 |also lis|ted..X.I|
|00000ef0| 50 20 5c 66 42 5c 2d 68 | 5c 66 52 20 32 30 0a 53 |P \fB\-h|\fR 20.S|
|00000f00| 6f 72 74 73 20 75 73 65 | 72 73 20 62 79 20 68 6f |orts use|rs by ho|
|00000f10| 73 74 20 6e 61 6d 65 2e | 20 20 4e 6f 72 6d 61 6c |st name.| Normal|
|00000f20| 6c 79 2c 0a 58 2e 50 4e | 20 72 77 68 6f 70 0a 70 |ly,.X.PN| rwhop.p|
|00000f30| 72 69 6e 74 73 20 69 74 | 73 20 6f 75 74 70 75 74 |rints it|s output|
|00000f40| 20 73 6f 72 74 65 64 20 | 62 79 20 75 73 65 72 20 | sorted |by user |
|00000f50| 6e 61 6d 65 2e 20 20 49 | 66 20 74 68 65 0a 58 2e |name. I|f the.X.|
|00000f60| 42 20 5c 2d 68 0a 66 6c | 61 67 20 69 73 20 73 70 |B \-h.fl|ag is sp|
|00000f70| 65 63 69 66 69 65 64 2c | 20 74 68 65 20 72 65 73 |ecified,| the res|
|00000f80| 75 6c 74 73 20 61 72 65 | 20 73 6f 72 74 65 64 20 |ults are| sorted |
|00000f90| 62 79 20 68 6f 73 74 20 | 6e 61 6d 65 2e 0a 58 2e |by host |name..X.|
|00000fa0| 53 48 20 46 49 4c 45 53 | 0a 58 2f 75 73 72 2f 73 |SH FILES|.X/usr/s|
|00000fb0| 70 6f 6f 6c 2f 72 77 68 | 6f 2f 77 68 6f 64 2e 2a |pool/rwh|o/whod.*|
|00000fc0| 09 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f |.Informa|tion abo|
|00000fd0| 75 74 20 6f 74 68 65 72 | 20 6d 61 63 68 69 6e 65 |ut other| machine|
|00000fe0| 73 0a 58 2e 53 48 20 53 | 45 45 20 41 4c 53 4f 0a |s.X.SH S|EE ALSO.|
|00000ff0| 72 75 70 74 69 6d 65 28 | 31 63 29 2c 20 72 77 68 |ruptime(|1c), rwh|
|00001000| 6f 64 28 38 63 29 0a 58 | 2e 53 48 20 41 55 54 48 |od(8c).X|.SH AUTH|
|00001010| 4f 52 0a 52 6f 62 65 72 | 74 20 44 2e 20 54 68 6f |OR.Rober|t D. Tho|
|00001020| 6d 70 73 6f 6e 20 2d 20 | 43 6f 6c 6f 72 61 64 6f |mpson - |Colorado|
|00001030| 20 53 74 61 74 65 20 55 | 6e 69 76 65 72 73 69 74 | State U|niversit|
|00001040| 79 20 20 44 65 63 65 6d | 62 65 72 20 31 30 2c 20 |y Decem|ber 10, |
|00001050| 31 39 38 39 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |1989.END|_OF_FILE|
|00001060| 0a 69 66 20 74 65 73 74 | 20 31 30 38 33 20 2d 6e |.if test| 1083 -n|
|00001070| 65 20 60 77 63 20 2d 63 | 20 3c 27 72 77 68 6f 70 |e `wc -c| <'rwhop|
|00001080| 2e 6e 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.n'`; th|en. e|
|00001090| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 72 77 68 |cho shar|: \"'rwh|
|000010a0| 6f 70 2e 6e 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |op.n'\" |unpacked|
|000010b0| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|000010c0| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 72 |!.fi.# e|nd of 'r|
|000010d0| 77 68 6f 70 2e 6e 27 0a | 66 69 0a 69 66 20 74 65 |whop.n'.|fi.if te|
|000010e0| 73 74 20 2d 66 20 27 72 | 77 68 6f 70 61 72 73 65 |st -f 'r|whoparse|
|000010f0| 2e 63 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.c' -a "|${1}" !=|
|00001100| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00001110| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00001120| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00001130| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 72 77 68 |ting fil|e \"'rwh|
|00001140| 6f 70 61 72 73 65 2e 63 | 27 5c 22 0a 65 6c 73 65 |oparse.c|'\".else|
|00001150| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00001160| 61 63 74 69 6e 67 20 5c | 22 27 72 77 68 6f 70 61 |acting \|"'rwhopa|
|00001170| 72 73 65 2e 63 27 5c 22 | 20 5c 28 31 30 32 34 20 |rse.c'\"| \(1024 |
|00001180| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00001190| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 72 77 68 6f | "s/^X//|" >'rwho|
|000011a0| 70 61 72 73 65 2e 63 27 | 20 3c 3c 27 45 4e 44 5f |parse.c'| <<'END_|
|000011b0| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 69 6e 63 6c 75 |OF_FILE'|.X#inclu|
|000011c0| 64 65 20 3c 73 74 64 69 | 6f 2e 68 3e 0a 58 23 69 |de <stdi|o.h>.X#i|
|000011d0| 6e 63 6c 75 64 65 20 3c | 70 77 64 2e 68 3e 0a 58 |nclude <|pwd.h>.X|
|000011e0| 23 64 65 66 69 6e 65 20 | 52 57 48 4f 20 22 2f 75 |#define |RWHO "/u|
|000011f0| 73 72 2f 75 63 62 2f 72 | 77 68 6f 20 22 0a 58 0a |sr/ucb/r|who ".X.|
|00001200| 6d 61 69 6e 28 61 72 67 | 63 2c 61 72 67 76 29 0a |main(arg|c,argv).|
|00001210| 69 6e 74 09 61 72 67 63 | 3b 0a 63 68 61 72 09 2a |int.argc|;.char.*|
|00001220| 61 72 67 76 5b 5d 3b 0a | 58 7b 0a 58 09 46 49 4c |argv[];.|X{.X.FIL|
|00001230| 45 09 2a 70 69 70 65 3b | 0a 58 0a 58 09 63 68 61 |E.*pipe;|.X.X.cha|
|00001240| 72 09 72 65 61 6c 5f 6e | 61 6d 65 5b 32 30 5d 2c |r.real_n|ame[20],|
|00001250| 20 69 6e 6c 69 6e 65 5b | 38 30 5d 3b 0a 58 09 63 | inline[|80];.X.c|
|00001260| 68 61 72 09 2a 75 73 65 | 72 2c 20 2a 68 6f 73 74 |har.*use|r, *host|
|00001270| 2c 20 2a 74 69 6d 65 2c | 20 2a 67 65 63 6f 73 2c |, *time,| *gecos,|
|00001280| 20 2a 74 74 79 2c 20 2a | 73 74 72 74 6f 6b 28 29 | *tty, *|strtok()|
|00001290| 3b 0a 58 0a 58 09 72 65 | 67 69 73 74 65 72 20 69 |;.X.X.re|gister i|
|000012a0| 6e 74 20 69 3b 0a 58 0a | 58 09 73 74 72 75 63 74 |nt i;.X.|X.struct|
|000012b0| 09 70 61 73 73 77 64 09 | 2a 70 77 3b 0a 58 0a 58 |.passwd.|*pw;.X.X|
|000012c0| 09 61 72 67 76 2b 2b 3b | 0a 58 09 73 74 72 63 70 |.argv++;|.X.strcp|
|000012d0| 79 28 69 6e 6c 69 6e 65 | 2c 52 57 48 4f 29 3b 0a |y(inline|,RWHO);.|
|000012e0| 58 09 73 74 72 63 61 74 | 28 69 6e 6c 69 6e 65 2c |X.strcat|(inline,|
|000012f0| 2a 61 72 67 76 29 3b 0a | 58 0a 58 09 69 66 20 28 |*argv);.|X.X.if (|
|00001300| 28 70 69 70 65 20 3d 20 | 70 6f 70 65 6e 28 69 6e |(pipe = |popen(in|
|00001310| 6c 69 6e 65 2c 22 72 22 | 29 29 20 3d 3d 20 4e 55 |line,"r"|)) == NU|
|00001320| 4c 4c 29 0a 58 09 09 7b | 0a 58 09 09 66 70 72 69 |LL).X..{|.X..fpri|
|00001330| 6e 74 66 20 28 73 74 64 | 65 72 72 2c 22 42 72 6f |ntf (std|err,"Bro|
|00001340| 6b 65 6e 20 70 69 70 65 | 5c 6e 22 29 3b 0a 58 09 |ken pipe|\n");.X.|
|00001350| 09 65 78 69 74 28 2d 31 | 29 3b 0a 58 09 09 7d 0a |.exit(-1|);.X..}.|
|00001360| 58 09 0a 70 72 69 6e 74 | 66 20 28 22 55 73 65 72 |X..print|f ("User|
|00001370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001380| 20 52 65 61 6c 20 4e 61 | 6d 65 20 20 20 20 20 20 | Real Na|me |
|00001390| 20 20 48 6f 73 74 20 20 | 20 54 54 59 20 20 20 20 | Host | TTY |
|000013a0| 57 68 65 6e 20 20 20 20 | 20 20 20 20 20 49 64 6c |When | Idl|
|000013b0| 65 5c 6e 22 29 3b 0a 58 | 09 66 6f 72 20 28 69 3d |e\n");.X|.for (i=|
|000013c0| 30 3b 69 3c 38 30 3b 69 | 2b 2b 29 20 70 72 69 6e |0;i<80;i|++) prin|
|000013d0| 74 66 20 28 22 2d 22 29 | 3b 0a 58 09 70 72 69 6e |tf ("-")|;.X.prin|
|000013e0| 74 66 20 28 22 5c 6e 22 | 29 3b 0a 58 0a 58 09 77 |tf ("\n"|);.X.X.w|
|000013f0| 68 69 6c 65 20 28 66 67 | 65 74 73 28 69 6e 6c 69 |hile (fg|ets(inli|
|00001400| 6e 65 2c 38 30 2c 70 69 | 70 65 29 20 21 3d 20 4e |ne,80,pi|pe) != N|
|00001410| 55 4c 4c 29 0a 58 09 09 | 7b 0a 58 09 09 75 73 65 |ULL).X..|{.X..use|
|00001420| 72 20 3d 20 73 74 72 74 | 6f 6b 28 69 6e 6c 69 6e |r = strt|ok(inlin|
|00001430| 65 2c 22 20 22 29 3b 0a | 58 09 09 68 6f 73 74 20 |e," ");.|X..host |
|00001440| 3d 20 73 74 72 74 6f 6b | 28 4e 55 4c 4c 2c 22 3a |= strtok|(NULL,":|
|00001450| 22 29 3b 0a 58 09 09 74 | 74 79 20 3d 20 73 74 72 |");.X..t|ty = str|
|00001460| 74 6f 6b 28 4e 55 4c 4c | 2c 22 20 22 29 3b 0a 58 |tok(NULL|," ");.X|
|00001470| 09 09 74 69 6d 65 20 3d | 20 73 74 72 74 6f 6b 28 |..time =| strtok(|
|00001480| 4e 55 4c 4c 2c 22 5c 6e | 22 29 3b 0a 58 0a 58 09 |NULL,"\n|");.X.X.|
|00001490| 09 69 66 20 28 28 70 77 | 20 3d 20 67 65 74 70 77 |.if ((pw| = getpw|
|000014a0| 6e 61 6d 28 75 73 65 72 | 29 29 20 21 3d 20 4e 55 |nam(user|)) != NU|
|000014b0| 4c 4c 29 0a 58 09 09 09 | 7b 0a 58 09 09 09 67 65 |LL).X...|{.X...ge|
|000014c0| 63 6f 73 20 3d 20 73 74 | 72 74 6f 6b 28 70 77 2d |cos = st|rtok(pw-|
|000014d0| 3e 70 77 5f 67 65 63 6f | 73 2c 22 2c 22 29 3b 0a |>pw_geco|s,",");.|
|000014e0| 58 09 09 09 0a 58 09 09 | 09 73 74 72 6e 63 70 79 |X....X..|.strncpy|
|000014f0| 28 72 65 61 6c 5f 6e 61 | 6d 65 2c 67 65 63 6f 73 |(real_na|me,gecos|
|00001500| 2c 32 30 29 3b 0a 58 09 | 09 09 72 65 61 6c 5f 6e |,20);.X.|..real_n|
|00001510| 61 6d 65 5b 32 30 5d 20 | 3d 20 4e 55 4c 4c 3b 0a |ame[20] |= NULL;.|
|00001520| 58 09 09 09 0a 58 09 09 | 09 77 68 69 6c 65 28 74 |X....X..|.while(t|
|00001530| 69 6d 65 5b 30 5d 20 3d | 3d 20 27 20 27 29 20 74 |ime[0] =|= ' ') t|
|00001540| 69 6d 65 2b 2b 3b 0a 58 | 09 09 09 77 68 69 6c 65 |ime++;.X|...while|
|00001550| 28 68 6f 73 74 5b 30 5d | 20 3d 3d 20 27 20 27 29 |(host[0]| == ' ')|
|00001560| 20 68 6f 73 74 2b 2b 3b | 0a 58 09 09 09 0a 58 09 | host++;|.X....X.|
|00001570| 09 09 70 72 69 6e 74 66 | 20 28 22 25 38 73 20 20 |..printf| ("%8s |
|00001580| 25 32 30 73 20 20 25 31 | 30 73 20 20 25 36 73 20 |%20s %1|0s %6s |
|00001590| 20 25 73 5c 6e 22 2c 0a | 58 09 09 09 09 75 73 65 | %s\n",.|X....use|
|000015a0| 72 2c 0a 58 09 09 09 09 | 72 65 61 6c 5f 6e 61 6d |r,.X....|real_nam|
|000015b0| 65 2c 0a 58 09 09 09 09 | 73 74 72 74 6f 6b 28 68 |e,.X....|strtok(h|
|000015c0| 6f 73 74 2c 22 2e 22 29 | 2c 0a 58 09 09 09 09 74 |ost,".")|,.X....t|
|000015d0| 74 79 2c 0a 58 09 09 09 | 09 74 69 6d 65 29 3b 0a |ty,.X...|.time);.|
|000015e0| 58 09 09 09 7d 0a 58 09 | 09 7d 0a 58 7d 0a 45 4e |X...}.X.|.}.X}.EN|
|000015f0| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00001600| 74 20 31 30 32 34 20 2d | 6e 65 20 60 77 63 20 2d |t 1024 -|ne `wc -|
|00001610| 63 20 3c 27 72 77 68 6f | 70 61 72 73 65 2e 63 27 |c <'rwho|parse.c'|
|00001620| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00001630| 20 73 68 61 72 3a 20 5c | 22 27 72 77 68 6f 70 61 | shar: \|"'rwhopa|
|00001640| 72 73 65 2e 63 27 5c 22 | 20 75 6e 70 61 63 6b 65 |rse.c'\"| unpacke|
|00001650| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00001660| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|00001670| 72 77 68 6f 70 61 72 73 | 65 2e 63 27 0a 66 69 0a |rwhopars|e.c'.fi.|
|00001680| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 6e 64 20 6f |echo sha|r: End o|
|00001690| 66 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2e |f shell |archive.|
|000016a0| 0a 65 78 69 74 20 30 0a | 0a |.exit 0.|. |
+--------+-------------------------+-------------------------+--------+--------+