Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 2021 13:33:08 -0400
From:      Michael Butler via freebsd-current <freebsd-current@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: awk behaviour?
Message-ID:  <066b1315-bdab-b963-3a3b-ca2d6bdb76ab@protected-networks.net>
In-Reply-To: <8e1a8e3c-b062-7749-ceab-e500c1ab758e@protected-networks.net>
References:  <8e1a8e3c-b062-7749-ceab-e500c1ab758e@protected-networks.net>

next in thread | previous in thread | raw e-mail | index | archive | help

NVM .. it's the escaping of '$' .. <sigh>

On 7/28/21 1:29 PM, Michael Butler via freebsd-current wrote:
> I tripped over this while trying to build a local release ..
> 
> imb@toshi:/home/imb> pkg --version | awk -F. '{print $$1 * 10000 + $$2 * 
> 100 + $$3}'
> 10001
> 
> imb@toshi:/home/imb> pkg --version
> 1.17.1
> 
> Is this expected?
> 
>      imb
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?066b1315-bdab-b963-3a3b-ca2d6bdb76ab>