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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…