Find Files by Age and copy them to another directory

If you work with a lot of files, sometimes there is no way around sorting files, copying them out, deleting them etc. In this case I am looking for certain files, files that are not older than 1 year and want to copy them into another directory.

find . -iname '*.pdf' -type f -mtime -356 | xargs cp -t ../

Here i make use of the convinient pipe system of Linux/Unix |

The first expression (find) finds all files created in the last 365 days. These are then passed to the cp (Copy) command, which copies them into another directory.

The next xargs takes the list of files, transmitted by find and copy them to the parent .folder.