Re: Removing Files with a specified date.
From: Andre georgel (agl_at_free.com)
Date: 04/27/05
- Previous message: Joe Dunning: "Re: Samba on SCO 5.0.6 ?"
- In reply to: John DuBois: "Re: Removing Files with a specified date."
- Next in thread: Andre georgel: "Re: Removing Files with a specified date."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Apr 2005 12:17:36 +0200
John DuBois a écrit :
> In article <r2nq61140im8fgcduede7kr8atqjnqov12@4ax.com>,
> Andre Georgel <agl@nospam.com> wrote:
> >>"Andre Georgel" <agl@nospam.com> wrote in message
> >>news:bdkh615qm7naguqe9uibbji9t2b46qobur@4ax.com...
> >>>
> >>> I'm not fine in shell and I want to find a shell (KSH) command to
> >>> remove, in a directory, all the files with a specified date in the
> >>> command.
> >>>
> >Thank you for the help, I've make some tests all it's OK, but I'd
> >prefere a solution with an explicite date (ex. 12 DEC 2004).
>
> You could pick up this:
>
> ftp://ftp.armory.com/pub/scobins/rh
>
> Man page: ftp://ftp.armory.com/pub/scobins/help_pages/rh
>
> It's a recursive file locater, like find but in some ways much superior -
> it uses a C-like syntax and gives direct access to all of the file metadata.
> You would do something like:
>
> rh -e 'mtime >= [2004/12/12] && mtime < [2004/12/13]' dir-name | xargs rm --
>
> John
> --
> John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
Thank you for your help, i've loaded rh and I'll make some tets after my
hollydays ending at 05 May.
Andre georgel.
- Previous message: Joe Dunning: "Re: Samba on SCO 5.0.6 ?"
- In reply to: John DuBois: "Re: Removing Files with a specified date."
- Next in thread: Andre georgel: "Re: Removing Files with a specified date."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|