I am trying to extract some data from a file which contains information about users' accounts. There are approximately 20 lines of information per user, however I am only interested in a few fields from each line. Below is a sample of some of the lines in the file.
Username: USER1 Owner: Joe Schmoe
Account: SYSTEMS UIC: [16,226] ([PRTMGR,USER])
CLI: DCL Tables: DCLTABLES
Default: USER:[USER1]
LGICMD:
Flags: DisUser
Primary days: Mon Tue Wed Thu Fri
Secondary days: Sat Sun
Primary 000000000011111111112222 Secondary 000000000011111111112222
Day Hours 012345678901234567890123 Day Hours 012345678901234567890123
Expiration: (none) Pwdminimum: 6 Login Fails: 0
Pwdlifetime: 30 00:00 Pwdchange: 30-JUL-2002 15:11
Last Login: 15-AUG-2002 14:58 (interactive), 23-NOV-2001 11:24 (non-interactive)
I would like to extract the following fields for all users who have more than 1 login failure: Username, Owner, Login Fails, and Last Login.
Any help would be greatly appreciated.
Thanks,
John
Username: USER1 Owner: Joe Schmoe
Account: SYSTEMS UIC: [16,226] ([PRTMGR,USER])
CLI: DCL Tables: DCLTABLES
Default: USER:[USER1]
LGICMD:
Flags: DisUser
Primary days: Mon Tue Wed Thu Fri
Secondary days: Sat Sun
Primary 000000000011111111112222 Secondary 000000000011111111112222
Day Hours 012345678901234567890123 Day Hours 012345678901234567890123
Expiration: (none) Pwdminimum: 6 Login Fails: 0
Pwdlifetime: 30 00:00 Pwdchange: 30-JUL-2002 15:11
Last Login: 15-AUG-2002 14:58 (interactive), 23-NOV-2001 11:24 (non-interactive)
I would like to extract the following fields for all users who have more than 1 login failure: Username, Owner, Login Fails, and Last Login.
Any help would be greatly appreciated.
Thanks,
John