Markus - Try this instead; #!/bin/sh # GRASS 5 binary package installation tool #... [cut] GPATH=/other/local/grass sed "s,/usr/local/grass,$GPATH,g" $GPATH/etc/monitorcap.orig > monitorcap This works for bash shell. Bill Hughes