Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

sed

Stream editor

Syntax

sed [OPTION]... script [file]...

Common Options

-iEdit in place
-nSilent mode
-eAdd script
-rExtended regex

Common Examples

sed 's/old/new/g' file.txt

Replace text

sed -i 's/old/new/g' file.txt

Edit file in place

sed '3d' file.txt

Delete line 3

Related Commands

Related Tools

More Code & Dev Tools