I know how to transpose rows in a file to columns, but I want to append the lines of the bottom half of a file to the lines to the upper half.
Like:
A1
A2
A3
B1
B2
B3
to
A1 | B1
A2 | B2
A3 | B3
the list comes from two greps. I append the first grep with the second one. The two greps have the same amount of hits.
I want to do this within a bash script.
greps, etc, so that we can provide better answers. Also, what did you try so far?