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
Changing date format manneni prakash Shell Programming and Scripting 7 06-27-2008 02:56 AM
changing format shary Shell Programming and Scripting 4 01-31-2008 05:20 AM
Changing the format of date nhatch UNIX for Dummies Questions & Answers 4 04-11-2006 10:17 AM
Changing date format Sabari Nath S Shell Programming and Scripting 5 12-07-2005 03:38 AM
Changing the date format Dream86 Shell Programming and Scripting 10 06-08-2005 01:35 PM

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

Join Date: Jun 2008
Posts: 4
Changing display and format of file

I have an input file which looks like this:
601 a
602 a
603 a
601 b
610 c
615 c
603 d
601 d
612 d

I need the utput to look like this

601 a 602 603
602 a 601 603
603 a 601 602
601 b
610 c 615
615 c 610
603 d 601 612
601 d 603 612
612 d 601 603

Any idea how this can be done?

Regards
Wah
  #2 (permalink)  
Old 08-02-2008
p50p100 p50p100 is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 21
Firstly, please create file below:

a 601 602 603
b 601
c 610 615
d 601 603 612

Secondary, please use "join" command:

a 601 601 602 603
a 602 601 602 603
a 603 601 602 603
b 601 601
c 610 610 615
c 615 610 615
d 601 601 603 612
d 603 601 603 612
d 612 601 603 612

Thirdly, please replace 1st word and 2nd word.

Forthly, please delete same word as 1st word.

It's my idea. One step is easy.
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:23 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