第二天

100天学会100个shell脚本-03-规范日期格式_linux

100天学会100个shell脚本-03-规范日期格式_100_02

[root@gby sh]# ./03-规范日期格式.sh  7 14 1999
Jul 14 1999
[root@gby sh]# ./03-规范日期格式.sh  7-14-1999
Jul 14 1999
[root@gby sh]# ./03-规范日期格式.sh  7/14/1999
Jul 14 1999
[root@gby sh]# ./03-规范日期格式.sh  123 14 1999
./03-规范日期格式.sh: Unknow numeric month value 123
14 1999
[root@gby sh]# ./03-规范日期格式.sh  7 14 99
./03-规范日期格式.sh: expected 4-digit year value.

结束之有话想说

既然看完了,如果有帮助到你的话,点个关注,点个赞,评个论,不过分吧。👊