Search Results

Search: Posts Made By: senhia83
1,223
Posted By senhia83
Hi Ravinder, The input that you provided...
Hi Ravinder,

The input that you provided seems to have duplicate 1st and 2nd col combinations.


cat matrix_test
1,a,1a
1,b,1b
1,c,1c
2,a,2a
2,b,2b
3,a,3a
4,d,1a
4,d,1b
5,e,1a...
1,223
Posted By senhia83
List to matrix
I want to go from
1,a,1a
1,b,1b
1,c,1c
2,a,2a
2,b,2b
3,a,3a

to

a,b,c
1,1a,1b,1c
2,2a,2b,-
3,3a,-,-


Here is what I tried


awk -F, 'BEGIN {OFS = ","}
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy