From owner-freebsd-questions@FreeBSD.ORG Tue Jun 19 16:12:45 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 7418C16A468 for ; Tue, 19 Jun 2007 16:12:45 +0000 (UTC) (envelope-from oregnier@oregnier.net) Received: from 30.mail-out.ovh.net (30.mail-out.ovh.net [213.186.62.213]) by mx1.freebsd.org (Postfix) with SMTP id CB66E13C457 for ; Tue, 19 Jun 2007 16:12:44 +0000 (UTC) (envelope-from oregnier@oregnier.net) Received: (qmail 2022 invoked by uid 503); 19 Jun 2007 16:10:25 -0000 Received: (QMFILT: 1.0); 19 Jun 2007 16:10:25 -0000 Received: from b7.ovh.net (HELO mail181.ha.ovh.net) (213.186.33.57) by 30.mail-out.ovh.net with SMTP; 19 Jun 2007 16:10:25 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 19 Jun 2007 16:09:46 -0000 Received: from mac76-2-82-241-6-173.fbx.proxad.net (HELO ?127.0.0.1?) (postmaster@oregnier.net@82.241.6.173) by ns0.ovh.net with SMTP; 19 Jun 2007 16:09:33 -0000 Message-ID: <4677FFD1.9050603@oregnier.net> Date: Tue, 19 Jun 2007 18:09:53 +0200 From: Olivier Regnier User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4677FE32.9040703@oregnier.net> In-Reply-To: <4677FE32.9040703@oregnier.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: Re: problem with printf in a shell script 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: Tue, 19 Jun 2007 16:12:45 -0000 Olivier Regnier a écrit : > Hi everyone, > > I want to insert text in my file, rc.conf : update_motd="NO" > I tried printf in my shell script with this command : > printf "update_motd="\"NO"\"\" >> /etc/rc.conf > then, that works well in console but not with my shell script > I would like to insert a \n at the end :) > > 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 > "freebsd-questions-unsubscribe@freebsd.org" Sorry :), i founded the solution : printf 'update_motd="NO"' Thank you :)