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 日間に変更されたファイルをフォルダーにコピーする必要があります。私はこのコマンドを持っています
find /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