.....following data:
field1^Vfield2^V^field3^Vfield4
I need to take the data from test1 and output it into test2 but where i can specify the order that the fields come out.
I have tried to cut the fields using the following command
grep "f" test1 | cut f 4,3,2,1 -d"^V" >> test2. However this merely outputs the fields in test2 in their original order.
Is there an awk routine that I can run to do this (bearing in mind that I do not know any awk!)?
Thankyou very much in advance.
field1^Vfield2^V^field3^Vfield4
I need to take the data from test1 and output it into test2 but where i can specify the order that the fields come out.
I have tried to cut the fields using the following command
grep "f" test1 | cut f 4,3,2,1 -d"^V" >> test2. However this merely outputs the fields in test2 in their original order.
Is there an awk routine that I can run to do this (bearing in mind that I do not know any awk!)?
Thankyou very much in advance.