Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell insert variable line to file after match

sed -i "/^start-of-match.*/a fixed-string=$str_var" filepath
 
PREVIOUS NEXT
Tagged: #shell #insert #variable #line #file #match
ADD COMMENT
Topic
Name
4+3 =