Skip to content
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
All tools
Home
Compatibility
sed
Shell & Unix
sed Compatibility
Stream editor for filtering and transforming text.
All sed pages
sed -i on macOS vs Linux: GNU sed vs BSD sed
GNU sed takes -i with an optional attached suffix, BSD sed on macOS needs an argument: sed -i '' on macOS, sed -i on Linux. Other GNU vs BSD sed differences.
Esc