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

[Pour être précis] Re: grep ou awk



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



Reply to: