From owner-freebsd-questions@FreeBSD.ORG Sat Apr 7 15:31:32 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F66316A402 for ; Sat, 7 Apr 2007 15:31:32 +0000 (UTC) (envelope-from oregnier@steelbox.org) Received: from 42.mail-out.ovh.net (42.mail-out.ovh.net [213.251.189.42]) by mx1.freebsd.org (Postfix) with SMTP id 68AF913C45A for ; Sat, 7 Apr 2007 15:31:31 +0000 (UTC) (envelope-from oregnier@steelbox.org) Received: (qmail 32670 invoked by uid 503); 7 Apr 2007 15:31:44 -0000 Received: from gw2.ovh.net (HELO mail186.ha.ovh.net) (213.251.189.202) by 42.mail-out.ovh.net with SMTP; 7 Apr 2007 15:31:44 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 7 Apr 2007 15:31:22 -0000 Received: from mac76-2-82-241-6-173.fbx.proxad.net (HELO ?192.168.1.2?) (postmaster@steelbox.org@82.241.6.173) by ns0.ovh.net with SMTP; 7 Apr 2007 15:31:20 -0000 Message-ID: <4617B954.7010507@steelbox.org> Date: Sat, 07 Apr 2007 17:31:32 +0200 From: Olivier Regnier User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Remote: 82.241.6.173 (mac76-2-82-241-6-173.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N Subject: script perl with sed command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2007 15:31:32 -0000 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 :)