Hello,

I have a problem with my perl script with the command sed. Here is a example of my code:

# Selecting the fast server
print "Using the server called $server";
system(`/usr/bin/sed 's|\*default host=\(.*\)|\*default host=${server}|' $standard_supfile > $standard_supfile.copy`);
system('/bin/mv $standard_supfile.copy $standard_supfile');

But in console i have this message:
sed: 1: "s|*default host=(.*)|*d ...": unescaped newline inside subsitute pattern

Can you help me please ?

Thank you :)
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to