Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

deletes lines including regex match

Use d option at the end of sed replace definition for deleting line of matches.
sed -i "" "s/matching_pattern/d" file.txt
 
PREVIOUS NEXT
Tagged: #deletes #lines #including #regex #match
ADD COMMENT
Topic
Name
3+3 =