csh use of grep | tr commands
Polytropon
freebsd at edvax.de
Mon Aug 10 14:54:44 UTC 2020
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, ...
More information about the freebsd-questions
mailing list