I have a big text file with similar data as below and need the text as in output
using awk or sed. any help is greatly appreciated.
Input:
City=Chicago Elden street
>>> reservedBy = business 1
>>> reservedBy = business 2
>>> reservedBy = business 3
City=Dallas Elm street
>>> reservedBy = business 1
>>> reservedBy = business 2
>>> reservedBy = business 3
Output:
City=Chicago Elden street
Chicago >>> reservedBy = business 1
Chicago >>> reservedBy = business 2
Chicago >>> reservedBy = business 3
City=Dallas Elden street
Dallas >>> reservedBy = business 1
Dallas >>> reservedBy = business 2
Dallas >>> reservedBy = business 3