I have a file which contains the below
hosts: files
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
I need to append "dns" at the end of only this two lines
hosts: files dns
ipnodes: files dns
Solaris servers, having very limited options in sed sed -i is not available looking for a workaround