Thanks Chacalinc,
The following command worked like a charm:
find . \( -type d ! -name . -prune \) -o \( -type f -mtime +637 -exec mv {} /desiredpath/ \; \)
had to replace the ";" with " \;"
After reviewing the recommended posts I have come to the following command but still unsure how I get the move command to work properly in the find statement.
Here is what I have been attempting.
find . \( -type d ! -name . -prune \) -o \( -type f -mtime +637 -exec mv {} /desiredpath/; \)...
I am looking for a way to move multiple files (reports) from one directory to another based upon the files date.
There are no common names to these files to use the mv command with a name wildcard.
Is there a way to select all files with a last modified date of prior to 12/31/2002 and move...
I am looking for a way to move multiple files (reports) from one directory to another based upon the files date.
There are no common names to use the mv command with a name wildcard.
Is there a way to select all files with a last modified date of prior to 12/31/2002 and move them?? (around...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.