Remove cache files older than 10 minutes
..and remove ?View Code BASH1 find /home/myp2p/public_html_tijdelijk2/unicache/* -mmin +10 -exec rm {} \;
..and remove ?View Code BASH1 find /home/myp2p/public_html_tijdelijk2/unicache/* -mmin +10 -exec rm {} \;
With the following pipeline one looks for the N oldest subdirectories and then deletes them ?View Code BASH1 ls -1 -t | tail -N | xargs rm -rf In particular does ?View Code BASH1 ls -1 -t | tail -1 | xargs rm -rf delete the oldest subdirectory.