[AIX 5.1.9] find non recursif avec prune ?
Résolu/Fermé
_vince
Messages postés
37
Date d'inscription
mardi 30 janvier 2007
Statut
Membre
Dernière intervention
14 mai 2008
-
5 juil. 2007 à 17:25
zorgass - 10 oct. 2007 à 14:01
zorgass - 10 oct. 2007 à 14:01
A voir également:
- Find prune
- Ava find - Télécharger - Divers Utilitaires
- An exception occurred in the driver: could not find driver - Forum PHP
- Mobile find avis ✓ - Forum Téléphones & tablettes Android
- Cannot find required map name - Forum BIOS
- Find : format incorrect de paramètre ✓ - Forum Windows
3 réponses
jipicy
Messages postés
40842
Date d'inscription
jeudi 28 août 2003
Statut
Modérateur
Dernière intervention
10 août 2020
4 894
5 juil. 2007 à 18:31
5 juil. 2007 à 18:31
Salut,
Essaye plutôt ça :
;-))
Essaye plutôt ça :
find /path-to/ -path '/path-to/old-logs' -prune -type f -name '*.log' -mtime +2non ?
;-))
_vince
Messages postés
37
Date d'inscription
mardi 30 janvier 2007
Statut
Membre
Dernière intervention
14 mai 2008
5 juil. 2007 à 21:14
5 juil. 2007 à 21:14
J'ai essayé mais l'option -path n'existe pas sous AIX.
jipicy
Messages postés
40842
Date d'inscription
jeudi 28 août 2003
Statut
Modérateur
Dernière intervention
10 août 2020
4 894
5 juil. 2007 à 21:48
5 juil. 2007 à 21:48
Essaye ça alors :
find /path-to \(-name old-logs -prune \) -o \( -type f -name '*.log' -mtime +2 -print \);-))
_vince
Messages postés
37
Date d'inscription
mardi 30 janvier 2007
Statut
Membre
Dernière intervention
14 mai 2008
6 juil. 2007 à 09:22
6 juil. 2007 à 09:22
Effectivement, ca marche. Merci beaucoup. J'avoue que je n'aurais jamais pense a ecrire ca.