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

Command of the day No. 20: grep -v. Purpose: Shows every line that does not match. Example: grep -v INFO logs/app.log. Remember: -v hides the noise and leaves the rest.
The same card as an image, 1080 x 1350 pixels.

Today's card ยท All cards so far