http://www.linuxforums.org/forum/lin...sh-script.html