arrays start the index from zero not one.
If you want to prove existence of one of the array elements in the file comp.txt
using grep:
Code:
grep -q -e "${rtab[1]}" -e "${rtab[2]}" -e "${rtab[3]}" -e "${rtab[4]}" -e "${rtab[4]}" comp.txt
if [[ $? -eq 0 ]] ; then
echo "found"
else
echo "not found"
fi