Hi,
I could someone help me on the script?
I need to write a script that can pull the data from a file that had the data that I wanted.
Below is sample file. I would like to list the users that had the DisabledFlag: 8 only. The data is separated by a blank line.
dn: uid=KCROOKS,dc=myoffice,dc=com
cn: oms user4
DisabledFlag: 8
dn: uid=cmw3111,dc=myoffice,dc=com
cn: Tom Warner
mail: tw@system.com
DisabledFlag: 0
dn: uid=KCROOKS,dc=myoffice,dc=com
cn: oms user4
DisabledFlag: 2
Thanks,
Ken
I could someone help me on the script?
I need to write a script that can pull the data from a file that had the data that I wanted.
Below is sample file. I would like to list the users that had the DisabledFlag: 8 only. The data is separated by a blank line.
dn: uid=KCROOKS,dc=myoffice,dc=com
cn: oms user4
DisabledFlag: 8
dn: uid=cmw3111,dc=myoffice,dc=com
cn: Tom Warner
mail: tw@system.com
DisabledFlag: 0
dn: uid=KCROOKS,dc=myoffice,dc=com
cn: oms user4
DisabledFlag: 2
Thanks,
Ken