Linux Guides

What is sed Command?

The sed command in Linux is a stream editor for performing text transformations and edits in files or streams.

Linux Guides

Replace Text in Files

Use sed 's/old/new/' file to replace text within a file easily.

Linux Guides

Delete Lines with sed

Remove unwanted lines using sed '3d' file or target patterns like sed '/pattern/d' file.

Linux Guides

Append Text with sed

Add text after a specific line using sed '3a\New Text' file for quick edits.

Linux Guides

Use sed for Scripts

Automate complex edits by combining multiple sed commands in shell scripts.