|
group by in files :-)
My file looks like:
X^~^12^d
X^~^19^d
Y^~^5^d
Y^~^10^d
Y^~^11^d
Z^~^14^d
I need a script that will "group by" the first field and Concatenate the values.
My output should be:
X^~^12,19^d
Y^~^5,10,11^d
Z^~^14~d
Does anyone have any idea ?
|