Discussion: use of find
Afficher un message
Vieux 06/11/2007, 05h51   #3
rthangam
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: use of find

On Nov 6, 8:09 am, Wayne <nos...@all4me.invalid> wrote:
> zmas...@gmail.com wrote:
> > Hi All,

>
> > I want to be able to find from a directory, all files that do NOT have
> > a ".gz" file extension and also are more than 1 day old.

>
> > The idea is to zip the resultant files.

>
> > Thanks in Advance

>
> See if my "find" tutorial meets your needs:
>
> http://www.hccfl.edu/pollock/Unix/FindCmd.htm
>
> -Wayne


find . -name "*.gz" -ctime -1

-ctime option is for last file status change time. You can use -mtime
option for last modified time and -atime for the last accessed time

  Réponse avec citation
 
Page generated in 0,06403 seconds with 9 queries