I'm looking for a solution for the following simple problem. I have two files,
fileB. Each file contains only one word per line, and they contain exactly the same number of lines.
I would like to create a new file called
fileAB, where the i-th line contains the i-th line of
fileA, a Tab separator character, and then the i-th line of
fileB. I know how to do it in Python or other scripting languages, but it would be nice to have a bash one-liner for that.
Is it possible to do this in bash or any other Unix shell, using the tools that are usually available on the command line (e.g.,
awk and such)?