Off topic:Merging File
1
0
Entering edit mode
10.2 years ago
prt-hntr ▴ 10

I have two files like file1.dat and file2.dat I would like to combine the file without changing the format of file1 and file2. file1(2space)file2.

for example File1:

    1 2 3  4 5             
    6 7 8  8 9

File2:

      8 6 4258
      8 5 9927

The result i want is

                         1 2 3 4 5(2space)8 6 4258
                         6 7 8 8 9(2space)8 5 9927

I have tried with paste -d ' ' file1 and file2 but got only one space between the file. I have 5 column and thousand of rows in files.

thank you in advance

PRT

• 2.2k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1855 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6