terminal.cab
No.
18
Date
Learning goal
Terminal Start, lesson 10
Level
1 of 3

Command of the day No. 18: grep -i

Purpose: Finds lines no matter if upper or lower case.

Syntax: grep -i word file

Example:

grep -i error logs/app.log
ERROR database timeout
INFO retry after ERROR ok
error cache miss
ERROR payment failed

Output from the simulator, as on a real Linux.

Options:

Try it in the terminal Share image

Fills in the command. Nothing runs until you press Enter.

Command of the day No. 18: grep -i. Purpose: Finds lines no matter if upper or lower case. Example: grep -i error logs/app.log. Remember: With -i, ERROR, Error and error are all the same.
The same card as an image, 1080 x 1350 pixels.

Today's card ยท All cards so far