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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
merging two files rameshonline Shell Programming and Scripting 14 04-06-2009 01:20 AM
merging of 2 files AWK, SHELL or something else klut Shell Programming and Scripting 24 03-20-2009 09:45 AM
merging multiple timestamps into one ChicagoBlues UNIX for Advanced & Expert Users 2 03-03-2008 06:21 PM
Merging two files venommaker UNIX for Dummies Questions & Answers 4 01-10-2008 08:15 AM
merging colums from different files ppass Shell Programming and Scripting 5 06-19-2006 07:26 AM

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 10-03-2006
jack1981 jack1981 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 42
merging multiple log files

Hello,

I have 8 sql loader scripts which produce ".bad" file if there is any errors, how can I join the contents of these files together in one column?

Code:
file 1

CA-94061-TSS    Tkb Sport Shop                              
CA-95133-V        Vollyrite                                   
TX-77007-WAD    Wheels And Deals 

file 2

CA-96711-J       Jocksports                                  
TX-75051-JSBS  Joe's Bike Shop                             
CA-97544-JT     Just Bikes
etc

I want one complete file but I am not sure how to merge them, any ideas?

Cheers
  #2 (permalink)  
Old 10-03-2006
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 578
Can you show us the way you want to merge your input files? I mean your desired output?
  #3 (permalink)  
Old 10-03-2006
jack1981 jack1981 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 42
Quote:
Originally Posted by shereenmotor
Can you show us the way you want to merge your input files? I mean your desired output?

Hi, yes.

Like this:

Code:
 
new file

CA-94061-TSS    Tkb Sport Shop                              
CA-95133-V        Vollyrite                                   
TX-77007-WAD    Wheels And Deals 
CA-96711-J       Jocksports                                  
TX-75051-JSBS  Joe's Bike Shop                             
CA-97544-JT     Just Bikes
Cheers
Mike
  #4 (permalink)  
Old 10-03-2006
srikanthus2002's Avatar
srikanthus2002 srikanthus2002 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
Code:
cat file1 file2 > new_file
I think this is what you are looking for

thanks
Sponsored Links
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 05:46 AM.


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