- No.
- 20
- Date
- Learning goal
- Terminal Start, lesson 10
- Level
- 2 of 3
Command of the day No. 20: grep -v
Purpose: Shows every line that does not match.
Syntax: grep -v word file
Example:
grep -v INFO logs/app.log
WARN disk 85% full
ERROR database timeout
error cache miss
WARN slow response
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.