我需要找到以下语句的含义:
find /sourcedirectory -mtime +2 -exec mv "{}" /destination/directory/ \;
答案1
这意味着 /sourcedirectory 下超过两天的每个文件或文件夹都应移动到 /destination/directory/。
find /sourcedirectory # finds every file/folder
-mtime +2 # sort out files/folders older than 2 days
mv "{}" /destination/directory/ # move each result to destination folder