grep basic usage in Linux

Question:
Find the file under /etc directory that contains the string 172.16.238.197. Save the answer using the absolute path in the file /home/bob/ip

Answer:

sudo grep -rl '172.16.238.197' /etc > /home/bob/ip