I've a set of data which is grouped vertically and I want that data set in horizontal form. The data is in a file. I think I've to use shell script to do the task.
But I do not have clear idea how to do this task.
###### DATA IN FILE ######
Name: client1
Id: client101
Address: addrs1
Shopping Category: regular
Items in Cart: 2
###### REQUIRED RESULT FORMAT ######
Name Id Address Shopping Category Items in Cart
client1 client101 addrs1 regular 2
How can I do this?
Note: the gap between the characters is 1 tab.
Please also suggest if there is any other way to do this rather than using shell script.
Thank You!!!
But I do not have clear idea how to do this task.
###### DATA IN FILE ######
Name: client1
Id: client101
Address: addrs1
Shopping Category: regular
Items in Cart: 2
###### REQUIRED RESULT FORMAT ######
Name Id Address Shopping Category Items in Cart
client1 client101 addrs1 regular 2
How can I do this?
Note: the gap between the characters is 1 tab.
Please also suggest if there is any other way to do this rather than using shell script.
Thank You!!!
Comment