how to remove line from file using sed code example Example: sed remove line containing sed '/pattern to match/d' ./infile