Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2000 14:41:14 -0700
From:      Matthew Hunt <mph@astro.caltech.edu>
To:        Mark Ovens <mark@dogma.freebsd-uk.eu.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Question about echo(1)
Message-ID:  <20000626144114.A62256@wopr.caltech.edu>
In-Reply-To: <20000626222417.J232@parish>; from mark@dogma.freebsd-uk.eu.org on Mon, Jun 26, 2000 at 10:24:17PM %2B0100
References:  <20000626222417.J232@parish>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 26, 2000 at 10:24:17PM +0100, Mark Ovens wrote:

> So, what does ``-e'' do under sh(1)?

C-style backslash processing:

$ echo -e a\\tb 
a       b
$ echo a\\tb

(\t produces a tab character.  Two backslashes are converted to one
by the shell before echo sees it.)

-- 
Matthew Hunt <mph@astro.caltech.edu> * Stay close to the Vorlon.
http://www.pobox.com/~mph/           *


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000626144114.A62256>