jeudi 25 janvier 2018

if: expression syntax error while running cshell script

I am trying to code a simple csh programming where i want to grep in a file a string :

if grep "string" filename then

exit

endif

After running this I am getting following error: if: Expression syntax

Please help me resolve the issue

Aucun commentaire:

Enregistrer un commentaire