delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/04/08:59:50

X-Spam-Check-By: sourceware.org
In-Reply-To: <5649305.post@talk.nabble.com>
Subject: Re: Escape Character
To: cygwin AT cygwin DOT com
X-Mailer: Lotus Notes Release 7.0 HF85 November 04, 2005
Message-ID: <OF7227ECD0.A2908835-ONC12571C0.0046C0E6-C12571C0.0046F2CA@dk.ibm.com>
From: Franz Wolfhagen <FRANZW AT dk DOT ibm DOT com>
Date: Fri, 4 Aug 2006 14:54:56 +0200
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

cygwin-owner AT cygwin DOT com wrote on 04-08-2006 14:23:49:

>
> Hi
>
> I am new to Cygwin and I am just trying to use the escape character
example
> is
>
> echo "\t\t Hello"
>
> but this returns \t\t Hello and ignores the escape characters.
>
> I was looking for it to return     Hello with a couple of TABS in front
like
> it does on our True64 unix system.  Is the escape character differant in
> Cygwin or am I missing something ??? any help would be great
> --
> View this message in context: http://www.nabble.com/Escape-
> Character-tf2050870.html#a5649305
> Sent from the Cygwin Users forum at Nabble.com.


"man echo" has the answer - on Cygwin use the "-e" argument ie :  echo -e
"\t\t Hello"

Med venlig hilsen / Regards
Franz Wolfhagen
Tivoli Senior I/T Specialist
IBM Denmark



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019