I have the following table:
column1 column2 1 aaa^bbb 2 aaa^bbb|ccc^ddd
I would like to have a output file as follows:
column1 column2 column3 1 aaa bbb 2 aaa bbb 3 ccc ddd
Could you mind to let me know if there are smart way of doing this?
Update:
I was trying to do two things;
For ^, I want to separate the context to the column 2 and column 3.
For |, I want to separate it to the next row, but keeping the same number in column1 (the column1 is the same for row 2 and 3. Sorry that I make a mistake here.
To rewrite, input is as follows:
column1 column2 x aaa^bbb y aaa^bbb|ccc^ddd
Output is as follows:
column1 column2 column3 x aaa bbb y aaa bbb y ccc ddd