For Example: I have two files
input.txt
one two three four five output.txt
1 2 3 4 5 I want to merge these two files and to get another output file (e.g, match.txt) like this,
one 1 two 2 three 3 ... Moreover, when I shuffle these two .txt files randomly, the output file (match.txt) will also merge the correct data like that...
three 3 two 2 five 5 ... How can I write shell script?
oneto be following by the number1, and in the output file, the order is based on the words? Or are they examples of other possible values in some way, in which case, it needs more detail.