Bash shell 的 date 印出「年月日時分秒」的參數

Linux 的 Bash Shell 很常會使用到 date 的命令,特別是用到備份、某些固定時間該做的處理等等,參數是哪些呢?

每次都是去 man date 來查看這個參數(因為會有大小寫不同,24hr、前面補0 等不同),在此紀錄最常用的年月日參數,並把跟 awk 搭配的方式列出來。

閱讀全文〈Bash shell 的 date 印出「年月日時分秒」的參數〉