Sed
Sed (stream editor) is a classic Unix command-line utility for parsing and transforming text non-interactively, applying editing commands like substitution, deletion, and insertion to each line of input as it streams through.
20 resources across 2 libraries
Glossary Terms(3)
AWK
AWK is a classic Unix programming language and command-line tool, created in 1977 by Alfred Aho, Peter Weinberger, and Brian Kernighan, designed for scanning a…
Sed
Sed (stream editor) is a classic Unix command-line utility for parsing and transforming text non-interactively, applying editing commands like substitution, de…
Bash Scripting
Bash scripting is the practice of writing programs in Bash (Bourne Again SHell), the default command-line shell on most Linux systems and macOS's historical de…
Study Notes(17)
Branching and Loops in sed
Learn how sed uses labels, unconditional branches, and conditional branches to build loops and control flow inside its scripting language.
Common sed Idioms
A curated set of battle-tested sed one-liners for deletion, printing ranges, in-line insertion, and squeezing blank lines that you will reach for again and aga…
Config File Editing with sed
Using sed to safely automate edits to configuration files — in-place editing with backups, targeting keys precisely, and pitfalls when scripting changes to pro…
Regular Expressions in sed
How sed matches text using Basic and Extended Regular Expressions, including anchors, character classes, quantifiers, and the escaping rules that trip people u…
Running sed Scripts
How to invoke sed from the command line and from script files, including the key options that control input, output, and multi-command execution.
sed Best Practices
Practical habits for writing sed one-liners and scripts that are readable, portable, and safe to run against real data.
sed in Shell Pipelines
How to wire sed into Unix pipelines as a stream filter, combining it with cat, grep, sort, and xargs to build powerful one-liner text-processing workflows.
sed Interview Questions
The concepts interviewers probe most — the difference between sed and grep/awk, in-place editing, greedy matching, and multi-line handling — framed as question…
sed Quick Reference
A compact, scannable cheat sheet of sed's essential commands, addresses, flags, and regex constructs for fast day-to-day lookup.
sed Substitution Basics
A practical guide to the s command — sed's find-and-replace engine — covering delimiters, flags, backreferences, and the ampersand.
sed vs awk vs grep
A comparison of the three classic Unix text tools — when to reach for grep to search, sed to edit streams, and awk for field-oriented and programmable processi…
What Is sed?
An introduction to sed, the non-interactive stream editor that transforms text line by line as it flows through a pipeline.
Your First sed One-Liner
Build a genuinely useful sed one-liner from scratch, combining an address, a substitution, and options into a single practical command.
AWK vs sed vs grep
How the three classic Unix text tools differ in purpose and model, and when to reach for grep for searching, sed for stream editing, or AWK for field-aware pro…
Advanced sed Scripting
Move past basic search-and-replace to use sed's address ranges, hold space, branching, and in-place editing for multi-line, stateful text transformations.
Combining grep, awk, and sed
Learn how to chain grep, awk, and sed into efficient pipelines, choosing the right tool for filtering, transforming, and extracting text at each stage.
sed: Stream Editing Basics
Learn sed, the non-interactive stream editor, for search-and-replace, line deletion, and text transformation directly from the command line or in scripts.