I have been looking around but can't find the answer to my problem:
If the grep command displays no results, print "no results have been found" and increment x. But if the grep command find something, do nothing.
if [ grep -f file1 file2 == ]
echo "no results have been found $x"
x=`expr $x + 1 `
else
do nothing