2015-08-22

MacOS - How to replace all lines of a text file matching a string (in terminal)

grep -vwE "(string to replace)" sourcefile.txt > destinationfile.txt

No comments:

Post a Comment