delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/22/10:15:28

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
Message-ID: <20001122150559.24323.qmail@web4805.mail.yahoo.com>
Date: Wed, 22 Nov 2000 16:05:59 +0100 (CET)
From: =?iso-8859-1?q?Sylvain=20Petreolle?= <spetreolle AT yahoo DOT fr>
Subject: Re: Newbie: read works incorrectly
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

--- schwarza AT gdls DOT com a écrit : > 
> The following statement:
> 
>       echo one two | while read line ; do
>          printf '%s\r\n' $line
>       done
> 
> generates
> 
>       one
>       two
> 
> I would have expected
> 
>       one two
> 
The '\r\n' statement tells to printf to inser a new
line, then remove it.



___________________________________________________________
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, 
Yahoo! Messenger : http://fr.messenger.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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