http://code.google.com/p/shell2junit/

Shell2junit

Shell2junit is a simple utility which facilitates to generate junit reports for batch processes executed in shell scripts. 

The reports can be easily parsed in Hudson and other CI software in order to monitor and generate trends and alerts. 

This page teaches how to do it in Hudson. 
