1753360 Members
5057 Online
108792 Solutions
New Discussion юеВ

Re: Scripting issue

 
SOLVED
Go to solution
Dewa Negara_4
Regular Advisor

Scripting issue

Hi All,

Anyone can help Please? Suppose I have file1 as below:

#more file1
var1
var2
var3

and also I have file2 as below:
#more file2
5
18
9

Using the shell script, how go combine file1 and file2 in order to get the output below:
var1=5
var2=18
var3=9

Thanks for your help in advance.

Regards,Negara
Santos
2 REPLIES 2
Jeff_Traigle
Honored Contributor
Solution

Re: Scripting issue

paste -d= file1 file2
--
Jeff Traigle
Dewa Negara_4
Regular Advisor

Re: Scripting issue

Hi Jeff,

This is great. I got it.

Thnks for your help.

Regards,
Negara
Santos