Filter by modify date.

I want to filter an "ls -al" command so it only shows me files with modify dates older than two weeks. What is the best way of doing this?

Use the find command with the mtime option:

find ./ -mtime + 14 -exec ls -l {}

You might have to tinker with it if there are subdirectories.

Edit: Never mind I got it working

What I'm trying to do is keep track of which of my rsync clients have not synced for two weeks. I have the clients write and entry in a simple log file and it is synced to my rsync server. right now I can do the following to list the log file for each clients rsync.log file. I figured it out using something like below.

find /path/to/backup/*/rsync.log -mtime +14 -exec ls -l {} \;