Filipe, you said that you are doing some "sed"s. I guess its also some
kind of manipulation. May I ask you to explain a little more about it?

Sed is a linux command-line Stream EDitor that supports basic regular expressions and processing commands.  Filipe's example is rather advanced, but a simplified example might help:

sed 's/>>//g' my_file

This invokes sed on "my_file" and searches each line for ">>" and replaces it with nothing (i.e. removes it).  The quotes part is the sed instructions.  The result is the same as:

    cat my_file | sed 's/>>//g'

So that allows you to chain different manipulations together:

    cat my_file | sed 's/>>//g' | sed 's/<<//g' 

Or, that could be condensed:

    cat my_file | sed 's/>>//g; s/<<//g' 

See the man page for sed, or this tutorial:
http://www.grymoire.com/Unix/Sed.html