Bỏ qua nội dung

Searching with grep

English

Finding text with grep

  • grep searches for a word and prints only the lines that contain it:
grep error log.txt
  • Out of a huge log, you instantly see just the lines that matter.

grep error keeps only disk error and memory error from the five lines of log.txt

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP