Newsgroups: comp.binaries.ibm.pc.d Path: utzoo!utgpu!watserv1!watmath!mks.com!andy From: andy@mks.com (Andy Toy) Subject: Re: UUDECODE problem? Date: Tue, 5 Feb 91 15:42:35 GMT Message-ID: <1991Feb5.154235.26264@mks.com> Organization: Mortice Kern Systems, Waterloo, Ontario, CANADA References: <4657@mindlink.UUCP> In article <4657@mindlink.UUCP> Richard_Parson@mindlink.UUCP (Richard Parson) writes: >Some UUENCODEd files seem to be corrupted by losing any spaces at the end of a >line. Spaces in the middle of a line are ok. > >Does anyone have (MSDOS) software that will recover these files by adding space >characters to the end of any line shorter than 60 characters in length? How about the following (if you have sed, awk, perl or something similar): # add some spaces to the end of every line sed 's/$/ /' file.uue | uudecode or awk '{ print $0 " " }' file.uue | uudecode -- Andy Toy UUCP: ...!uunet!watmath!mks!andy Technical Support Phone: +1-519-884-2270 Mortice Kern Systems Inc. Phone: +1-519-884-2251 35 King Street North, Waterloo, Ontario N2J 2W9, CANADA Fax: +1-519-884-8861