Most of what you deal with on a Linux system is plain text: log files, config files, CSV exports, command output. The shell comes with a set of tools built to search, change and summarise text without ever opening an editor. Paired with the pipes from the last module, they let you answer questions like "which IP addresses hit this server most often?" in a single line.
This module starts with grep for finding lines that match
a pattern, along with the basics of regular expressions.
Next comes sed, the stream editor, for find-and-replace
and other edits as text flows past. Then awk, which splits
each line into fields so you can pull out columns, filter rows and do
simple calculations. The module finishes with the small filters you'll
reach for constantly: cut,
tr, wc,
sort and uniq.
Grab a log file or a CSV to practise on as you watch the lessons in order, then continue on to Processes & Job Control.
Tech With Tim covers grep from the ground up: its syntax, an introduction to regular expressions, useful options, filtering command output, and searching through whole directories.
An episode of "anthony explains" introducing sed. It starts with everyday regex find-and-replace and shows that sed is really a small editing language of its own.
A fast, practical look at using AWK at the command line: splitting lines into fields, printing the columns you want, and processing structured text in a single short command.
Five small commands used every day in DevOps and sysadmin work: cut out columns, translate characters with tr, count with wc, put lines in order with sort, and remove or count duplicates with uniq.