1 |
On 2010-11-19, Peter Humphrey <peter@××××××××××××××.org> wrote: |
2 |
> Hello list, |
3 |
> |
4 |
> Just to expose my ignorance again, would someone lift my blinkers |
5 |
> please? I'm recovering from an infection and my brain is stuck. |
6 |
> |
7 |
> It's time to start pruning old stuff from the website I run, which has |
8 |
> 2200 files in 200 directories. |
9 |
> |
10 |
> I'm trying to find old images like this: |
11 |
> find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \ -f 5-10 |
12 |
|
13 |
It's obvious how that command finds old images. Can you explain what |
14 |
it's supposed to do? |
15 |
|
16 |
> Is there a simple way to do this? Ideally I'd like a chronologically |
17 |
> ordered list of the files. |
18 |
|
19 |
Do you want a chronologically ordered list, or do you want to find |
20 |
files older than a certain age? |
21 |
|
22 |
If the former, try this: |
23 |
|
24 |
find . -iname '*.jpg' | xargs ls -lt |
25 |
|
26 |
If the latter, read the 'find' man page and look for the -mtime test. |
27 |
|
28 |
-- |
29 |
Grant Edwards grant.b.edwards Yow! My nose feels like a |
30 |
at bad Ronald Reagan movie ... |
31 |
gmail.com |