Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed add new lines using a pattern

sed -i -e 's/yourpattern/yourpatternXXXTTTXXX/g' -i -e 's/XXXTTTXXX/
/g' file
									^add some unique pattern here
                                 # -i update the file , try without -i   
 
PREVIOUS NEXT
Tagged: #sed #add #lines #pattern
ADD COMMENT
Topic
Name
7+3 =