Find all files in this directory (.) modified in the last day (-mtime -1) that aren’t directories (\! -type d) and execute the list function on them ls -l:
find . -mtime -1 \! -type d -exec ls -l {} \;
I just tooks this from the page:
http://www.liamdelahunty.com/tips/linux_find_files_edited_today.php
Now I just need to update the script to filter out images.
Update: just update number of days back for mtime to go back any number of days.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Mar | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
RSS feed for comments on this post · TrackBack URI
Leave a reply