delete a line containing the string sed code example Example: sed remove line containing sed '/pattern to match/d' ./infile