Posts Tagged ‘regex’

May 12, 2014 0

using sed to process file and delete lines matching a pattern

By in linux

sed ‘/pattern to match/d’ ./infile >> outfile or cat file | sed ‘/pattern to match/d’ >> ourfile

Tags: , ,