How to delete from a text file, all lines that contain a specific string?
To remove the line and print the output to standard out: To directly modify the file – does not work with BSD sed: Same, but for BSD sed (Mac OS X and FreeBSD) – does not work with GNU sed: To directly modify the file (and create a backup) – works with BSD and GNU … Read more