edited unix shell script for standard 7.x