mercredi 8 janvier 2020

shell script - too many arguments

I am unsure what is causing this error. Script continues to run and enters the "if" statement without issues.

"./test.sh: line 79: [: too many arguments"

if [ grep -Fq "variable=00000000000" /home/me/test.txt ] ; then             #line 79
             ........
             ........
else
             echo "hi"
fi

Aucun commentaire:

Enregistrer un commentaire