Hi,

I am rather new to augeas and already have a problem I cannot solve on my
own or using googe.

Trying to fiddle with an existing entry in /etc/hosts, I found a way to
change the canonical name interactively:

augtool -b
set /files/etc/hosts/*[ipaddr = '192.168.0.5']/canonical 'host.test.com
<http://host.test.com/>'
save

But this does not work:

augtool -bs set /files/etc/hosts/*[ipaddr = '192.168.0.5']/canonical 'h
ost.test.com <http://host.test.com/>'

Why's that?

Any help much appreciated - thanks in advance

Regards

Jochen
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to