From: Scott Taylor <scott@dctchambers.com>
To: linux-admin@vger.kernel.org
Subject: Re: oldest file
Date: Thu, 06 Feb 2003 09:39:42 -0800 [thread overview]
Message-ID: <5.1.1.6.0.20030206093935.01d115b0@mustang> (raw)
At 09:16 AM 2/06/03, you wrote:
>i meant that more pictures could be taken on one day than others. I already
>know perl but the perl lists haven't got any ideas.
>
>Let me try it from another angle. I want to keep disk usage at percentage
>level defined in $x.
>
>I want to delete the oldest day in order to keep this level. I have to
>delete one day at a time, and only if a second usage check also show above
>the level, can i delete another day.
>
>I have to keep deletetions to a minimum while keeping the disk healthy as
>people will want to keep their archives for as long as possible.
You could still use find, it can go by the minute if you like.
ls -alt|head -5
will give you the 5 most recent files (usually . and .. first)
ls -alt|tail -5
will give you the 5 oldest
next reply other threads:[~2003-02-06 17:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-06 17:39 Scott Taylor [this message]
2003-02-06 21:46 ` oldest file Mat Harris
-- strict thread matches above, loose matches on Subject: below --
2003-02-06 10:01 Mat Harris
2003-02-06 16:37 ` Scott Taylor
2003-02-06 16:42 ` Mat Harris
2003-02-06 16:55 ` Scott Taylor
2003-02-06 17:16 ` Mat Harris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.1.1.6.0.20030206093935.01d115b0@mustang \
--to=scott@dctchambers.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).