A titre indicatif, il y avait aussi :
find -name "*.html" | xargv rm

kamel

At 15:33 27/04/2003 +0200, Aurelien Bompard wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le Dimanche 27 Avril 2003 17:07, David CABATON a �crit :
> Salut...
>
> Je cherche un script ou une commande qui supprime tous les fichiers
> *.html *.htm~ *.php~ � partir d'un repertoire racine et dans tous les
> sous repertores....
>
> Merc de votre aide !!!

Dans ce cas, la commande "find" est toute indiqu�e pour toi.

En gros, elle permet de chercher des fichiers selon beaucoup de crit�res
(dont le nom), et elle permet aussi d'executer une commande � chaque
fichier trouv� ! C'est donc ce qu'il te faut. La page de manuel de find de
donnera toutes les infos que tu veux (man find).

A+

Aur�lien
- --
http://gauret.free.fr

There are only 10 types of people in the world :
those who understand binary and those who don't.

GPG key: 1B4259B3 / 4832 1239 8C18 F5F3 C466  AE69 21A6 2396 1B42 59B3
(Note: The last 8 numbers in the fingerprint give the KeyID)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: http://gauret.free.fr

iD8DBQE+q9wgIaYjlhtCWbMRAhlzAKCpTPb8Kg9bmNbPLnrxExZabaBZ8QCfRtq4
m7sTiR2NmyiTi0VxCc82hTc=
=cWVl
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à