Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!comcon!roy From: roy@comcon.UUCP (Roy M. Silvernail) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Combine script for multiple-part uuencoded files from LISTSERV Message-ID: <168@comcon.UUCP> Date: 15 Dec 89 10:42:55 GMT References: Organization: Computer Connection - Anchorage, Alaska Lines: 29 In article , w8sdz@WSMR-SIMTEL20.ARMY.MIL (Keith Petersen) writes: > > The following Unix shell script "lcombine" is functionally the same as the > comp.binaries.ibm.pc "combine" script. Use it to uudecode multiple-part > uuencoded files received from LISTSERV (or TRICKLE in Europe). > > #! /bin/sh > cat $* | sed '/--- End /,/--- Part/d' | uudecode > At my site, our version of uudecode doesn't like the LISTSERV flavor of uuencoded files. (LISTSERV places the M at both ends of the line, instead of the beginning only) So, I have modified the script above to the following: cat $* | sed '/--- End /,/--- Part/d' | sed 's/M$//'| uudecode That will avoid the "Checksum error decoding line x" message for every file, but preserve any other error messages, such as abnormal termination. The alternative is to add '2|grep -v checksum' or '2>err' and tail err for any unusual conclusions. -- _R_o_y _M_. _S_i_l_v_e_r_n_a_i_l | UUCP: uunet!comcon!roy | "No, I don't live in an igloo!" [ah, but it's my account... of course I opine!] -Sourdough's riposte SnailMail: P.O. Box 210856, Anchorage, Alaska, 99521-0856, U.S.A., Earth, etc.