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.
我正在尝试使用 mac 的终端将文件从一个目录复制到另一个目录,其中第二个目录基于日期:
cp -Rp /path/from/* /first part of path to/$(date '+%m')_$(date '+%d')_$(date '+%Y')/second part of path to/
日期片让我有些悲伤,我担心。有没有办法可以创建带有日期的动态路径?
谢谢...