Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bbn!rochester!udel!mmdf From: cox%v70nl.decnet@nusc.arpa (V70NL::COX) Newsgroups: comp.os.minix Subject: Re: A (general) word about getting new patches with the SHAR files. Message-ID: <773@louie.udel.EDU> Date: Fri, 4-Dec-87 12:36:52 EST Article-I.D.: louie.773 Posted: Fri Dec 4 12:36:52 1987 Date-Received: Wed, 9-Dec-87 04:37:05 EST Sender: mmdf@udel.EDU Lines: 24 For those people having problems extracting shar archives within MINIX, there is another alternative to obtaining sed or simply hacking the archive apart. The grep command will do the same thing that sed does in the context of a shar archive. You also need to modify the arguments to chmod in the archive (unless you are using the modified chmod) since chmod only accepts numeric arguments. The following method does the trick. Create a file (fix.sh) containing the line: gres "sed 's/\^X//'" "gres '^X' ''" $1 | gres "'u=rw,g=r,o=r'" 644 >$1.new Then, typing "sh fix.sh archive" creates archive.new which uses gres instead of sed, and works with the old chmod. One requirement for fix.sh to work is the version 1.2 shell. When I used the 1.1 shell, gres couldn't recognize the \^ sequence properly. If this is the case, simply perform the above replacements with mined. (Split the archive if it is too large to use mined.) The 1.1 shell also runs out of string space quickly with large archives. In this case, increasing the shell stack size with chmem works unless the archive is still too large. Hope this helps. - Bob Cox (cox@nusc.arpa) ------