I\'m trying to work out a command which deletes sql files older than 15 days.
The find part is working but not the rm.
rm -f | find -L /usr/www2/bar/
Another simpler method is to use locate command. Then, pipe the result to xargs.
locate
xargs
For example,
locate file | xargs rm