I need to get data from grepped string, but I'm kind of newbie.
I have grepped data string like this:
email=test@mail.com&id=12451233&name=Susanna&surname=Scott&street=East
I need to parse email, id, name and surname from this.
Tried to grep like this:
sed -e 's/email\ \(.*\)&id/\1/'
Nothing happens (need to do it using sed) Displaying data one under another is second step
expected format:
test@mail.ru|12451233|Susanna|Scott