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.
我需要将最近 5 天修改的文件复制到一个文件夹中。我有这个命令
查找 /media/karunakar/Suppliers/xyz/ORD20130908 -name "*.DAT" -type f -mtime +5 -exec cp '{}' /media/karunakar/ord
它没有给出结果
尝试这个:
$(which find) $FOLDER_FROM_COPY -type f -mtime +5 -regex '$\|.*dat$\|.*DAT$' -print | xargs -I '{}' -P4 -n1 $(which cp) {} $FOLDER_TO_COPY