[Fedora-users-br] Listar os ultimos arquivos alterados
Felipe Tocchetto
felipe em tocchetto.com
Qua Out 25 18:00:00 UTC 2006
Oi Edson
Não sei se isto ajuda, mas de uma olhada no comando find, mais
especificamente no parametro -mtime
-mtime n[smhdw]
If no units are specified, this primary evaluates to true if the
difference between the file last modification time and the time
find was started, rounded up to the next full 24-hour period, is
n 24-hour periods.
If units are specified, this primary evaluates to true if the
difference between the file last modification time and the time
find was started is exactly n units. Please refer to the -atime
primary description for information on supported time units.
Eu uso para limpar a "lixeira" do Samba:
find /home/data/.recycle/ -type f -mtime 15 -exec rm -rf {} \;
Mais de 15 dias ele deleta.
Em 25/10/06, Edson Olivio<edsongnu em yahoo.com.br> escreveu:
> Por favor,
>
> Gostaria de saber se existe uma maneira de listar somente os arquivos que
> foram alterados nos ultimos 5 dias
>
>
> Desde já agradeço pela atenção da lista !!
>
> Obrigado !!
>
> ________________________________
> Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
> --
> Fedora-users-br mailing list
> Fedora-users-br em redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-users-br
>
>
>
--
Felipe L. Tocchetto
http://felipe.tocchetto.com
Mais detalhes sobre a lista de discussão Fedora-users-br