Sample Header Ad - 728x90

Bash - changing fileconfig format

0 votes
4 answers
48 views
I would like to change: **THIS:** client 192.168.100.1 { secret = ThisIStheSECRET shortname = HOSTNAME } client 192.168.100.2 { secret = ThisIStheSECRET2 shortname = HOSTNAME2 } **THAT:** client HOSTNAME { secret = ThisIStheSECRET, ipaddr = 192.168.100.1 } client HOSTNAME2 { secret = ThisIStheSECRET2, ipaddr = 192.168.100.2 } How to do this? What tools to use?
Asked by Mario_bash (5 rep)
Apr 25, 2018, 12:46 PM
Last activity: Apr 16, 2019, 02:41 PM