Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

🔍 Basic Grep Guide

  • Search for a word in all .md files
grep "keyword" *.md
  • Search recursively through directories
grep -r "keyword" .
  • Ignore case
grep -i "keyword" filename.md
  • Show line numbers
grep -n "keyword" filename.md
  • Combine: recursive, case-insensitive, line numbers
grep -rin "keyword" .
  • Use regular expressions (careful—this is where it gets spicy)
grep -E "foo|bar" file.md