mercredi 8 avril 2015

bash: find -exec grep in if statement

I have a if statement like this and I cant make it work.



if find "$DIRECTORY" -NAME "$FILE" "OPTION1" "OPTION2" -exec grep -l -q $CONTENT {} \;


find paths must precede expression... I tried \'"$FILE"\' , \'$FILE\' same result.


Aucun commentaire:

Enregistrer un commentaire