I need help with the command sed, in particular with the following expression:
sed -e 's/*(.*)//;s/>.*//;s/.*[:<]*//'
I know that s/pattern/replacement/ means that a pattern is replaced by a replacement and when there is no replacement it means that the pattern is just removed (is that correct?). Also, I have seen somewhere that ".*" matches anything greedy and that "[ ]" is a match of any of whatever its content is....I think.
Can anybody help please? What do the patterns *(.*)
or >.*
or .*[:<]*
mean?