Tag:
sed
At some point you may have the need to remove all lines within a text file that match a certain pattern. Accomplishing this is easy with the sed command. Here is the command format. $ sed -i ‘/PATTERN/ d’ file.txt The ‘-i‘ option allows you to edit the specified file in place. PATTERN is a [...]