Tutorial Series

Using Sed

Using Sed


In this interactive tutorial series, you’ll explore basic and advanced operations with sed , the command line stream editor found in Linux. You will almost certainly never replace your regular text editor with sed, but it will certainly become a welcomed addition to your text editing toolbox.

Summary View
detailed View

Series Tutorials


The sed stream editor is a non-interactive line editor that can perform powerful editing operations on text streams or files. Learning to use sed well will allow you to transform text with great speed and flexibility.


The sed stream editor can be used to perform complex editing operations with a minimal amount of instruction. The automated nature of sed makes it perfect for use in scripts and background processing. This article will continue where the Basics of Using the Sed Stream Editor article left off.

Check out all our Tutorial Series

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel