date +%b
给我三个字母的当前月份名称的缩写(我在网上发现,它不在我的名字里,man date也找不到我的答案man date)。
如何获得当前的日期名称?例如,周日,周一,周二等?
date +%b
给我三个字母的当前月份名称的缩写(我在网上发现,它不在我的名字里,man date也找不到我的答案man date)。
如何获得当前的日期名称?例如,周日,周一,周二等?
Answers:
来自man date:
%a locale's abbreviated weekday name (e.g., Sun)
strftime,该date文档使用了该系统调用。
%a is replaced by national representation of the abbreviated weekday name.是在我man strftime
man date但可以。当我搜索abbr我的手册页它只是显示yy和cc