ES
← Back to RHCSA EX200

Published: 3/18/2026

RH134 — Regular expressions

Regex for searching and filtering text with grep and shell tools.

Goal

Document chapter 2 of RH134 v10.0 while studying it: use regular expressions for text search and filtering in admin tasks.

Chapter content

SectionTopic
2.1Text matching with regular expressions
2.2Guided exercise: text matching with regular expressions
2.3Quiz: text matching with regular expressions
2.4Summary

What I practice

Reference commands

grep -E 'pattern' file
grep -E '^root:' /etc/passwd
grep -Ev 'comment|empty' /var/log/messages

Lab notes

(Fill in after guided exercise 2.2: patterns that worked and cases that failed.)

Next step

Review quiz 2.3 on ROL and note the most useful patterns for the exam here.