Michael Fainstein <Michael.Fainstein@...> 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! -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto