Unix/Linux Go Back    

UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

Concatenation of different reports dynamically

UNIX and Linux Applications

Thread Tools Search this Thread Display Modes
Old Unix and Linux 08-22-2016
Jesshelle David Jesshelle David is offline
Registered User
Join Date: Aug 2016
Last Activity: 30 October 2016, 9:34 AM EDT
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Concatenation of different reports dynamically


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"

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.

Sponsored Links
Old Unix and Linux 08-22-2016
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Join Date: Jul 2012
Last Activity: 23 September 2017, 6:14 PM EDT
Location: San Jose, CA, USA
Posts: 10,508
Thanks: 542
Thanked 3,675 Times in 3,135 Posts
Moderator's Comments:
Concatenation of different reports dynamically 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 03:06 AM..
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Issue in Concatenation/Joining of lines in a dynamically generated file TomG Shell Programming and Scripting 8 03-25-2015 04:22 AM
Concatenation Of Variables jaxim UNIX for Dummies Questions & Answers 6 08-15-2011 09:55 AM
Concatenation Asteroid Shell Programming and Scripting 11 04-04-2007 06:15 AM
Concatenation videsh77 Shell Programming and Scripting 2 12-14-2004 05:13 AM
How to implement cron job to run my reports dynamically? siva Shell Programming and Scripting 1 05-15-2002 12:17 PM

All times are GMT -4. The time now is 01:37 PM.