Text processing
sed
Stream editor for text transformations.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verified: 2025-09-09
Syntax
$sed [OPTIONEN] 'SCRIPT' [DATEI]
Examples
$sed -n '1,10p' file.txt
$sed -i 's/old/new/g' file.txt
Typical use cases
?
Standard usage
sed --help
Note
Useful for quick edits in shell scripts.
Export