The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
group by in files :-)
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
group by in files :-)
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
06-21-2005
hellsd
Registered User
Join Date: Nov 2004
Posts: 20
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 ?
hellsd
View Public Profile
Find all posts by hellsd
Find hellsd's past nominations received
Find hellsd's present nominations given