Re: awk behaviour?

From: Michael Butler via freebsd-current <freebsd-current_at_freebsd.org>
Date: Wed, 28 Jul 2021 13:33:08 -0400
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_at_toshi:/home/imb> pkg --version | awk -F. '{print $$1 * 10000 + $$2 * 
> 100 + $$3}'
> 10001
> 
> imb_at_toshi:/home/imb> pkg --version
> 1.17.1
> 
> Is this expected?
> 
>      imb
> 
Received on Wed Jul 28 2021 - 17:33:08 UTC

Original text of this message