shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

apagar arquivos com find


From: gleissonmb
Subject: apagar arquivos com find
Date: Mon, 17 Sep 2007 18:07:50 -0000
User-agent: eGroups-EW/0.82

e ai gente,

Com o comando abaixo apago os arquivos com mais de 10 dias:
find ./* -type f -ctime +10 -exec rm -rf {} \;

Com esse apago com menos de 10 dias:
find ./* -type f -ctime -10 -exec rm -rf {} \;

Pergunta:
Como faço pra apagar apenas um período?
Ex: Apagar os arquivos arq6,7,8,9 e 10.
-rw-r--r-- 1 root root 0 Sep 03 14:35 ./arq1
-rw-r--r-- 1 root root 0 Sep 04 14:35 ./arq2
-rw-r--r-- 1 root root 0 Sep 05 14:35 ./arq3
-rw-r--r-- 1 root root 0 Sep 06 14:35 ./arq4
-rw-r--r-- 1 root root 0 Sep 07 14:35 ./arq5
-rw-r--r-- 1 root root 0 Sep 08 14:39 ./arq6
-rw-r--r-- 1 root root 0 Sep 09 14:39 ./arq7
-rw-r--r-- 1 root root 0 Sep 10 14:39 ./arq8
-rw-r--r-- 1 root root 0 Sep 11 14:39 ./arq9
-rw-r--r-- 1 root root 0 Sep 12 14:39 ./arq10
-rw-r--r-- 1 root root 0 Sep 13 14:35 ./arq11
-rw-r--r-- 1 root root 0 Sep 14 14:39 ./arq12
-rw-r--r-- 1 root root 0 Sep 15 14:39 ./arq13
-rw-r--r-- 1 root root 0 Sep 16 14:39 ./arq14
-rw-r--r-- 1 root root 0 Sep 17 14:39 ./arq15












reply via email to

[Prev in Thread] Current Thread [Next in Thread]