My sed command is,
sed '/(.*:)/d' <<< 'abcd:bcde:cdeaf'
It must return,
(i.e.) all characters before the first colon in the line and the colon itself must be removed.
But this is not removing anything.
My confusion arises mainly due to,
1) Does parens for pattern matching need to be escaped inside sed regex-es?
2) In either case(with escaping/no escpaing), it is nt working. I tried,
sed -E '/\\(.*:\\)/d' <<< 'abcd:bcde'