Because I want to move a file that is changed today to a specific folder, using a pipeline Javaweb
Find the changed files first, then use the pipeline to move the files.
Find 0 0 Xargs CP -t/home/trojan/work/temp
-mtime N is set to change the time, which means that the time is n*24, because I want to find a change in the day, so I put n setup 0
The goal I chose was. java and. XML end of the file, so here I use-or but the-or limit is the two-part, so we add-mtime 0.
Don't know if there's anything else good to do, and so to know in the update put.
And then you use the pipe CP to your file folder. Here's an explanation of Xargs, which I don't really know.
Xargs is a common command for UNIX and UNIX-like operating systems, and its purpose is to convert the argument list to small pieces to pass to other commands to avoid the problem of too long a parameter list. Can be used alone or in conjunction with other commands, such as pipe and reposition characters.
And then the back of the CP, the parameters-T
All right.
Linux lists the most recently modified files under the folder and copy them to a specific catalog