我尝试$(date)在我的bash shell脚本中使用,但是我想要YYYY-MM-DD格式的日期.我怎么得到这个?
$(date)
bash shell date strftime
bash ×1
date ×1
shell ×1
strftime ×1