Hi,
I have a file that I want to extract a full stanza from. The format of the file is:
daemon:
admin = true
expires = 0101000070
bin:
admin = true
expires = 0101000070
sys:
admin = true
expires = 0101000070
adm:
admin = true
uucp:
admin = true
login = false
rlogin = false
su = true
I'm guessing that awk would be the best tool, but can someone give me a few pointers?
Thanks,
John
I have a file that I want to extract a full stanza from. The format of the file is:
daemon:
admin = true
expires = 0101000070
bin:
admin = true
expires = 0101000070
sys:
admin = true
expires = 0101000070
adm:
admin = true
uucp:
admin = true
login = false
rlogin = false
su = true
I'm guessing that awk would be the best tool, but can someone give me a few pointers?
Thanks,
John