Apparently, though unproven, at 19:18 on Friday 19 November 2010, Peter 
Humphrey did opine thusly:

> On Friday 19 November 2010 16:40:37 Grant Edwards wrote:
> > On 2010-11-19, Peter Humphrey <pe...@humphrey.ukfsn.org> wrote:
> > > Hello list,
> > > 
> > > Just to expose my ignorance again, would someone lift my blinkers
> > > please? I'm recovering from an infection and my brain is stuck.
> > > 
> > > It's time to start pruning old stuff from the website I run, which
> > > has 2200 files in 200 directories.
> > > 
> > > I'm trying to find old images like this:
> > > find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \  -f 5-10
> > 
> > It's obvious how that command finds old images.  Can you explain what
> > it's supposed to do?
> 
> The cut command simply strips off the permissions, owner, group and file
> size.
> 
> Never mind, anyway. I've done it by using separate steps instead of
> trying to combine them. I'm still puzzled though at the different
> behaviour of ls between command-line and execution by find.


ls as you are using it is an option to find (not an app or a shell builtin). 
So you need to do

find .... -ls


-- 
alan dot mckinnon at gmail dot com

Reply via email to