0

im on a linux terminal,

cat file1 :
a
b
c

cat file2 :
d
e
f

cat file3 :
g
h
i

file4 doesn't exist I have to copy the content of file1 file2 file3 with a single commande (without pipe) into file4 (create 'file4') to get

cat file4 :
a;d;g
b;e;h
c;f;i

1
  • 3
    "Without pipe" looks like an arbitrary constraint (although the best answer may not use pipes indeed). Is this a homework or a test? What have you tried? Please see How to Ask and note Super User is not a code writing service. Questions that lack research effort may get closed. Commented Oct 5, 2019 at 7:41

1 Answer 1

2

Just use the paste command:

paste -d ';' file1 file2 file3 >file4

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .