Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete lines that contain a pattern in unix

sed -i '/pattern to match/d' ./infile
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #lines #pattern #unix
ADD COMMENT
Topic
Name
9+6 =