Hi,
I have two files
Hi,
I have two files
file1 :>
Code:
val="10" port="localhost:8080"httpadd="http:\\192.168.0.239"
file2 :>
Code:
val=${val} val="pdssx" port=${port}port="1324"httpadd=${httpadd}httpadd="raamraav"fileloc=${fileloc}
file3(or file2) should have following output(input from fileone)
file3
file2(or file3)
val="10"val="pdssx" port="localhost:8080"port=="1324"httpadd="http:\\192.168.0.239"httpadd="raamraav"fileloc=${fileloc}
I have tried following code ...
awk -F= 'NR==FNR {_[$1]=$2; next} [$1] {print $1,[$1]; next}1' OFS="=" f1 f2
but my code is replcaing as below..
val="10"
val="10"
port="localhost:8080"
port="localhost:8080"
httpadd="http:\\192.168.0.239"
httpadd="http:\\192.168.0.239"
fileloc=${fileloc}
need ur inputs on this...