Article View: comp.unix.shell
Article #68Re: Fast Removal
From: Boyd Roberts
Date: Wed, 04 Nov 1992 12:35
Date: Wed, 04 Nov 1992 12:35
25 lines
1248 bytes
1248 bytes
In article <28300007@tisdec.tis.tandy.com>, kevinl@tisdec.tis.tandy.com writes:
> find . -ctime +1 -exec rm {} \;
>
> This *should* work. `-ctime' is for `create time', so the previous
> command should find all files with a create time greater than (from the `+')
> today.
Isn't is just marvellous how this old myth still propagates?
The `ctime' field in an inode is the INODE CHANGE TIME.
There has never been a `create time'.
If you read find(1) you will find that:
-ctime n Tests true if the file has been changed in n
days.
Note it says `change[d]' and not created.
One hopes that this is now clear.
Boyd Roberts boyd@prl.dec.com
``Not only is UNIX dead, it's starting to smell really bad.'' -- Rob Pike
Technical Details
Message-ID:
<1992Nov4.123547.9540@prl.dec.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!pa.dec.com!decprl!decprl!boydReferences:
<28509@polari> <28300007@tisdec.tis.tandy.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!pa.dec.com!decprl!decprl!boyd From: boyd@prl.dec.com (Boyd Roberts) Subject: Re: Fast Removal Message-ID: <1992Nov4.123547.9540@prl.dec.com> Sender: news@prl.dec.com (USENET News System) Nntp-Posting-Host: prl313.prl.dec.com Organization: Digital Equipment Corporation - Paris Research Laboratory References: <28509@polari> <28300007@tisdec.tis.tandy.com> Date: Wed, 4 Nov 1992 12:35:47 GMT Lines: 25