![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Your requirements are too vague. Provide some example of what the 7 files will contain.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |