cli.fail

Practice this fail.

ERROR has several spellings.

Linux · Restart as often as you like

Read the error, choose a command, and learn
why it works. Nothing runs on your machine.

Browse all practice ↗

Linux · Beginner

Using GNU grep, print lines in app.log containing error in any letter case.

ERROR has several spellings.

$ grep error app.log

It missed ERROR and Error.

How do you ignore case while searching for error?

3 attempts remaining

Read why this fix works

ERROR has several spellings.

grep -i -- error app.log

grep -i enables case-insensitive matching. It lets this plain ASCII error pattern match error, Error, and ERROR.

Practice rounds do not affect the daily score or local streak. Try today’s challenge, or choose another scenario.

Copy your result