How do you concatenate two huge XML files efficiently without writing any code?
Ought to be simple as all you need to do (assuming the documents use the same namespaces and namespace prefixes) is skip the closing tag of the root element in the first document as well as the XML declaration and opening tag in the second document. But how do you accomplish this on the command line? Get
dog. This tool works similar to cat but has an additional
--lines option for indicating one or more ranges of lines. A quick look though the docuementation reveals that this tool also has some more exciting options such as
--strfry to shuffle characters within each line and
--oog to translate the input back to the stone age…