Originally Posted by pklcnu
Hi Frieza thanks very much for your reply and help, your time and help is much appreciated.
I tried the command that you sent it is working fine, but my requirement is like I had 100 files all with common prefix like 'Rej' and each file had different content in it. I need to combine all those files into one single file with the file name displayed on the top of its own content. I tried your command but everytime it is overwriting the one before. How can I see all in one along with file names ?
For example if I got two files with names Rej_abc and Rej_abcd. Suppose the content of Rej_abc is 'This is my first programme' and the content of second file Rej_abcd is 'This is my second programme'. Now I want a third out put file which includes both files content along with the names like the following.
This is my first programme
This is my second programme'