Bash

Bash dateコマンドのゼロパディングをなくす

Bash dateコマンドのゼロパディングをなくす方法について紹介します。$ date +%m/%d +(/home/yuis/lib/input.sh:90) date +%m/% […]

Shou Arisaka
1 分で読める
2019年4月13日

Bash dateコマンドのゼロパディングをなくす方法について紹介します。

$ date +%m/%d
+(/home/yuis/lib/input.sh:90): date +%m/%d
03/13
$ date +%-m/%-d
+(/home/yuis/lib/input.sh:91): date +%-m/%-d
3/13

この記事をシェア

Shou Arisaka 2019年4月13日

🔗 リンクをコピー