nitter
Joshua Wright
@joswr1ght
28 Apr 2014
How do I get left padding with awk and floating point values? echo 2.52 | awk '{printf("%4.2f\n",$1)}' produces "2.52" not "0002.52"
6
Hal Pomeranz
@hal_pomeranz
28 Apr 2014
Replying to
@joswr1ght
@joswr1ght
Oh, and you actually want "%06.2f" if you want to end up with "0002.52"...
Apr 28, 2014 · 11:39 PM UTC