Zsh Shell Tutorial #17: Master grep for Text Searching
5views
1likes
09:00
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Learn grep in Zsh! This lesson covers basic pattern searching, case-insensitive matching, line numbers, inverted matches, regular expressions with anchors and
character classes, extended regex, recursive directory searching, context lines, file type filtering, and piping commands to grep.
🔗 Source code: https://github.com/GoCelesteAI/zsh_text_processing_grep
⏱️ Timestamps:
0:00 — Intro
0:25 — Basic grep Explained
0:59 — Basic grep Demo
2:50 — Regex with grep Explained
3:24 — Regex with grep Demo
5:22 — Practical grep Explained
5:56 — Practical grep Demo
7:57 — Recap
8:29 — End
📋 Topics covered:
• Basic grep syntax: grep "pattern" file
• Case-insensitive search with -i
• Show line numbers with -n
• Count matches with -c
• Invert match with -v
• Anchors: ^ for start of line, $ for end of line
• Wildcard: . matches any character
• Character classes: [0-9], [a-z]
• Extended regex with -E for |, +, ?
• Recursive search with -r across directories
• Context lines with -A, -B, -C flags
• Filter file types with --include and --exclude
• Piping command output to grep
• Process searching with ps aux | grep
🎬 Part of the Zsh Shell Tutorial series — subscribe for weekly lessons!
Tags: zsh, zsh tutorial, grep, grep tutorial, text processing, regex, regular expressions, shell scripting, grep recursive, grep regex, grep flags, case
insensitive search, line numbers grep, invert match, character class, extended regex, grep context, grep include, grep pipes, command line, terminal, linux,
macos, beginner programming
Tags
zshzsh tutorialgrepgrep tutorialtext processingregexregular expressionsshell scriptinggrep recursivegrep regexgrep flagscase insensitive searchline numbers grepinvert matchcharacter class
Back to tutorialsOpen in YouTube
Duration
9:00
Published
February 16, 2026
Added to Codegiz
March 15, 2026