< All Cheat Sheets

Cheat Sheet: sed

The sed command is a stream editor for filtering and transforming text, often used in scripts and command-line processing for tasks like search and replace, insertion, and deletion of text.

sed cheat sheet

Playground

Use BashSenpai to generate a command from a text prompt:

sed 's/apple/orange/g' fruits.txt > modified_fruits.txt

Download

Enter your email address and we'll happily send you a download link. The cheat sheet is available in PDF and PNG formats, light and dark.

Download
Download