Nicolas SABOURET wrote:
> 
> if [ grep -c "chaîne" -gt 0 ]; then ...
> 

grep -c "chaine" nomfichier en fait, et entre ` (backquote) si c'est
dans le "if".

Pardon d'avoir été approximatif.

Nico.
-- 
Nicolas SABOURET
LIMSI-CNRS, BP133, 91403 Orsay, France
http://www.limsi.fr/Individu/nico

Répondre à