Hello, Is it possible to do a grep with keywords stored in the array.
Here is the possible code snippet... Please correct it
args=("key1" "key2" "key3")
cat file_name |while read line
echo $line | grep -q -w ${args[c]}
done
At the moment, I can search for only one keyword. I would like to search for all the keywords which is stored in args array.
Any suggestion would be highly appreciated.
Thanks, Kiran