← Linux and the Command Line
Lesson 17 of 51 · 5 XP
Warm-up: find a word warm-up
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
grep word prints only the input lines that contain that word:
grep error
Of the lines ok, error: no file, ok only one remains: error: no file.
Task. Print only the input lines that contain the word error.
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.