Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现以下命令可以满足我的所有要求。我需要输出时间样式是完整的iso。我需要改变什么才能实现这一点?
ls -al --time-style=+%D | grep $(date +%D)
只需在您自己的命令中修改时间格式:
ls -al --time-style=full-iso | grep $(date --iso-8601)