الانتقال إلى المحتوى

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

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP