My problem, although appearing simple on the surface, does not seem as straight forward as I first thought.
I have a directory containing files, with each file having the same start such as apples_45.4554-34, apples_56.4554-34, and so on. There are hundreds like this which I generated using another perl program.
The same directory also contains similar file names, however different starting positions such as bananas_45.4554-34, bananas_56.4554-34.
What I am trying to do is merge the two files together which have the same end to produces an output file such as one called oranges_45.4554-34 which contains the contents of both apples_45.4554-34 and bananas_45.4554-34.
I can do the bringing together bit as I have tried it on one example when I specified the complete file name of each of the two components like in my example above, however I cannot work out how to do it automatically for every file with the apples_* and bananas_* start for every end without specifing each file separately which is impossible.
Help!
I have a directory containing files, with each file having the same start such as apples_45.4554-34, apples_56.4554-34, and so on. There are hundreds like this which I generated using another perl program.
The same directory also contains similar file names, however different starting positions such as bananas_45.4554-34, bananas_56.4554-34.
What I am trying to do is merge the two files together which have the same end to produces an output file such as one called oranges_45.4554-34 which contains the contents of both apples_45.4554-34 and bananas_45.4554-34.
I can do the bringing together bit as I have tried it on one example when I specified the complete file name of each of the two components like in my example above, however I cannot work out how to do it automatically for every file with the apples_* and bananas_* start for every end without specifing each file separately which is impossible.
Help!