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.

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

Moderator comments were removed during original forum migration.