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

Re: Script pour supprimer recursivement...



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 debian-user-french-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: