Addition to Bash shell script that emails final output as attachement?

view story

http://www.unix.com – Greetings. I have a nice bash shell script that runs a multi-step analysis well. I already have the SGE options set up to email me the progress of the run (started, completed, aborted), but a final step would be to code the shell script to email the final output (a .txt file) to the same email address (as an attachement). Is this possible? Thanks and cheers! (HowTos)