The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Urgent : Help required V3l0 AIX 2 01-11-2008 11:37 AM
Urgent help required umanglalani Shell Programming and Scripting 1 04-12-2007 04:24 AM
Very Urgent help required in Shell Program Suppandi Shell Programming and Scripting 1 12-09-2005 08:33 AM
Urgent help required with uname() rm1 High Level Programming 2 02-23-2005 10:18 PM
C programming - Urgent help required kkumar1975 High Level Programming 2 04-08-2002 08:36 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-16-2006
rahul26 rahul26 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 15
Arrow Urgent Help required

Hi UNIX Gurus,
I have got the following requirement and totally how to proceed.
A file is dummy.lst is there in the following format:--

ID NAME TYPE_ID
-------- --------- -----------
1947 Asia 7
1942 India 4
1942 India 7
1942 Kenya 7


But I want a spool file from it in the follwing format:--
ID NAME TYPE_ID
-------- -------- -----------
1947 Asia 7
1942 India,Kenya 4,7

The logic that is going to be followed is whenever the ID is same,
we need to consolidate the all the values of NAME and TYPE_ID in a comma separated manner with all the unique values as in above.

Thanx in advance,
Regards,
rahul26
  #2 (permalink)  
Old 08-16-2006
Glenn Arndt's Avatar
Glenn Arndt Glenn Arndt is offline Forum Advisor  
Anomalous Lurker
  
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
Interestingly, a very similar problem was presented (and solved) in this recent thread: Need help in awk

Wierd.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0