This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Escape Character


mattlucasv wrote:

> 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

man echo
would have shown you echo's "-e" option. Try
echo -e "\t\t Hello"

I doubt that that's a matter of whether you use Cygwin or not but a matter of 
whether you use the echo command from the GNU core utilities or not. On your 
True64 unix, you propably don't.

Regards
  mks

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]