Option Examples

Option Example Description
-i sed -ibak 's/On/Off/' php.ini Backup and modify input file directly
-E sed -E 's/[0-9]+//g' input-file Use extended regular expressions
-n sed -n '3 p' config.conf Suppress default pattern space printing
-f sed -f script.sed config.conf Execute sed script file
-e sed -e 'command1' -e 'command2' input-file Execute multiple sed commands
Comments