sed изтриване на ред, съдържащ
sed '/pattern to match/d' ./infile
изтриване на ред в sed
sed -e "/your_pattern/d" file
sed -e "/your_pattern/,+2 d" file # 2 lines after the pattern
sed -e '5,5d" # remove 5th line
изтрийте реда, който започва с sed
# Delete all lines starting with '#'
$ sed -i '/^#/d' filepath