linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mat Harris <mat.harris@genestate.com>
To: Scott Taylor <scott@dctchambers.com>
Cc: linux-admin@vger.kernel.org
Subject: Re: oldest file
Date: Thu, 6 Feb 2003 21:46:14 +0000	[thread overview]
Message-ID: <20030206214614.GA29062@genestate.com> (raw)
In-Reply-To: <5.1.1.6.0.20030206093935.01d115b0@mustang>

[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]

that's it. that'll do i perfectly. just a little bit of looping and perl and
it's sorted.

cheers scott

On Thu, Feb 06, 2003 at 09:39:42 -0800, Scott Taylor wrote:
> 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
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Mat Harris			OpenGPG Public Key ID: C37D57D9
mat.harris@genestate.com	www.genestate.com	

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2003-02-06 21:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-06 17:39 oldest file Scott Taylor
2003-02-06 21:46 ` Mat Harris [this message]
  -- 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=20030206214614.GA29062@genestate.com \
    --to=mat.harris@genestate.com \
    --cc=linux-admin@vger.kernel.org \
    --cc=scott@dctchambers.com \
    /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).