Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: [OT] Finding old files
Date: Fri, 19 Nov 2010 17:19:21
Message-Id: 201011191718.33958.peter@humphrey.ukfsn.org
In Reply to: [gentoo-user] Re: [OT] Finding old files by Grant Edwards
1 On Friday 19 November 2010 16:40:37 Grant Edwards wrote:
2 > On 2010-11-19, Peter Humphrey <peter@××××××××××××××.org> wrote:
3 > > Hello list,
4 > >
5 > > Just to expose my ignorance again, would someone lift my blinkers
6 > > please? I'm recovering from an infection and my brain is stuck.
7 > >
8 > > It's time to start pruning old stuff from the website I run, which
9 > > has 2200 files in 200 directories.
10 > >
11 > > I'm trying to find old images like this:
12 > > find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \ -f 5-10
13 >
14 > It's obvious how that command finds old images. Can you explain what
15 > it's supposed to do?
16
17 The cut command simply strips off the permissions, owner, group and file
18 size.
19
20 Never mind, anyway. I've done it by using separate steps instead of
21 trying to combine them. I'm still puzzled though at the different
22 behaviour of ls between command-line and execution by find.
23
24 --
25 Rgds
26 Peter. Linux Counter 5290, 1994-04-23.

Replies

Subject Author
Re: [gentoo-user] Re: [OT] Finding old files Alan McKinnon <alan.mckinnon@×××××.com>
[gentoo-user] Re: [OT] Finding old files Grant Edwards <grant.b.edwards@×××××.com>