The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Merging two files venommaker UNIX for Dummies Questions & Answers 4 01-10-2008 05:15 AM
Merging info Manan Shell Programming and Scripting 3 05-20-2006 04:51 AM
Merging lines into one Foxgard UNIX for Dummies Questions & Answers 8 06-19-2005 03:36 AM
Merging data ReV Shell Programming and Scripting 8 06-03-2005 12:14 AM
Merging Partitions camerja1 UNIX for Dummies Questions & Answers 1 12-10-2002 03:20 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-04-2006
Registered User
 

Join Date: May 2006
Posts: 2
Merging Help

Hi Gurus,

I need a help in merging the files.
I have nearly 7 files and the files will have time stamp in it.

I need to merger these files condition is it is not necessary that all the 7 files has to be there.

suppose if i have only 3 files availabe out of these 7 then i need to merge these 3 only.

Please help me out in solving this.

Thanks in advance

Regards
kumar
Reply With Quote
Forum Sponsor
  #2  
Old 05-04-2006
Registered User
 

Join Date: Jan 2005
Posts: 682
Your requirements are too vague. Provide some example of what the 7 files will contain.
Reply With Quote
  #3  
Old 05-04-2006
Registered User
 

Join Date: May 2006
Posts: 2
ex) file120060504.dat
file220060504.dat
file320060504.dat
....
file720060504.dat

this is how my files will look like.

I need to merge them.

scenario is like this

today out of these 7 files ,3 files can come. In that case i need to merge the 3 files.
2morrow all 7 can come i need to merger them. like this
Reply With Quote
  #4  
Old 05-04-2006
Registered User
 

Join Date: Jan 2005
Posts: 682
If you are simply trying to consolodate all of the logs into a single log file then you will use cat:

cat *20060504.dat > biglog20060504.dat
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0