我正在尝试从系统中收集信息,我需要以小时和分钟为单位获取当前时间.
目前我有:
date | awk '{print $4}'
输出如下:
16:18:54
如何切断秒?
linux bash time
bash ×1
linux ×1
time ×1