symlink files newer than X age, then later remove symlink once file ages?

Posted by bleomycin on Stack Overflow See other posts from Stack Overflow or by bleomycin
Published on 2010-05-02T08:56:20Z Indexed on 2010/05/02 8:57 UTC
Read the original article Hit count: 156

Filed under:
|
|
|
|

Hello everyone, i have a large number of files/folders coming in each day that are being sorted automatically to a wide variety of folders. I'm looking for a way to automatically find these files/folders and create symlinks to them all within an "incoming" folder. Searching for file age should be sufficient for finding the files, however searching for age and owner would be ideal. Then once the files/folders being linked to reach a certain age, say 5 days, remove the symlinks to them automatically from the "incoming" folder. Is this possible to do with a simple shell or python script that can be run with cron? Thanks!

© Stack Overflow or respective owner

Related posts about linux

Related posts about python