Hello everyone.
I have a use case here whereby I need to parse out IDs like root,padmin,pshoot,cybr_rid,secadm,hkqualys from the data source below:
In short, I need to parse out the IDs in between ## Allow root to run any commands anywhere and ## Allows members of the 'sys' group to run networking, software,
The format of my source data looks like this:
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
padmin ALL=(ALL) NOPASSWD:ALL,!SH,!SU,!PASSWD
pshoot ALL=(ALL) NOPASSWD:PSHOOT
cybr_rid ALL=(ALL) NOPASSWD:CYBRARK,PASSWD,SU
secadm ALL=(ALL) NOPASSWD:SECU
hkqualys ALL=(ALL) NOPASSWD:SU
## Allows members of the 'sys' group to run networking, software,
Could anyone enlighten me on how to achieve this? Really appreciate any kind inputs.