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.

-- 
Rgds
Peter.          Linux Counter 5290, 1994-04-23.

Reply via email to