I've just posted an entry on the interesting topic mentioned in the title. How many times were you tempted to use sed to find out certain segments, but were daunted by the apparent difficulty of the task? It has happened to all of us at some point. Well, this post is an important first step towards making use of this powerful editor for this purpose.
Processing TMX with sed.