- 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.