[yocto] [meta-raspberrypi] du giving non-integer result?
    Dave Wolaver 
    davewolaver at gmail.com
       
    Fri Sep 25 07:12:05 PDT 2015
    
    
  
Michael Fainstein <Michael.Fainstein at ...> writes:
> 
> I saw such behavior in 'expr' when I upgraded bash 3.1 - it started 
printing floats instead of integers.
> You can solve it using awk's OFMT:  awk '{OFMT="%.0f";print $1}'
> 
> Michael
> 
This worked for me, but it needed one small tweak... Need to add +0 so 
that awk actually applies the format.
You can solve it using awk's OFMT:  awk '{OFMT="%.0f";print $1+0}'
Thanks Michael!
    
    
More information about the yocto
mailing list