Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Combine data out of 3 files into one new file

$
0
0
Hi,

how can i combine the datas of of three files into one new file?
I try to give as much informations as possible.

The three existing files are called file1 file2 and file3
the new file should named output_combined.

The size of the files will be around 900 words/lines each .. but always the same amount in every file so no "free" or missing lines.

The content of file1 looks like this:
word1
word2
word3
word4

content of file2 like:
192.168.1.2
192.168.1.3
192.168.1.4
192.168.1.5

and file3 :
word1x
word2x
word3x
word4x

The new created file should be formated as a table separated by a semicolon

word1;192.168.1.2;word1x
word2;192.168.1.3;word2x
[....] and so on

Platform is Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC
GNU bash, version 3.2.52(1)-release (sparc-sun-solaris2.10)

Thanks and Regards!

Viewing all articles
Browse latest Browse all 16232

Trending Articles