Given this stream:
[foo] 123 [bar]
[gar] dsa [har] 345
[uf] 88 [gc] 43 [br]
I want to process this with sed (or anything else) so the output would be:
foo bar
gar har
uf gc br
I tried cat myfile | sed -e 's/^.*\[//;s/\].*$//'
But it gives me only the last instance.
My real input is something like:
53f42d4 [the contacts are duplicated] Adding support in picking email verified users [https://trello.com/c/663]
3c454b0 [the contacts are duplicated] splitting contact by phone numbers and emails and changing contact model to contain only 1 email [https://trello.com/c/663]
0e63e5b [we should not let a user confirm his email if we have a user with this confirmed email already] better doc [https://trello.com/c/643]
02671b7 [we should not let a user confirm his email if we have a user with this confirmed email already] preventing updating email if already in used by other user [https://trello.com/c/643]
So I'd like to get for the first line:
the contacts are duplicated https://trello.com/c/663