I have two files containing as below
cat file1.txt a b c 1 2 3 cat file2.txt a b c 1 2 3
I want file1 to be arranged as
a
I'd use xargs for this:
xargs
$ xargs -n1 < file1 a b c 1 2 3 $ xargs -n3 < file2 a b c 1 2 3