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

素的盐

关注

阅读 80

2023-04-09

第二天

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

100天学会100个shell脚本-03-规范日期格式_运维_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.

结束之有话想说

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

精彩评论(0)

0 0 举报