The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-24-2006
u263066 u263066 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 66
Angry merge file

i have file like :
file_1.txt
file_2.txt
file_3.txt
...
...
file_n.txt

and each file have one string (similar nature)
File_1.txt
111
file_2.txt
222
file_3.txt
333
....
file_n.txt
nnn


following the above example
I want a output file as file.txt and string inthe file should be
11122233334444....nnn

How to do this through script...ie first checking into folder ie how many files subfile exist and then merge a master file out of child file.

thanks a ton in advance
anand