home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / unix / volume03 / rmsecure < prev    next >
SHell self-extracting ARchive  |  1988-09-11  |  5.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: rmsecure

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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 44 49 | 44 45 4c 4f 54 20 41 6e |From: DI|DELOT An|
|00000010| 64 72 65 20 3c 74 61 6c | 63 6f 74 74 21 73 65 69 |dre <tal|cott!sei|
|00000020| 73 6d 6f 21 6d 63 76 61 | 78 21 63 75 69 21 61 6e |smo!mcva|x!cui!an|
|00000030| 64 72 65 3e 0a 53 75 62 | 6a 65 63 74 3a 20 72 6d |dre>.Sub|ject: rm|
|00000040| 73 65 63 75 72 65 20 2d | 20 73 6f 75 72 63 65 20 |secure -| source |
|00000050| 66 6f 72 20 61 20 73 61 | 66 65 20 22 72 6d 22 0a |for a sa|fe "rm".|
|00000060| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 6d 6f 64 2e |Newsgrou|ps: mod.|
|00000070| 73 6f 75 72 63 65 73 0a | 41 70 70 72 6f 76 65 64 |sources.|Approved|
|00000080| 3a 20 6a 70 6e 40 70 61 | 6e 64 61 2e 55 55 43 50 |: jpn@pa|nda.UUCP|
|00000090| 0a 0a 4d 6f 64 2e 73 6f | 75 72 63 65 73 3a 20 20 |..Mod.so|urces: |
|000000a0| 56 6f 6c 75 6d 65 20 33 | 2c 20 49 73 73 75 65 20 |Volume 3|, Issue |
|000000b0| 31 30 33 0a 53 75 62 6d | 69 74 74 65 64 20 62 79 |103.Subm|itted by|
|000000c0| 3a 20 44 49 44 45 4c 4f | 54 20 41 6e 64 72 65 20 |: DIDELO|T Andre |
|000000d0| 3c 74 61 6c 63 6f 74 74 | 21 73 65 69 73 6d 6f 21 |<talcott|!seismo!|
|000000e0| 6d 63 76 61 78 21 63 75 | 69 21 61 6e 64 72 65 3e |mcvax!cu|i!andre>|
|000000f0| 0a 0a 0a 42 65 6c 6f 77 | 20 69 73 20 74 68 65 20 |...Below| is the |
|00000100| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 61 6e 64 |presenta|tion and|
|00000110| 20 74 68 65 20 63 6f 64 | 65 20 6f 66 20 61 20 63 | the cod|e of a c|
|00000120| 6f 6d 6d 61 6e 64 20 77 | 68 69 63 68 20 72 65 70 |ommand w|hich rep|
|00000130| 6c 61 63 65 20 22 72 6d | 22 3b 0a 69 74 20 77 6f |lace "rm|";.it wo|
|00000140| 72 6b 73 20 65 78 61 63 | 74 6c 79 20 74 68 65 20 |rks exac|tly the |
|00000150| 73 61 6d 65 2c 20 65 78 | 63 65 70 74 20 74 68 61 |same, ex|cept tha|
|00000160| 74 20 69 74 20 6a 75 73 | 74 20 61 73 6b 73 20 66 |t it jus|t asks f|
|00000170| 6f 72 20 63 6f 6e 66 69 | 72 6d 61 74 69 6f 6e 20 |or confi|rmation |
|00000180| 77 68 65 6e 0a 69 74 73 | 20 61 72 67 75 6d 65 6e |when.its| argumen|
|00000190| 74 73 20 75 73 65 20 73 | 6f 6d 65 20 77 69 6c 64 |ts use s|ome wild|
|000001a0| 20 63 61 72 64 73 2e 0a | 0a 5b 20 54 68 69 73 20 | cards..|.[ This |
|000001b0| 4f 4e 4c 59 20 77 6f 72 | 6b 73 20 77 69 74 68 20 |ONLY wor|ks with |
|000001c0| 63 73 68 2c 20 62 65 63 | 61 75 73 65 20 69 74 20 |csh, bec|ause it |
|000001d0| 75 73 65 73 20 61 6c 69 | 61 73 65 73 2c 20 61 6e |uses ali|ases, an|
|000001e0| 64 20 69 74 20 6d 61 79 | 20 6f 6e 6c 79 20 77 6f |d it may| only wo|
|000001f0| 72 6b 0a 20 20 77 69 74 | 68 20 74 68 65 20 42 53 |rk. wit|h the BS|
|00000200| 44 34 2e 32 20 6f 72 20 | 62 65 74 74 65 72 20 63 |D4.2 or |better c|
|00000210| 73 68 20 20 20 20 20 20 | 2d 20 4a 6f 68 6e 20 50 |sh |- John P|
|00000220| 2e 20 4e 65 6c 73 6f 6e | 2c 20 6d 6f 64 65 72 61 |. Nelson|, modera|
|00000230| 74 6f 72 20 6d 6f 64 2e | 73 6f 75 72 63 65 73 0a |tor mod.|sources.|
|00000240| 5d 0a 0a 49 20 77 72 6f | 74 65 20 69 74 20 6c 6f |]..I wro|te it lo|
|00000250| 6e 67 20 61 67 6f 2c 20 | 61 66 74 65 72 20 68 61 |ng ago, |after ha|
|00000260| 76 69 6e 67 20 68 61 64 | 20 73 6f 6d 65 20 62 61 |ving had| some ba|
|00000270| 64 20 65 78 70 65 72 69 | 6d 65 6e 74 73 20 77 69 |d experi|ments wi|
|00000280| 74 68 20 63 6f 6e 6a 6f | 6e 63 74 69 6f 6e 0a 6f |th conjo|nction.o|
|00000290| 66 20 6d 69 73 73 74 79 | 70 69 6e 67 20 61 6e 64 |f missty|ping and|
|000002a0| 20 77 69 6c 64 20 63 61 | 72 64 73 20 69 6e 20 74 | wild ca|rds in t|
|000002b0| 68 65 20 75 73 65 20 6f | 66 20 74 68 65 20 75 73 |he use o|f the us|
|000002c0| 75 61 6c 20 22 72 6d 22 | 20 63 6f 6d 6d 61 6e 64 |ual "rm"| command|
|000002d0| 2e 0a 54 68 65 73 65 20 | 61 63 63 69 64 65 6e 74 |..These |accident|
|000002e0| 73 20 74 75 72 6e 65 64 | 20 73 6f 6d 65 74 69 6d |s turned| sometim|
|000002f0| 65 73 20 74 6f 20 64 72 | 61 6d 61 2c 20 65 73 70 |es to dr|ama, esp|
|00000300| 65 63 69 61 6c 6c 79 20 | 77 68 65 6e 20 49 20 77 |ecially |when I w|
|00000310| 61 73 20 6c 65 61 72 6e | 69 6e 67 0a 74 68 65 20 |as learn|ing.the |
|00000320| 28 64 69 66 66 69 63 75 | 6c 74 3f 3a 2d 29 20 6a |(difficu|lt?:-) j|
|00000330| 6f 62 20 6f 66 20 74 68 | 65 20 73 75 70 65 72 75 |ob of th|e superu|
|00000340| 73 65 72 2e 0a 4d 6f 6e | 74 68 73 20 61 6c 6f 6e |ser..Mon|ths alon|
|00000350| 67 2c 20 6f 74 68 65 72 | 20 75 73 65 72 73 20 74 |g, other| users t|
|00000360| 6f 6f 20 65 78 70 65 72 | 69 6d 65 6e 74 65 64 20 |oo exper|imented |
|00000370| 73 75 63 68 20 70 65 72 | 73 6f 6e 6e 61 6c 20 64 |such per|sonnal d|
|00000380| 69 73 61 73 74 65 72 73 | 20 61 6e 64 20 74 68 65 |isasters| and the|
|00000390| 0a 73 61 66 65 20 22 72 | 6d 22 20 67 61 69 6e 65 |.safe "r|m" gaine|
|000003a0| 64 20 70 6f 70 75 6c 61 | 72 69 74 79 20 6f 6e 20 |d popula|rity on |
|000003b0| 6f 75 72 20 73 69 74 65 | 2e 20 57 65 20 68 61 76 |our site|. We hav|
|000003c0| 65 20 6e 6f 77 20 75 73 | 65 64 20 69 74 20 77 69 |e now us|ed it wi|
|000003d0| 74 68 6f 75 74 20 70 72 | 6f 62 6c 65 6d 73 0a 6f |thout pr|oblems.o|
|000003e0| 76 65 72 20 61 20 79 65 | 61 72 2e 0a 0a 49 20 77 |ver a ye|ar...I w|
|000003f0| 6f 75 6c 64 20 62 65 20 | 70 6c 65 61 73 65 64 20 |ould be |pleased |
|00000400| 69 66 20 69 74 20 63 6f | 75 6c 64 20 62 65 20 6f |if it co|uld be o|
|00000410| 66 20 73 6f 6d 65 20 69 | 6e 74 65 72 65 73 74 20 |f some i|nterest |
|00000420| 66 6f 72 20 6f 74 68 65 | 72 20 28 73 75 70 65 72 |for othe|r (super|
|00000430| 29 75 73 65 72 73 2e 0a | 0a 09 41 6e 64 72 65 20 |)users..|..Andre |
|00000440| 44 49 44 45 4c 4f 54 09 | 09 09 09 43 48 55 4e 45 |DIDELOT.|...CHUNE|
|00000450| 54 3a 20 61 6e 64 72 65 | 40 63 75 69 2e 75 6e 69 |T: andre|@cui.uni|
|00000460| 67 65 2e 63 68 75 6e 65 | 74 0a 0a 4d 41 49 4c 3a |ge.chune|t..MAIL:|
|00000470| 09 43 65 6e 74 72 65 20 | 55 6e 69 76 65 72 73 69 |.Centre |Universi|
|00000480| 74 61 69 72 65 20 64 27 | 49 6e 66 6f 72 6d 61 74 |taire d'|Informat|
|00000490| 69 71 75 65 09 55 55 43 | 50 3a 09 6d 63 76 61 78 |ique.UUC|P:.mcvax|
|000004a0| 21 63 65 72 6e 76 61 78 | 21 63 75 69 21 61 6e 64 |!cernvax|!cui!and|
|000004b0| 72 65 0a 09 55 6e 69 76 | 65 72 73 69 74 65 20 64 |re..Univ|ersite d|
|000004c0| 65 20 47 65 6e 65 76 65 | 09 09 09 09 6d 63 76 61 |e Geneve|....mcva|
|000004d0| 78 21 63 65 72 6e 76 61 | 78 21 63 75 69 21 72 6f |x!cernva|x!cui!ro|
|000004e0| 6f 74 0a 09 52 75 65 20 | 64 75 20 47 65 6e 65 72 |ot..Rue |du Gener|
|000004f0| 61 6c 20 44 75 66 6f 75 | 72 20 32 34 0a 09 43 48 |al Dufou|r 24..CH|
|00000500| 20 2d 20 31 32 31 31 20 | 47 45 4e 45 56 45 20 34 | - 1211 |GENEVE 4|
|00000510| 09 09 09 42 49 54 4e 45 | 54 3a 20 44 49 44 45 4c |...BITNE|T: DIDEL|
|00000520| 4f 54 40 43 47 45 55 47 | 45 35 31 0a 09 53 57 49 |OT@CGEUG|E51..SWI|
|00000530| 54 5a 45 52 4c 41 4e 44 | 09 09 09 09 09 53 59 53 |TZERLAND|.....SYS|
|00000540| 54 45 4d 40 43 47 45 55 | 47 45 35 31 0a 0a 0a 3d |TEM@CGEU|GE51...=|
|00000550| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000560| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000570| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000580| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000590| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 23 |========|======.#|
|000005a0| 21 20 2f 62 69 6e 2f 73 | 68 0a 23 20 54 68 69 73 |! /bin/s|h.# This|
|000005b0| 20 69 73 20 61 20 73 68 | 65 6c 6c 20 61 72 63 68 | is a sh|ell arch|
|000005c0| 69 76 65 2c 20 6d 65 61 | 6e 69 6e 67 3a 0a 23 20 |ive, mea|ning:.# |
|000005d0| 31 2e 20 52 65 6d 6f 76 | 65 20 65 76 65 72 79 74 |1. Remov|e everyt|
|000005e0| 68 69 6e 67 20 61 62 6f | 76 65 20 74 68 65 20 23 |hing abo|ve the #|
|000005f0| 21 20 2f 62 69 6e 2f 73 | 68 20 6c 69 6e 65 2e 0a |! /bin/s|h line..|
|00000600| 23 20 32 2e 20 53 61 76 | 65 20 74 68 65 20 72 65 |# 2. Sav|e the re|
|00000610| 73 75 6c 74 69 6e 67 20 | 74 65 78 74 20 69 6e 20 |sulting |text in |
|00000620| 61 20 66 69 6c 65 2e 0a | 23 20 33 2e 20 45 78 65 |a file..|# 3. Exe|
|00000630| 63 75 74 65 20 74 68 65 | 20 66 69 6c 65 20 77 69 |cute the| file wi|
|00000640| 74 68 20 2f 62 69 6e 2f | 73 68 20 28 6e 6f 74 20 |th /bin/|sh (not |
|00000650| 63 73 68 29 20 74 6f 20 | 63 72 65 61 74 65 20 74 |csh) to |create t|
|00000660| 68 65 20 66 69 6c 65 73 | 3a 0a 23 09 72 6d 73 65 |he files|:.#.rmse|
|00000670| 63 75 72 65 2e 64 6f 63 | 0a 23 09 72 6d 73 65 63 |cure.doc|.#.rmsec|
|00000680| 75 72 65 2e 63 73 68 0a | 23 20 54 68 69 73 20 61 |ure.csh.|# This a|
|00000690| 72 63 68 69 76 65 20 63 | 72 65 61 74 65 64 3a 20 |rchive c|reated: |
|000006a0| 57 65 64 20 46 65 62 20 | 20 35 20 31 38 3a 33 39 |Wed Feb | 5 18:39|
|000006b0| 3a 31 33 20 31 39 38 36 | 0a 65 78 70 6f 72 74 20 |:13 1986|.export |
|000006c0| 50 41 54 48 3b 20 50 41 | 54 48 3d 2f 62 69 6e 3a |PATH; PA|TH=/bin:|
|000006d0| 24 50 41 54 48 0a 65 63 | 68 6f 20 73 68 61 72 3a |$PATH.ec|ho shar:|
|000006e0| 20 65 78 74 72 61 63 74 | 69 6e 67 20 22 27 72 6d | extract|ing "'rm|
|000006f0| 73 65 63 75 72 65 2e 64 | 6f 63 27 22 20 27 28 31 |secure.d|oc'" '(1|
|00000700| 38 39 33 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |893 char|acters)'|
|00000710| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 72 6d 73 |.if test| -f 'rms|
|00000720| 65 63 75 72 65 2e 64 6f | 63 27 0a 74 68 65 6e 0a |ecure.do|c'.then.|
|00000730| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c |.echo sh|ar: will|
|00000740| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00000750| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|00000760| 72 6d 73 65 63 75 72 65 | 2e 64 6f 63 27 22 0a 65 |rmsecure|.doc'".e|
|00000770| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|00000780| 5f 45 4f 46 20 3e 20 27 | 72 6d 73 65 63 75 72 65 |_EOF > '|rmsecure|
|00000790| 2e 64 6f 63 27 0a 41 64 | 64 69 6e 67 20 73 65 63 |.doc'.Ad|ding sec|
|000007a0| 75 72 69 74 79 20 77 68 | 65 6e 20 72 65 6d 6f 76 |urity wh|en remov|
|000007b0| 69 6e 67 20 66 69 6c 65 | 73 3a 0a 2d 2d 2d 2d 2d |ing file|s:.-----|
|000007c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|000007e0| 0a 44 45 53 43 52 49 50 | 54 49 4f 4e 3a 0a 2d 2d |.DESCRIP|TION:.--|
|000007f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 57 69 74 68 20 |--------|--.With |
|00000800| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 22 72 6d |the stan|dard "rm|
|00000810| 22 2c 20 6e 6f 20 63 6f | 6e 66 69 72 6d 61 74 69 |", no co|nfirmati|
|00000820| 6f 6e 20 69 73 20 61 73 | 6b 65 64 20 77 68 65 6e |on is as|ked when|
|00000830| 20 75 73 69 6e 67 20 77 | 69 6c 64 20 63 61 72 64 | using w|ild card|
|00000840| 73 3b 0a 79 6f 75 20 73 | 75 72 65 6c 79 20 6f 6e |s;.you s|urely on|
|00000850| 63 65 20 65 78 70 65 72 | 69 65 6e 63 65 64 20 74 |ce exper|ienced t|
|00000860| 68 61 74 20 74 68 69 73 | 20 6d 61 79 20 62 65 20 |hat this| may be |
|00000870| 72 65 61 6c 6c 79 20 63 | 61 74 61 73 74 72 6f 70 |really c|atastrop|
|00000880| 68 69 63 2e 0a 49 66 20 | 6e 6f 74 2c 20 74 68 69 |hic..If |not, thi|
|00000890| 6e 6b 20 61 62 6f 75 74 | 20 61 20 6d 69 73 73 74 |nk about| a misst|
|000008a0| 79 70 69 6e 67 20 6c 69 | 6b 65 20 22 72 6d 20 2a |yping li|ke "rm *|
|000008b0| 20 42 41 4b 22 20 69 6e | 73 74 65 61 64 20 6f 66 | BAK" in|stead of|
|000008c0| 20 22 72 6d 20 2a 42 41 | 4b 22 20 21 21 21 0a 0a | "rm *BA|K" !!!..|
|000008d0| 41 20 6e 65 77 20 63 6f | 6d 6d 61 6e 64 2c 20 22 |A new co|mmand, "|
|000008e0| 72 6d 73 65 63 75 72 65 | 22 2c 20 6d 61 79 20 70 |rmsecure|", may p|
|000008f0| 72 65 76 65 6e 74 20 74 | 68 69 73 20 62 79 20 61 |revent t|his by a|
|00000900| 73 6b 69 6e 67 20 66 6f | 72 20 61 20 63 6f 6e 66 |sking fo|r a conf|
|00000910| 69 72 6d 61 74 69 6f 6e | 0a 62 65 66 6f 72 65 20 |irmation|.before |
|00000920| 72 65 6d 6f 76 69 6e 67 | 20 61 6e 79 20 66 69 6c |removing| any fil|
|00000930| 65 20 77 68 6f 73 65 20 | 6e 61 6d 65 20 69 73 73 |e whose |name iss|
|00000940| 75 65 64 20 66 72 6f 6d | 20 61 20 77 69 6c 64 20 |ued from| a wild |
|00000950| 63 61 72 64 20 65 78 70 | 61 6e 73 69 6f 6e 2e 0a |card exp|ansion..|
|00000960| 0a 54 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 77 6f |.This co|mmand wo|
|00000970| 72 6b 73 20 61 20 62 69 | 74 20 73 6c 6f 77 65 72 |rks a bi|t slower|
|00000980| 20 74 68 61 6e 20 74 68 | 65 20 75 73 75 61 6c 20 | than th|e usual |
|00000990| 22 72 6d 22 2c 20 62 75 | 74 20 69 73 20 72 65 61 |"rm", bu|t is rea|
|000009a0| 6c 6c 79 20 73 61 66 65 | 72 20 21 0a 0a 0a 55 53 |lly safe|r !...US|
|000009b0| 45 3a 0a 2d 2d 2d 0a 54 | 6f 20 75 73 65 20 69 74 |E:.---.T|o use it|
|000009c0| 2c 20 79 6f 75 20 4d 55 | 53 54 20 63 72 65 61 74 |, you MU|ST creat|
|000009d0| 65 20 61 20 73 70 65 63 | 69 61 6c 20 61 6c 69 61 |e a spec|ial alia|
|000009e0| 73 20 6c 69 6b 65 20 74 | 68 69 73 20 6f 6e 65 3a |s like t|his one:|
|000009f0| 0a 0a 09 61 6c 69 61 73 | 20 72 6d 20 27 28 73 65 |...alias| rm '(se|
|00000a00| 74 20 6e 6f 67 6c 6f 62 | 3b 20 72 6d 73 65 63 75 |t noglob|; rmsecu|
|00000a10| 72 65 20 5c 21 2a 29 27 | 0a 0a 69 6e 20 6f 72 64 |re \!*)'|..in ord|
|00000a20| 65 72 20 74 6f 20 70 72 | 65 76 65 6e 74 20 66 6f |er to pr|event fo|
|00000a30| 72 6d 65 72 20 77 69 6c | 64 20 63 61 72 64 73 20 |rmer wil|d cards |
|00000a40| 65 78 70 61 6e 73 69 6f | 6e 20 62 79 20 74 68 65 |expansio|n by the|
|00000a50| 20 73 68 65 6c 6c 2e 0a | 0a 57 68 65 6e 20 75 73 | shell..|.When us|
|00000a60| 65 64 2c 20 61 6e 79 20 | 6c 69 73 74 20 6f 66 20 |ed, any |list of |
|00000a70| 66 69 6c 65 73 20 72 65 | 73 75 6c 74 69 6e 67 20 |files re|sulting |
|00000a80| 66 72 6f 6d 20 61 20 77 | 69 6c 64 20 63 61 72 64 |from a w|ild card|
|00000a90| 20 65 78 70 61 6e 73 69 | 6f 6e 20 77 69 6c 6c 20 | expansi|on will |
|00000aa0| 62 65 0a 61 73 6b 65 64 | 20 67 6c 6f 62 61 6c 6c |be.asked| globall|
|00000ab0| 79 20 66 6f 72 20 63 6f | 6e 66 69 72 6d 61 74 69 |y for co|nfirmati|
|00000ac0| 6f 6e 20 70 72 69 6f 72 | 20 74 6f 20 64 65 6c 65 |on prior| to dele|
|00000ad0| 74 69 6f 6e 3b 20 69 66 | 20 61 6e 73 77 65 72 20 |tion; if| answer |
|00000ae0| 69 73 20 6e 65 67 61 74 | 69 76 65 2c 0a 65 61 63 |is negat|ive,.eac|
|00000af0| 68 20 66 69 6c 65 20 69 | 6e 20 74 68 65 20 65 78 |h file i|n the ex|
|00000b00| 70 61 6e 64 65 64 20 6c | 69 73 74 20 77 69 6c 6c |panded l|ist will|
|00000b10| 20 62 65 20 70 72 6f 6d | 70 74 65 64 20 73 65 70 | be prom|pted sep|
|00000b20| 61 72 61 74 6c 79 2c 20 | 6c 69 6b 65 20 74 68 65 |aratly, |like the|
|00000b30| 20 22 2d 69 22 0a 6f 70 | 74 69 6f 6e 20 6f 66 20 | "-i".op|tion of |
|00000b40| 75 73 75 61 6c 20 22 72 | 6d 22 2e 0a 0a 41 73 20 |usual "r|m"...As |
|00000b50| 72 65 65 6c 20 64 65 6c | 65 74 69 6f 6e 20 74 61 |reel del|etion ta|
|00000b60| 6b 65 20 70 6c 61 63 65 | 20 6f 6e 6c 79 20 6a 75 |ke place| only ju|
|00000b70| 73 74 20 62 65 66 6f 72 | 65 20 63 6f 6d 70 6c 65 |st befor|e comple|
|00000b80| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 63 6f 6d 6d |tion of |the comm|
|00000b90| 61 6e 64 2c 0a 74 68 69 | 73 20 6f 6e 65 20 63 61 |and,.thi|s one ca|
|00000ba0| 6e 20 62 65 20 73 61 66 | 65 6c 79 20 69 6e 74 65 |n be saf|ely inte|
|00000bb0| 72 72 75 70 74 65 64 20 | 61 74 20 61 6e 79 20 74 |rrupted |at any t|
|00000bc0| 69 6d 65 20 69 66 20 6e | 65 63 65 73 73 61 72 79 |ime if n|ecessary|
|00000bd0| 3b 20 69 6e 20 74 68 69 | 73 20 63 61 73 65 2c 0a |; in thi|s case,.|
|00000be0| 6e 6f 20 66 69 6c 65 20 | 77 69 6c 6c 20 62 65 20 |no file |will be |
|00000bf0| 72 65 6d 6f 76 65 64 2e | 0a 0a 0a 57 41 52 4e 49 |removed.|...WARNI|
|00000c00| 4e 47 3a 0a 2d 2d 2d 2d | 2d 2d 2d 2d 0a 46 69 6c |NG:.----|----.Fil|
|00000c10| 65 73 20 77 68 6f 73 65 | 20 6e 61 6d 65 20 69 73 |es whose| name is|
|00000c20| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 73 70 65 63 | complet|ely spec|
|00000c30| 69 66 69 65 64 20 77 6f | 6e 27 74 20 62 65 20 61 |ified wo|n't be a|
|00000c40| 73 6b 65 64 20 66 6f 72 | 20 63 6f 6e 66 69 72 6d |sked for| confirm|
|00000c50| 61 74 69 6f 6e 2c 0a 65 | 76 65 6e 20 69 66 20 74 |ation,.e|ven if t|
|00000c60| 68 65 79 20 61 70 70 65 | 61 72 20 62 65 74 77 65 |hey appe|ar betwe|
|00000c70| 65 6e 20 6f 74 68 65 72 | 20 61 72 67 75 6d 65 6e |en other| argumen|
|00000c80| 74 73 20 75 73 69 6e 67 | 20 77 69 6c 64 20 63 61 |ts using| wild ca|
|00000c90| 72 64 73 2e 0a 0a 0a 4c | 49 4d 49 54 53 3a 0a 2d |rds....L|IMITS:.-|
|00000ca0| 2d 2d 2d 2d 2d 2d 0a 20 | 2d 20 61 73 20 61 6c 6c |------. |- as all|
|00000cb0| 20 65 78 70 61 6e 64 65 | 64 20 66 69 6c 65 20 6e | expande|d file n|
|00000cc0| 61 6d 65 73 20 61 72 65 | 20 63 6f 6e 63 61 74 65 |ames are| concate|
|00000cd0| 6e 65 64 20 77 69 74 68 | 69 6e 20 6f 6e 65 20 75 |ned with|in one u|
|00000ce0| 6e 69 71 75 65 20 73 74 | 72 69 6e 67 2c 0a 20 20 |nique st|ring,. |
|00000cf0| 20 63 6f 6d 6d 61 6e 64 | 20 63 61 6e 20 66 61 69 | command| can fai|
|00000d00| 6c 20 64 75 65 20 74 6f | 20 6c 69 6d 69 74 61 74 |l due to| limitat|
|00000d10| 69 6f 6e 20 6f 66 20 73 | 68 65 6c 6c 20 76 61 72 |ion of s|hell var|
|00000d20| 69 61 62 6c 65 20 6c 65 | 6e 67 74 68 2e 0a 20 20 |iable le|ngth.. |
|00000d30| 20 54 6f 20 6f 76 65 72 | 63 6f 6d 65 20 74 68 69 | To over|come thi|
|00000d40| 73 2c 20 6a 75 73 74 20 | 73 65 6c 65 63 74 20 6e |s, just |select n|
|00000d50| 61 72 72 6f 77 65 64 20 | 72 61 6e 67 65 2e 0a 0a |arrowed |range...|
|00000d60| 20 2d 20 64 75 65 20 74 | 6f 20 73 75 63 63 65 73 | - due t|o succes|
|00000d70| 73 69 76 65 20 65 76 61 | 6c 75 61 74 69 6f 6e 73 |sive eva|luations|
|00000d80| 2c 20 61 6e 79 20 71 75 | 6f 74 65 73 20 6f 72 20 |, any qu|otes or |
|00000d90| 64 6f 75 62 6c 65 20 71 | 75 6f 74 65 73 20 77 69 |double q|uotes wi|
|00000da0| 6c 6c 20 62 65 20 6c 6f | 73 74 3b 0a 20 20 20 72 |ll be lo|st;. r|
|00000db0| 65 6d 6f 76 69 6e 67 20 | 66 69 6c 65 73 20 77 69 |emoving |files wi|
|00000dc0| 74 68 20 22 73 74 72 61 | 6e 67 65 22 20 6e 61 6d |th "stra|nge" nam|
|00000dd0| 65 73 20 73 68 6f 75 6c | 64 20 62 65 20 64 6f 6e |es shoul|d be don|
|00000de0| 65 20 77 69 74 68 20 74 | 68 65 20 73 74 61 6e 64 |e with t|he stand|
|00000df0| 61 72 64 20 22 72 6d 22 | 0a 20 20 20 63 6f 6d 6d |ard "rm"|. comm|
|00000e00| 61 6e 64 20 75 73 69 6e | 67 20 74 68 65 20 22 2d |and usin|g the "-|
|00000e10| 69 22 20 6f 70 74 69 6f | 6e 20 77 69 74 68 20 61 |i" optio|n with a|
|00000e20| 20 22 2a 22 20 77 69 6c | 64 20 63 61 72 64 2e 0a | "*" wil|d card..|
|00000e30| 0a 20 2d 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |. - the |followin|
|00000e40| 67 20 76 65 72 73 69 6f | 6e 20 69 73 20 72 75 6e |g versio|n is run|
|00000e50| 6e 69 6e 67 20 70 65 72 | 66 65 63 74 6c 79 20 77 |ning per|fectly w|
|00000e60| 69 74 68 20 43 73 68 65 | 6c 6c 20 6f 66 20 34 2e |ith Cshe|ll of 4.|
|00000e70| 32 20 62 73 64 3b 0a 20 | 20 20 70 72 6f 62 6c 65 |2 bsd;. | proble|
|00000e80| 6d 73 20 77 65 72 65 20 | 65 6e 63 6f 75 6e 74 65 |ms were |encounte|
|00000e90| 72 65 64 20 74 72 79 69 | 6e 67 20 74 6f 20 72 75 |red tryi|ng to ru|
|00000ea0| 6e 20 69 74 20 6f 6e 20 | 55 6e 69 73 6f 66 74 20 |n it on |Unisoft |
|00000eb0| 53 79 73 74 65 6d 20 49 | 49 49 2c 0a 20 20 20 70 |System I|II,. p|
|00000ec0| 72 6f 62 61 62 6c 79 20 | 64 75 65 20 74 6f 20 73 |robably |due to s|
|00000ed0| 6f 6d 65 20 6c 69 6d 69 | 74 61 74 69 6f 6e 20 6f |ome limi|tation o|
|00000ee0| 66 20 74 68 65 20 43 73 | 68 65 6c 6c 20 69 6d 70 |f the Cs|hell imp|
|00000ef0| 6c 65 6d 65 6e 74 65 64 | 2e 0a 0a 53 48 41 52 5f |lemented|...SHAR_|
|00000f00| 45 4f 46 0a 69 66 20 74 | 65 73 74 20 31 38 39 33 |EOF.if t|est 1893|
|00000f10| 20 2d 6e 65 20 22 60 77 | 63 20 2d 63 20 3c 20 27 | -ne "`w|c -c < '|
|00000f20| 72 6d 73 65 63 75 72 65 | 2e 64 6f 63 27 60 22 0a |rmsecure|.doc'`".|
|00000f30| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00000f40| 20 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 | error t|ransmitt|
|00000f50| 69 6e 67 20 22 27 72 6d | 73 65 63 75 72 65 2e 64 |ing "'rm|secure.d|
|00000f60| 6f 63 27 22 20 27 28 73 | 68 6f 75 6c 64 20 68 61 |oc'" '(s|hould ha|
|00000f70| 76 65 20 62 65 65 6e 20 | 31 38 39 33 20 63 68 61 |ve been |1893 cha|
|00000f80| 72 61 63 74 65 72 73 29 | 27 0a 66 69 0a 66 69 0a |racters)|'.fi.fi.|
|00000f90| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 78 74 72 61 |echo sha|r: extra|
|00000fa0| 63 74 69 6e 67 20 22 27 | 72 6d 73 65 63 75 72 65 |cting "'|rmsecure|
|00000fb0| 2e 63 73 68 27 22 20 27 | 28 31 30 36 36 20 63 68 |.csh'" '|(1066 ch|
|00000fc0| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|00000fd0| 73 74 20 2d 66 20 27 72 | 6d 73 65 63 75 72 65 2e |st -f 'r|msecure.|
|00000fe0| 63 73 68 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |csh'.the|n..echo |
|00000ff0| 73 68 61 72 3a 20 77 69 | 6c 6c 20 6e 6f 74 20 6f |shar: wi|ll not o|
|00001000| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00001010| 6e 67 20 66 69 6c 65 20 | 22 27 72 6d 73 65 63 75 |ng file |"'rmsecu|
|00001020| 72 65 2e 63 73 68 27 22 | 0a 65 6c 73 65 0a 63 61 |re.csh'"|.else.ca|
|00001030| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00001040| 20 27 72 6d 73 65 63 75 | 72 65 2e 63 73 68 27 0a | 'rmsecu|re.csh'.|
|00001050| 23 21 20 2f 62 69 6e 2f | 63 73 68 20 2d 66 0a 23 |#! /bin/|csh -f.#|
|00001060| 20 63 73 68 20 73 63 72 | 69 70 74 20 3b 20 73 65 | csh scr|ipt ; se|
|00001070| 63 75 72 65 20 72 65 6d | 6f 76 65 20 6f 66 20 66 |cure rem|ove of f|
|00001080| 69 6c 65 73 0a 6f 6e 69 | 6e 74 72 20 6f 75 74 0a |iles.oni|ntr out.|
|00001090| 73 65 74 20 69 6e 74 65 | 72 61 63 74 0a 73 65 74 |set inte|ract.set|
|000010a0| 20 66 6f 72 63 65 0a 73 | 65 74 20 72 65 63 75 72 | force.s|et recur|
|000010b0| 0a 73 65 74 20 6d 69 6e | 75 73 0a 77 68 69 6c 65 |.set min|us.while|
|000010c0| 20 28 22 24 31 22 20 3d | 3d 20 22 2d 22 20 7c 7c | ("$1" =|= "-" |||
|000010d0| 20 22 24 31 22 20 3d 7e | 20 2d 5b 66 2c 69 2c 72 | "$1" =~| -[f,i,r|
|000010e0| 5d 29 0a 20 20 20 20 73 | 77 69 74 63 68 20 28 24 |]). s|witch ($|
|000010f0| 31 29 0a 09 63 61 73 65 | 20 2d 69 3a 20 0a 09 20 |1)..case| -i: .. |
|00001100| 20 20 20 73 65 74 20 69 | 6e 74 65 72 61 63 74 3d | set i|nteract=|
|00001110| 2d 69 0a 09 20 20 20 20 | 73 68 69 66 74 0a 09 20 |-i.. |shift.. |
|00001120| 20 20 20 62 72 65 61 6b | 73 77 0a 09 63 61 73 65 | break|sw..case|
|00001130| 20 2d 66 3a 20 0a 09 20 | 20 20 20 73 65 74 20 66 | -f: .. | set f|
|00001140| 6f 72 63 65 3d 2d 66 0a | 09 20 20 20 20 73 68 69 |orce=-f.|. shi|
|00001150| 66 74 0a 09 20 20 20 20 | 62 72 65 61 6b 73 77 0a |ft.. |breaksw.|
|00001160| 09 63 61 73 65 20 2d 72 | 3a 20 0a 09 20 20 20 20 |.case -r|: .. |
|00001170| 73 65 74 20 72 65 63 75 | 72 3d 2d 72 0a 09 20 20 |set recu|r=-r.. |
|00001180| 20 20 73 68 69 66 74 0a | 09 20 20 20 20 62 72 65 | shift.|. bre|
|00001190| 61 6b 73 77 0a 09 63 61 | 73 65 20 20 2d 3a 20 0a |aksw..ca|se -: .|
|000011a0| 09 20 20 20 20 73 65 74 | 20 6d 69 6e 75 73 3d 2d |. set| minus=-|
|000011b0| 0a 09 20 20 20 20 73 68 | 69 66 74 0a 09 20 20 20 |.. sh|ift.. |
|000011c0| 20 62 72 65 61 6b 0a 20 | 20 20 20 65 6e 64 73 77 | break. | endsw|
|000011d0| 0a 65 6e 64 0a 69 66 20 | 28 24 69 6e 74 65 72 61 |.end.if |($intera|
|000011e0| 63 74 20 3d 3d 20 2d 69 | 29 20 74 68 65 6e 0a 20 |ct == -i|) then. |
|000011f0| 20 20 20 2f 62 69 6e 2f | 72 6d 20 2d 69 20 24 66 | /bin/|rm -i $f|
|00001200| 6f 72 63 65 20 24 72 65 | 63 75 72 20 24 6d 69 6e |orce $re|cur $min|
|00001210| 75 73 20 24 2a 0a 20 20 | 20 20 65 78 69 74 28 24 |us $*. | exit($|
|00001220| 73 74 61 74 75 73 29 0a | 65 6e 64 69 66 0a 73 65 |status).|endif.se|
|00001230| 74 20 66 31 3d 60 65 63 | 68 6f 20 24 30 60 0a 73 |t f1=`ec|ho $0`.s|
|00001240| 65 74 20 66 31 3d 24 66 | 31 3a 74 22 20 3a 20 72 |et f1=$f|1:t" : r|
|00001250| 65 6d 6f 76 65 22 0a 73 | 65 74 20 72 0a 77 68 69 |emove".s|et r.whi|
|00001260| 6c 65 20 28 22 24 31 22 | 20 21 3d 20 27 27 29 0a |le ("$1"| != '').|
|00001270| 20 20 20 20 73 65 74 20 | 62 3d 60 65 63 68 6f 20 | set |b=`echo |
|00001280| 24 31 60 0a 20 20 20 20 | 69 66 20 28 22 24 62 22 |$1`. |if ("$b"|
|00001290| 20 21 3d 20 27 27 29 20 | 74 68 65 6e 0a 09 73 65 | != '') |then..se|
|000012a0| 74 20 6e 6f 67 6c 6f 62 | 0a 09 73 65 74 20 61 3d |t noglob|..set a=|
|000012b0| 24 31 0a 09 75 6e 73 65 | 74 20 6e 6f 67 6c 6f 62 |$1..unse|t noglob|
|000012c0| 0a 09 69 66 20 28 22 24 | 61 22 20 3d 3d 20 22 24 |..if ("$|a" == "$|
|000012d0| 62 22 29 20 74 68 65 6e | 0a 09 20 20 20 20 73 65 |b") then|.. se|
|000012e0| 74 20 72 3d 22 24 72 20 | 24 62 22 0a 09 65 6c 73 |t r="$r |$b"..els|
|000012f0| 65 0a 09 20 20 20 20 69 | 66 20 28 24 23 62 20 3d |e.. i|f ($#b =|
|00001300| 3d 20 31 29 20 74 68 65 | 6e 0a 09 09 65 63 68 6f |= 1) the|n...echo|
|00001310| 20 2d 6e 20 24 66 31 20 | 24 62 20 27 3f 20 27 0a | -n $f1 |$b '? '.|
|00001320| 09 09 69 66 20 28 20 24 | 3c 20 3d 3d 20 22 79 22 |..if ( $|< == "y"|
|00001330| 20 29 20 74 68 65 6e 0a | 09 09 20 20 20 20 73 65 | ) then.|.. se|
|00001340| 74 20 72 3d 22 24 72 20 | 24 62 22 0a 09 09 65 6e |t r="$r |$b"...en|
|00001350| 64 69 66 0a 09 20 20 20 | 20 65 6c 73 65 0a 09 09 |dif.. | else...|
|00001360| 65 63 68 6f 20 2d 6e 20 | 24 66 31 20 24 62 20 27 |echo -n |$f1 $b '|
|00001370| 3f 20 27 7c 20 66 6f 6c | 64 0a 09 09 69 66 20 28 |? '| fol|d...if (|
|00001380| 20 24 3c 20 3d 3d 20 22 | 79 22 20 29 20 74 68 65 | $< == "|y" ) the|
|00001390| 6e 0a 09 09 20 20 20 20 | 73 65 74 20 72 3d 22 24 |n... |set r="$|
|000013a0| 72 20 24 62 22 0a 09 09 | 65 6c 73 65 0a 09 09 20 |r $b"...|else... |
|000013b0| 20 20 20 66 6f 72 65 61 | 63 68 20 6e 20 28 24 62 | forea|ch n ($b|
|000013c0| 29 0a 09 09 09 65 63 68 | 6f 20 2d 6e 20 24 66 31 |)....ech|o -n $f1|
|000013d0| 20 24 6e 20 27 3f 20 27 | 0a 09 09 09 69 66 20 28 | $n '? '|....if (|
|000013e0| 20 24 3c 20 3d 3d 20 22 | 79 22 20 29 20 74 68 65 | $< == "|y" ) the|
|000013f0| 6e 0a 09 09 09 20 20 20 | 20 73 65 74 20 72 3d 22 |n.... | set r="|
|00001400| 24 72 20 24 6e 22 0a 09 | 09 09 65 6e 64 69 66 0a |$r $n"..|..endif.|
|00001410| 09 09 20 20 20 20 65 6e | 64 0a 09 09 65 6e 64 69 |.. en|d...endi|
|00001420| 66 0a 09 20 20 20 20 65 | 6e 64 69 66 0a 09 65 6e |f.. e|ndif..en|
|00001430| 64 69 66 0a 20 20 20 20 | 65 6e 64 69 66 0a 20 20 |dif. |endif. |
|00001440| 20 20 73 68 69 66 74 0a | 65 6e 64 0a 2f 62 69 6e | shift.|end./bin|
|00001450| 2f 72 6d 20 24 66 6f 72 | 63 65 20 24 72 65 63 75 |/rm $for|ce $recu|
|00001460| 72 20 24 6d 69 6e 75 73 | 20 24 72 0a 6f 75 74 3a |r $minus| $r.out:|
|00001470| 20 0a 65 78 69 74 28 30 | 29 0a 53 48 41 52 5f 45 | .exit(0|).SHAR_E|
|00001480| 4f 46 0a 69 66 20 74 65 | 73 74 20 31 30 36 36 20 |OF.if te|st 1066 |
|00001490| 2d 6e 65 20 22 60 77 63 | 20 2d 63 20 3c 20 27 72 |-ne "`wc| -c < 'r|
|000014a0| 6d 73 65 63 75 72 65 2e | 63 73 68 27 60 22 0a 74 |msecure.|csh'`".t|
|000014b0| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000014c0| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|000014d0| 6e 67 20 22 27 72 6d 73 | 65 63 75 72 65 2e 63 73 |ng "'rms|ecure.cs|
|000014e0| 68 27 22 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |h'" '(sh|ould hav|
|000014f0| 65 20 62 65 65 6e 20 31 | 30 36 36 20 63 68 61 72 |e been 1|066 char|
|00001500| 61 63 74 65 72 73 29 27 | 0a 66 69 0a 66 69 0a 65 |acters)'|.fi.fi.e|
|00001510| 78 69 74 20 30 0a 23 09 | 45 6e 64 20 6f 66 20 73 |xit 0.#.|End of s|
|00001520| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 0a |hell arc|hive. |
+--------+-------------------------+-------------------------+--------+--------+