Concatenate multiple files
Posted: 20 Nov 2016 20:47
Hi,
I have 50 text files in one directory, (C:\combined). I want merge them to a single file but with one condition that to verify each file date and which is mentioned on line 2 DATE : dd/mm/yyyy. Merge all the file of Today's date only to new file c:\Real\Report.txt, and to move all those merged file to c:\backups
File format
line 1......
line 2.......................DATE : dd/mm/yyyy(aligned centre).........................User : xyz
data...
data...
data...
The structure of all the files are same and does not change.
Thanks in advance.
I have 50 text files in one directory, (C:\combined). I want merge them to a single file but with one condition that to verify each file date and which is mentioned on line 2 DATE : dd/mm/yyyy. Merge all the file of Today's date only to new file c:\Real\Report.txt, and to move all those merged file to c:\backups
File format
line 1......
line 2.......................DATE : dd/mm/yyyy(aligned centre).........................User : xyz
data...
data...
data...
The structure of all the files are same and does not change.
Thanks in advance.