The FOR loop has the following syntax:
for v in `cat test.txt`
do
...
done
I want to know if there is a syntax like:
if v in `cat test.txt`
then
...
fi
Basically, I want to know if a string is in a variable that contains a list of strings. The bash array should be able to do this. But I want a simpler solution.