Hi there.
I am very new to Shell Script so need your help...
I have config file with below info
config name AAAAA root root port number 00000 Hostname hahahahah config name AAAAA root less port number 00001 Hostname nonononono config name AAAAA root less port number 00002 Hostname nonononono
And inside my bash file, there's arraylist with below info
${array1[0]} # Has value of value11111
${array2[1]} # Has value of value22222
${array2[1]} # Has value of value33333
I want to change config file and save as below
config name value11111 root root port number 00000 Hostname hahahahah config name value22222 root less port number 00001 Hostname nonononono config name value33333 root less port number 00002 Hostname nonononono
I tried awk and sed but no luck..... Could you please help this?