Andrea Falco

Note e consigli vari
  • Home
  • Info
Home > Script Bash > Cancellare tutti i file vecchi

Cancellare tutti i file vecchi

26 luglio 2010 Andrea Falco Lascia un commento Vai ai commenti

Script per cancellare tutti i file più vecchi di un numero di giorni:

find /dir/to/file/* -mtime +3 -exec rm {} \;

dove -mtime +3 indica che verranno cercati i file creati più di 3 giorni fa.

  • Condividi questo:
Categorie:Script Bash Tag:
Commenti (0) Trackbacks (0) Lascia un commento Trackback
  1. Nessun commento ancora...
  1. Nessun trackback ancora...
E' necessario che tu sia collegato per poter inserire un commento.
String Replace in MySQL PHP cURL file download
RSS
Twitter

Recent Posts

  • Ripristinare grub2
  • String Replace in MySQL
  • Cancellare tutti i file vecchi
  • PHP cURL file download
  • Link mailto antispam
  • Decomprimere file .gz
  • System.Collections.Hashtable
  • Formattare i numeri con printf()
  • Watermark in PHP
  • Contare il numero di files in una directory

Tag Cloud

array_keys array_values BBCode BBCodes boot contare files cURL DictionaryEntry download grub2 grub 2 Hashtable HTTP ICollection linux liveCD MySQL opendir PHP printf() readdir REPLACE str_replace System.Collections System.Collections.Hashtable ubuntu watermark

Categories

  • Senza categoria
  • Tutorials

Blogroll

  • Development Blog
  • Documentation
  • Plugins
  • Suggest Ideas
  • Support Forum
  • Themes
  • WordPress Planet

Archives

  • gennaio 2011
  • ottobre 2010
  • luglio 2010
  • aprile 2010
  • gennaio 2010
  • novembre 2009
  • ottobre 2009
  • settembre 2009
  • luglio 2009

Meta

  • Collegati
Vai su WordPress
Copyright © 2009-2011 Andrea Falco
Tema di NeoEase. XHTML 1.1 e CSS 3 convalidati.