Practice this fail.
That dot matched everything.
Linux · Restart as often as you like
Read the error, choose a command, and learn
why it works. Nothing runs on your machine.
Using GNU grep, print lines containing the literal string api.example.com in hosts.txt. Dots must not act as regular-expression wildcards.
That dot matched everything.
$ grep api.example.com hosts.txt
apiXexampleYcom
How do you treat the pattern as fixed text?
Fixed. By hand.
grep -F -- api.example.com hosts.txtgrep -F matches fixed strings rather than regular expressions. Shell quoting alone does not turn a regular-expression dot into a literal dot.
Practice does not affect your daily score or streak.