How to join multiple files in shell with variable lines?
1
0
Entering edit mode
12 months ago

Hi, I have 10 .txt files. Each of them have one column with variable lines. For example, file 1 has 92, file 2 has 103 lines. The content of one file is as below.

Aca10
AcrIC6
AcrIC7
AcrIE1
AcrIE3
AcrIE9
AcrIF1
AcrIF12
AcrIF16
AcrIF17.1


How to join 10 .txt files together to make a file with 10 row in shell? I tried conventional "join" command but didn't work for the files.

Cheers

shell • 311 views
0
Entering edit mode
12 months ago

so you want a new file with the content of each of the 10 input files on a row in the new file?

whether you want it in rows or columns, you should look into what the linux command paste can do for you

0
Entering edit mode

Thanks..served my purpose.

0
Entering edit mode

If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they work. This will help future users that might find this post find the right answer.