Robert C. Kahlert wrote:
> File #1:
>abc
>def
>ghi
>jkl
>mno
>
>
> File #2:
>1
>2
>
> Output of paste file1 file2
> abc 1
> def 2
> ghi 1
> jkl 2
> mno 1
It can already be done with a combination of 'paste', 'cat', 'head', 'wc':
$ while :; do cat file2 || ex
Could paste be made to recycle the shorter input file from the top of
the file in the case of its exhaustion--akin to the way R recycles
vectors when splicing things together?
I envision something like --recycle.
File #1:
abc
def
ghi
jkl
mno
File #2:
1
2
Output of paste f