ok then what about this. "unix2dos < $1 > tempfile" mv tempfile $1
does the commands in a script wait till the previous one completes execution before the next line executes? ----- Original Message ----- From: "Martin Radford" <[EMAIL PROTECTED]> To: "Nick Marino" <[EMAIL PROTECTED]> Cc: "Theo Van Dinter" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, January 12, 2003 12:14 PM Subject: Re: [SAtalk] New Question > At Sun Jan 12 17:49:59 2003, Nick Marino wrote: > > > > true but the reason I am having to run this on my incoming mail is because > > SA is corrupting some emails by stripping CR from them. Only some of the > > html messages not all. > > > > So anyway.. this "unix2dos < $1 > file" > > would have to be this: "unix2dos < $1 > $1" > > > > In order for it to write back to the same file? Correct? > > No, because the "> $1" will overwrite the file before the execution of > the command. $1 will end up as an empty file. > > Your best bet is to use temporary files. > > Martin > -- > Martin Radford | "Only wimps use tape backup: _real_ > [EMAIL PROTECTED] | men just upload their important stuff -o) > Registered Linux user #9257 | on ftp and let the rest of the world /\\ > - see http://counter.li.org | mirror it ;)" - Linus Torvalds _\_V > > **** Virus scanned by IFC Mail services on Sun Jan 12 12:16:15 CST 2003 **** > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk