strip leading zeros in awk program

后端 未结 5 1508
孤城傲影
孤城傲影 2020-12-19 20:28

So I\'m pretty lost as I missed a week and am playing catch up, but I\'m to write an awk program to tell the difference, in days, between two dates.

I\'m more or les

5条回答
  •  抹茶落季
    2020-12-19 21:30

    Latest contribution somewhat shortened.

    echo '20/02/1965' | awk '{sub ("/0", "/", $0)}1'
    20/2/1965
    

提交回复
热议问题