Archives for: April 2010, 16
Bash - Insert content of one file into another file
April 16th, 2010Had to insert a XML-snippet into another XML-file at a given location in a Bash-script. Reading the snippet into a variable is quite easy, just by using cat. The trouble was how to find the tag to replace most efficiently, then replace it with the xml-sn… more »