delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/18/15:50:04

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Reply-To: <amihailo AT shepherd DOT edu>
From: "Alec Mihailovs" <mihailovs AT email DOT msn DOT com>
To: "hrishy" <hrishys AT yahoo DOT co DOT uk>
Cc: "Cygwin" <cygwin AT cygwin DOT com>
Subject: RE: cygiwn newline character
Date: Thu, 18 Oct 2001 13:06:29 -0400
Message-ID: <NCBBKFBLELHDDEGCEHPIKEJPFCAA.mihailovs@email.msn.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
In-Reply-To: <20011018092258.28625.qmail@web12605.mail.yahoo.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-OriginalArrivalTime: 18 Oct 2001 17:06:51.0003 (UTC) FILETIME=[476E3CB0:01C157F7]

You should put a $ sign in front of '\t' :

echo hello world $'\t' hi there 

Alec

-----Original Message-----

i am running the following programme under windows 
#!/bin/sh
echo hello world '\t' hi there

i am getting the output as hello world '\t' hi there

wheras i require the output to be
hello word      hi there

could anybody please help

regards
Hrishy



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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