I got this file
root:
admin = true
SYSTEM = "compat"
registry = files
account_locked = false
su = true
sugroups = system,security,sec_grp
daemon:
admin = true
expires = 0101000070
account_locked = true
bin:
admin = true
expires = 0101000070
account_locked = true
I want to print only specific user and its attribute by using shell script. I try to use cat
, grep
and awk
but i cannot find the solution yet.
Any Idea?
I have tested all answer with my system (Solaris 9). It doesn't work at all. I'm not sure am i do something wrong?