move the third line to the end of the second
if it is imperitive that this line (the third one) be seperate for some reason ...you have to change it to this:
Code:
#!/bin/sh
cat /userdir/file.conf | sed "s/100.100.100.100/200.200.200.200/g" >\
/userdir/file.conf1