i need to compare the numbers present in two files.
for example in file1.txt:
human
1 2 3 4 5 6 7 8 9
and in another file2.txt:
human
1 2 3 8 0 7 6
the above two files should be given as input. and the output file will be as:
1 2 3 6 7 8
(i.e. the matching numbers present while comparing the two files) if possible the output must come in another file.
Hi, you are not doing yourself any good with this. Try to solve this problem yourself. It's a good way to learn to program (ltp! ;) ) A good resource for perl coding is also: http://www.perlmonks.org/ After you finished your basic perl course go to Perl Monks page and click: # Seekers of Perl Wisdom
Hi Payaliya. People on this forum try to help each other learn to do their analyses by themselves by sharing information, programs or how-to knowledge. The forum is not a place to ask people to program things for you. The prerequisite here is that you try for yourself to learn how to do things. If you take time to learn Perl, Python or R, you will become MUCH more capable of advancing your projects efficiently. Good learning!
Payaliya - the 'edit' question is not for you to try and close questions by modifying the title. That does not close the question, that is a function for moderators.