If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Merging Text file--

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-04, 16:07
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
Exclamation Merging Text file--

I have text file's containg many rows and about 8 columns

on the 3rd column their is time

Is there a utility that will merge this file according to this column

so if i have 2 files

624?????.xyz and 624?????.abc
gives one big file

624?????.def

thnks
__________________
bigfoots
Reply With Quote
  #2 (permalink)  
Old 06-23-04, 16:12
vgersh99 vgersh99 is offline
Registered User
 
Join Date: Apr 2004
Location: Boston, MA
Posts: 325
you might consider looking into 'sort' and 'comm'.

What exactly do you mean by 'merging'?

could you provide a couple sample files xyz and abc AND the desired result, pls!
Reply With Quote
  #3 (permalink)  
Old 06-24-04, 13:16
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
Arrow here is a sample file

there are 3 files (u can open with notepad)

62401018.a + 62401001.b==62401018.sch

third column is the time , if it exist in a it should not pickup from b and go to
the next line

I know very well sql,html and a little bit of asp and learning


thanks
Attached Files
File Type: zip Desktop.zip (5.3 KB, 25 views)
__________________
bigfoots
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On