expand and uuencode...

I have a log file that looks fine when you view it in Unix but when I send it as an attachment to myself it looses its formatting... so I am using "expand" to replace the tabs with spaces and the format looks good. The code below works great but I was wondering if there was a way to do this without having to create the /tmp/$$.log file. I'm not sure if I can pipe into uuencode or something similar. I am running AIX 5.3.

 
expand export_oracle.log > /tmp/$$.log; uuencode /tmp/$$.log my_log.wri | mailx -s "test" email@domain.com ; rm /tmp/$$.log

Thanks in advance for your help!
Seth

Did you try it?

This should work:

expand export_oracle.log | uuencode my_log.wri | mailx -s "test" email@domain.com

I thought I had tried that but i guess I didn't... worked like a charm!!!

Thanks!