i have three variables $a, $b, $c. I don't know whether the three variables are set. I want the variable in the GREP query only if the variables are set. How do i do this?
find . -iname "*.txt" -type f | xargs grep -inw "$a" -sl | xargs grep -inw "$b" -sl | xargs grep -inw "$c" -sl
find .* -iname "*.txt" -type f | xargs grep -iw "$a|$b|$c" -sl