From owner-freebsd-questions Wed Jan 30 19:40:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web13305.mail.yahoo.com (web13305.mail.yahoo.com [216.136.175.41]) by hub.freebsd.org (Postfix) with SMTP id 044AA37B423 for ; Wed, 30 Jan 2002 19:40:33 -0800 (PST) Message-ID: <20020131034032.28076.qmail@web13305.mail.yahoo.com> Received: from [203.202.144.2] by web13305.mail.yahoo.com via HTTP; Wed, 30 Jan 2002 19:40:32 PST Date: Wed, 30 Jan 2002 19:40:32 -0800 (PST) From: Greg Quinlan Reply-To: gwq_uk@yahoo.com Subject: Re: Echo "\c" does not work To: timothy.covell@ashavan.org Cc: FreeBSD-questions@freebsd.org In-Reply-To: <200201310253.g0V2rCL28095@home.ashavan.org.> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Timothy, The man page that I am looking at says -n but that this can also be achieved by \c man echo --- Timothy Covell wrote: > On Wednesday 30 January 2002 20:27, Greg Quinlan wrote: > > Hello all, > > > > This is quite a small thing but does anyone know why echo "\c" does not > > work. It is suppose to echo without a new line. > > > > I am doing a cut-over of a SCO System (IBCS2) to FreeBSD and I have loads > > of shell scripts with echo no new line done this way. The man page says it > > is valid. I do know "echo -n" > > > > Thanks > > > > Greg > > > > Methinks that you want to use printf which uses these control characters. > Echo is tempting to use, but quickly leads to problems. It should be simple > to write a script to replace all "echo" statements with "printf", but then > you will need "\n" to be properly placed. > > > -- > timothy.covell@ashavan.org. __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message