Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!motcid!protofan From: protofan@motcid.UUCP (Mike S. Protofanousis) Newsgroups: comp.mail.elm Subject: Re: uuconvert Message-ID: <4660@cocoa7.UUCP> Date: 20 Feb 91 22:31:44 GMT References: <4654@cocoa7.UUCP> Organization: Motorola Inc., Cellular Infrastructure Div., Arlington Heights, IL Lines: 30 > I once had a program which could uudecode a file which was split into > many mail messages. This program would automatically remove any mail > headears and any trailing blank lines. I am not sure if it would > handle a sigature. Well, I discovered that sed could do the job! Here is a one line sed script that can handle a bunch of mail files and uudecode them. It even works with .signatures that start with '--'. sed -e '1,/^$/d' -e '/^--$/,/^$/d' -e '/^$/,/^$/d' $* | uudecode sed and uudecode need to be in your path (or you can add paths to the above). Put this command into a file. For example, call it uuconvert. Then do chmod +x uuconvert. That's it. You are now ready to use uuconvert. It can be used in two ways: uuconvert file1 file2 file3 etc... or cat file1 file2 file3 etc... | uuconvert It's not too smart. It can work with generic signatures as long as they are preceded by at least one blank line. -- Mike Protofanousis msp@pronet.chi.il.us uunet!motcid!protofan