Will this work in bash A='uname -n' #or this A=$(uname -n) sed -e '/ServerName localhost/c\ ServerName $A\ ' < httpd.conf So far all it does is just fill in the ServerName with an $A it seams like the problem is that the variable is not read inside the sed command how can I make this work -- Best regards, Richard mailto:rkurth at starband.net