I'd like to ensure that I have the lines ...
root: /dev/null
greenman: /dev/null
... in my /etc/aliases
file and I have been learning about augtool
. I know I could do something like this with augtool ...
$ sudo augtool set /files/etc/aliases/15/name greenman
... but I do not like hard coding the 15
. It is quite possible on some systems greenman: /dev/null
might be the 10th name/value pair. Is there a way to avoid using a number in /files/etc/aliases/15/name
?
Thanks