Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Aug 2020 16:54:40 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Christoph Kukulies <kuku@kukulies.org>
Cc:        Ernie Luzar <luzar722@gmail.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: csh use of grep | tr  commands
Message-ID:  <20200810165440.ea0c541d.freebsd@edvax.de>
In-Reply-To: <66BD7FC7-D480-4E12-8215-0C351668A5EA@kukulies.org>
References:  <5F30962B.5060005@gmail.com> <66BD7FC7-D480-4E12-8215-0C351668A5EA@kukulies.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 Aug 2020 14:14:32 +0200, Christoph Kukulies wrote:
> file t:
> 
> ip4="1.2.3.4"
> 
> 
> sed 's/\(ip4="\)\([^"]*\)\(".*$\)/\2/' <t
> 
> 
> OTOH, tr -d '"‘ strips off double quotes.
                ^

Well, tr -d '"' does, tr -d '"‘ does not.

	% echo 'ip4="10.111.098.2"' | tr -d '"‘
	Unmatched '.

Here we can see "smart quotes" in action.
Next stop: printf(„Hello world!\n“); ;-)


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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