linux how i delete a line in a file without editing code example Example: delete lines text file linux sed -i '' '/pattern to match/d' ./infile