if [ -f scriptpattern ]; then if test "$1" = ""; then echo \*\*\*\* No arguments echo \*\*\*\* Usege\: calc \ exit fi echo Removing the old script... if [ -f __script.sl ]; then rm __script.sl fi sed ''/INSTANCE/s//$1/'' scriptpattern > __script.sl __runNewbergbg $1 else echo Cannot find \"scriptpattern\" file, aborting... fi echo newbmcalc script done, but __runNewbergbg may run.