delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/13/07:37:52

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
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3AAE133A.5FAB0F8B@yahoo.com>
Date: Tue, 13 Mar 2001 07:31:54 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Stephen Patterson <fileysurgery AT techie DOT com>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Scripting with Bash
References: <382228018 DOT 984477206135 DOT JavaMail DOT root AT web572-mc>

Stephen Patterson wrote:
> 
> I *think* it's \c not \n, but i've not done any bash scripting for quite a while, so I could be wrong :-)
> 
> ------Original Message------
> From: Galen Boyer <galenboyer AT yahoo DOT com>
> To: cygwin AT sourceware DOT cygnus DOT com
> Sent: March 12, 2001 12:13:09 PM GMT
> Subject: Scripting with Bash
> 
> I am starting to convert a ksh script to Bash.  Everything is
> going fine, except I can't figure out how to have standard out
> display more than one line in an echo.
> 
> Is there a way to include the \n's in a statement like "echo
> "Blah\n"" and have standard out display "Blah and a newline"
> instead of Blah\n?

How about:

echo "
a
b
c
d
e
f
g
"

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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