E.g. the inputs are two sets A and B.
set A is stored in file a.txt as below:
apple
orange
grape
...
set B is stored in file b.txt as below:
tomato
potato
cucumber
...
The output is c.txt like:
apple    potato
orange   tomato
grape    celery
...      ...
Note the mapping between them is randomly generated. I.e., each time
map.sh a.txt b.txt > c.txt
usually give a different mapping.
Can this be implemented in shell (or awk, sed)?
