Concatenation of different reports dynamically

 
Thread Tools Search this Thread
# 1  
Old 08-22-2016
Concatenation of different reports dynamically

Hi,

I have the following reports that get generated every 1 hour and this is my requirement:

1. 5 reports get generated every hour with the names "Report.Dddmmyy.Thhmiss.CTLR"
"Report.Dddmmyy.Thhmiss.ACCD"
"Report.Dddmmyy.Thhmiss.BCCD"
"Report.Dddmmyy.Thhmiss.CCCD"
"Report.Dddmmyy.Thhmiss.DDDD"

2. At the end of the day I need to concatenate all reports with similar names into a single file.
For example: 24 files for pattern "Report.Dddmmyy.Thhmiss.CTLR" into a single file called "Test.dat" and so on.

3.Please note that the last four letters of the file name will be a constant and the reports have to be concatenated using this.

4. I do not want to parameterize just these last four letters or list the last four letter as ls -l *CTLR* as this will be hard coding so could there be a better way of handling this!?

Kindly advise.

Thanks,
Jess
# 2  
Old 08-22-2016
Moderator's Comments:
Mod Comment This thread seems to be a duplicate of the thread Concatenation of files with same naming patterns dynamically. Please continue any further discussion of this topic there.

There thread is closed.

Last edited by Don Cragun; 08-23-2016 at 04:06 AM..

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Concatenation of files with same naming patterns dynamically Jesshelle David Shell Programming and Scripting 5 08-24-2016 06:12 PM
Concatenation script Jesshelle David UNIX for Beginners Questions & Answers 1 08-22-2016 07:01 PM
UNIX/Linux help in concatenation of multiple reports Jesshelle David Shell Programming and Scripting 1 08-22-2016 07:00 PM
Issue in Concatenation/Joining of lines in a dynamically generated file TomG Shell Programming and Scripting 8 03-25-2015 05:22 AM
File concatenation cmccabe Shell Programming and Scripting 3 12-30-2014 10:51 AM
Help with String concatenation PreetArul Shell Programming and Scripting 7 07-05-2013 04:52 PM
Line concatenation help Aditya.Gurgaon Shell Programming and Scripting 4 04-10-2013 01:39 PM
grep concatenation?? Iifa UNIX for Dummies Questions & Answers 8 12-09-2011 12:35 PM
String Concatenation sh_kk Shell Programming and Scripting 1 11-23-2009 05:00 AM
Recursive Concatenation Kerensa@unsw.ed UNIX for Dummies Questions & Answers 1 11-20-2008 08:10 AM
Concatenation Asteroid Shell Programming and Scripting 11 04-04-2007 07:15 AM
File Concatenation samit_9999 UNIX for Dummies Questions & Answers 3 11-21-2006 06:26 AM
string concatenation systemsb UNIX for Dummies Questions & Answers 7 04-04-2006 01:03 PM
Concatenation videsh77 Shell Programming and Scripting 2 12-14-2004 06:13 AM
How to implement cron job to run my reports dynamically? siva Shell Programming and Scripting 1 05-15-2002 01:17 PM