zuberi3000
(usa Debian)
Enviado em 15/06/2010 - 13:58h
Não estão com o mesmo nome amigo. Olha o resultado do ls -lha.
[root@scout2.services] #6 - 13:56
[/var/log/asterisk]$ ls -lha
-rw-r--r-- 1 root root 1.5K Jun 9 17:51 queue_log.51
-rw-r--r-- 1 root root 886 Jun 10 17:50 queue_log.52
-rw-r--r-- 1 root root 1.5K Jun 11 20:40 queue_log.53
-rw-r--r-- 1 root root 40 Jun 11 23:59 queue_log.54
-rw-r--r-- 1 root root 40 Jun 12 23:59 queue_log.55
-rw-r--r-- 1 root root 1.7K Jun 14 20:50 queue_log.56
-rw-r--r-- 1 root root 1.9K Apr 23 21:29 queue_log.6
-rw-r--r-- 1 root root 78 Apr 25 10:20 queue_log.7
-rw-r--r-- 1 root root 251 Apr 26 08:42 queue_log.8
-rw-r--r-- 1 root root 1.1K Apr 27 18:12 queue_log.9
-rw-r--r-- 1 root root 187K Jun 9 20:32 warning.50
-rw-r--r-- 1 root root 1023K Jun 10 20:26 warning.51
-rw-r--r-- 1 root root 799K Jun 11 22:42 warning.52
-rw-r--r-- 1 root root 623K Jun 12 14:12 warning.53
-rw-r--r-- 1 root root 0 Jun 12 23:59 warning.54
-rw-r--r-- 1 root root 1.9M Jun 14 20:30 warning.55
-rw-r--r-- 1 root root 17M Apr 23 22:06 warning.6
-rw-r--r-- 1 root root 4.0M Apr 25 13:54 warning.7
-rw-r--r-- 1 root root 6.1M Apr 26 20:48 warning.8
-rw-r--r-- 1 root root 6.3M Apr 27 21:01 warning.9
-rw-r--r-- 1 root root 1.3M Jun 8 23:58 messages.49
-rw-r--r-- 1 root root 5.4M Apr 22 23:58 messages.5
-rw-r--r-- 1 root root 1018K Jun 9 23:58 messages.50
-rw-r--r-- 1 root root 1.9M Jun 10 23:58 messages.51
-rw-r--r-- 1 root root 1.6M Jun 11 23:58 messages.52
-rw-r--r-- 1 root root 1.3M Jun 12 23:58 messages.53
-rw-r--r-- 1 root root 545K Jun 13 23:58 messages.54
-rw-r--r-- 1 root root 2.7M Jun 14 23:59 messages.55
-rw-r--r-- 1 root root 19M Apr 23 23:58 messages.6
-rw-r--r-- 1 root root 5.0M Apr 25 23:58 messages.7
-rw-r--r-- 1 root root 7.1M Apr 26 23:58 messages.8
-rw-r--r-- 1 root root 7.3M Apr 27 23:58 messages.9
-rw-r--r-- 1 root root 423K Jun 6 23:59 full.44
-rw-r--r-- 1 root root 624M Jun 7 23:59 full.45
-rw-r--r-- 1 root root 515M Jun 8 23:59 full.46
-rw-r--r-- 1 root root 493M Jun 9 23:59 full.47
-rw-r--r-- 1 root root 673M Jun 10 23:59 full.48
-rw-r--r-- 1 root root 620M Jun 11 23:59 full.49
-rw-r--r-- 1 root root 351M Apr 25 23:59 full.5
-rw-r--r-- 1 root root 248M Jun 12 23:59 full.50
-rw-r--r-- 1 root root 469K Jun 13 23:59 full.51
-rw-r--r-- 1 root root 693M Jun 14 23:59 full.52
-rw-r--r-- 1 root root 521M Apr 26 23:59 full.6
-rw-r--r-- 1 root root 523M Apr 27 23:59 full.7
-rw-r--r-- 1 root root 366M May 15 23:59 full.8
-rw-r--r-- 1 root root 565M Apr 30 23:59 full.9
-rw-r--r-- 1 root root 0 Jun 9 23:59 event_log.52
-rw-r--r-- 1 root root 0 Jun 10 23:59 event_log.53
-rw-r--r-- 1 root root 0 Jun 11 23:59 event_log.54
-rw-r--r-- 1 root root 0 Jun 12 23:59 event_log.55
-rw-r--r-- 1 root root 0 Jun 13 23:59 event_log.56
-rw-r--r-- 1 root root 0 Apr 22 23:59 event_log.6
-rw-r--r-- 1 root root 0 Apr 23 23:59 event_log.7
-rw-r--r-- 1 root root 0 Apr 25 23:59 event_log.8
-rw-r--r-- 1 root root 0 Apr 26 23:59 event_log.9
Por isso que preciso de algum comando concatenado com o rm que liste somente todos os arquivos do mes 04 e logo apos delete-os.
Obrigado.