I have to append all files starting with 1 into a single file (1_AppendFile.txt) and starting with 2 into a single file (2_AppendFile.txt) and so on. I could loop through all the files check the starting value of the file and open a filehandle correspondingly and then print the data into the file. But when I consider file numbers close to 10000 it really gets very slow. Is there any other alternative that we can use here. Regards, Ravi.1_ABC.txt 2_ABC.txt 3_ABC.txt 1_XYZ.txt 2.XYZ.txt 5.XYZ.txt
In reply to Appending multiple files into one or more files by iamravikanth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |