|
|
|
| [shell]test la présence 1 mot dans un fichier par stéphane |
mercredi 12 décembre 2007 à 09:13:04 |
Configuration: Linux Mandriva Firefox 2.0.0.8
|
Salut, grep 'mot_à_chercher' fichier retval=$? if [ "$retval" = 0 ] then echo "OK" else echo "NOK" fi;-)) Z'@+...che. JP : Zen, my Nuggets ! ;-) Le savoir n'est bon que s'il est partagé. |
| 06/09 11h17 | [shell] tester si un fichier est déplaçable | Linux/Unix | 06/09 17h09 | 3 |
| 04/04 22h39 | Shell - test: fichier ou répertoire ? | Linux/Unix | 21/04 19h26 | 7 |
| 28/08 11h31 | teste presence fichier et action | Programmation | 28/08 11h31 | 0 |
| 22/02 12h23 | Shell, tester une ligne dans une boucle IF | Linux/Unix | 24/03 18h45 | 15 |