I can't figure this out. I need to look at every line in file and check out whether it is matching word which is given in variable
I started through command read, but I don't know what am I supposed to use after that, I tried
grep but I probably used it wrongly.
while read line; do if [ $condition ] ;then echo "ok" fi done<file.txt