Is there any way to use while loop and grep all together? See my example:
while [[ !(grep -R -h "${text}" ${path}) ]];
do
...
done
It says:
./test_script.sh: line 1: conditional binary operator expected
./test_script.sh: line 1: expected `)'
./test_script.sh: line 1: syntax error near `-R'
./test_script.sh: line 1: `while [[ !(grep -R -h "${text}" ${path}) ]];'