我的问题是尝试使用cut -c选项只从日期命令中减少时间现在我有这个:
today=$(date) echo The date right now is "$today" echo The time right now is cut -c 11-18 $today
它现在无法完全读取它,我只想要时间
当前输出:
现在的日期是2017年4月26日星期四18:46:59
现在的时间是
unix bash shell scripting date
bash ×1
date ×1
scripting ×1
shell ×1
unix ×1