Hello,
I have a text file that looks like this…
Optical output queue
Menu User Access Name BK2023A Date 8/21/17 Page 1
User name: CARXXX
User text: NAME - XXX
User bank ID: Name
User department:
User initial menu: MAIN
Menu system mandatory: N
Device restricted: N
Account restricted: N
Dormant restricted: N
Trans Maint restricted: N
User held: N
User history: N
Log account inquiries: N
User password security: N
Auth to DD Misc Codes: Y Auth to DD Profile Codes: Y Auth to DD Interest Info: Y
Auth to DD Manage Codes: Y Auth to DD Messages: Y Auth to DD Add Officer: Y
Auth to DD OD Protection: Y Auth to DD Amounts: Y Auth to DD Act Analysis: Y
Auth to DD Dates: Y Auth to DD Other Users: Y Auth to DD Withholding: Y
Auth to DD Special Int: Y Auth to DD NSF/OD Info: Y Auth to DD EFT Info: Y
Auth to DD EOM Records: Y Auth to DD Narrative Info: N ATM/Credit/Debit Card Info: N
DD Combined Relations: N
Auth to LN Misc Codes: Y Auth to LN Escrow Info: Y Auth to LN Dates: Y
Auth to LN Participation: Y Auth to LN Pay/Int Info: Y Auth to LN Profile Codes: Y
Auth to LN ARM Info: Y Auth to LN Manage Code: Y Auth to LN Revolving Cr: Y
Auth to LN Add Officer: Y Auth to LN Fee Info: Y Auth to LN Collateral: Y
Auth to LN Amounts: Y Auth to LN Billing Info: Y Auth to LN Year/life: Y
Auth to LN Other User: Y Auth to LN Messages: Y Auth to LN A/R: Y
Auth to LN Rebates: Y Auth to LN Def Penalty: Y Auth to LN Limited Endor: Y
Auth to LN Spc Accrual: Y Auth to LN EFT Info: Y Auth to LN LOC Info: Y
Auth to LN Narrative Info: N LN Combined Relations: N
Print Notice Now: N
Waive Stop Payment Fees: N
Transfer From Acct Types:
Transfer To Acct Types:
Cross Appl Acct Types: L G
Transfer Limit:
Initial command:
Optical output queue
Menu User Access Name BK2023A Date 8/21/17 Page 2
User name: CARYYY
User text: NAME - YYY
User bank ID: Name
User department:
User initial menu: MAIN
Menu system mandatory: N
Device restricted: N
Account restricted: N
Dormant restricted: N
Trans Maint restricted: N
User held: N
User history: N
Log account inquiries: N
User password security: N
Auth to DD Misc Codes: Y Auth to DD Profile Codes: Y Auth to DD Interest Info: Y
Auth to DD Manage Codes: Y Auth to DD Messages: Y Auth to DD Add Officer: Y
Auth to DD OD Protection: Y Auth to DD Amounts: Y Auth to DD Act Analysis: Y
Auth to DD Dates: Y Auth to DD Other Users: Y Auth to DD Withholding: Y
Auth to DD Special Int: Y Auth to DD NSF/OD Info: Y Auth to DD EFT Info: Y
Auth to DD EOM Records: Y Auth to DD Narrative Info: N ATM/Credit/Debit Card Info: N
DD Combined Relations: N
Auth to LN Misc Codes: Y Auth to LN Escrow Info: Y Auth to LN Dates: Y
Auth to LN Participation: Y Auth to LN Pay/Int Info: Y Auth to LN Profile Codes: Y
Auth to LN ARM Info: Y Auth to LN Manage Code: Y Auth to LN Revolving Cr: Y
Auth to LN Add Officer: Y Auth to LN Fee Info: Y Auth to LN Collateral: Y
Auth to LN Amounts: Y Auth to LN Billing Info: Y Auth to LN Year/life: Y
Auth to LN Other User: Y Auth to LN Messages: Y Auth to LN A/R: Y
Auth to LN Rebates: Y Auth to LN Def Penalty: Y Auth to LN Limited Endor: Y
Auth to LN Spc Accrual: Y Auth to LN EFT Info: Y Auth to LN LOC Info: Y
Auth to LN Narrative Info: N LN Combined Relations: N
Print Notice Now: Y
Waive Stop Payment Fees: Y
Transfer From Acct Types: D S T X L G
Transfer To Acct Types: D S T X L G
Cross Appl Acct Types: D S X L T G K
Transfer Limit:
Initial command:
Each new section starts with the line ‘Optical output queue’ and ends with ‘Initial Command:’.
Doing a get-content and saving it to a variable, how can I save it as if it was an array, or an object where I could do like a
#executing this would yield the below results
$x[0]
Optical output queue
Menu User Access Name BK2023A Date 8/21/17 Page 1
User name: CARXXX
User text: NAME - XXX
User bank ID: Name
User department:
User initial menu: MAIN
Menu system mandatory: N
Device restricted: N
Account restricted: N
Dormant restricted: N
Trans Maint restricted: N
User held: N
User history: N
Log account inquiries: N
User password security: N
Auth to DD Misc Codes: Y Auth to DD Profile Codes: Y Auth to DD Interest Info: Y
Auth to DD Manage Codes: Y Auth to DD Messages: Y Auth to DD Add Officer: Y
Auth to DD OD Protection: Y Auth to DD Amounts: Y Auth to DD Act Analysis: Y
Auth to DD Dates: Y Auth to DD Other Users: Y Auth to DD Withholding: Y
Auth to DD Special Int: Y Auth to DD NSF/OD Info: Y Auth to DD EFT Info: Y
Auth to DD EOM Records: Y Auth to DD Narrative Info: N ATM/Credit/Debit Card Info: N
DD Combined Relations: N
Auth to LN Misc Codes: Y Auth to LN Escrow Info: Y Auth to LN Dates: Y
Auth to LN Participation: Y Auth to LN Pay/Int Info: Y Auth to LN Profile Codes: Y
Auth to LN ARM Info: Y Auth to LN Manage Code: Y Auth to LN Revolving Cr: Y
Auth to LN Add Officer: Y Auth to LN Fee Info: Y Auth to LN Collateral: Y
Auth to LN Amounts: Y Auth to LN Billing Info: Y Auth to LN Year/life: Y
Auth to LN Other User: Y Auth to LN Messages: Y Auth to LN A/R: Y
Auth to LN Rebates: Y Auth to LN Def Penalty: Y Auth to LN Limited Endor: Y
Auth to LN Spc Accrual: Y Auth to LN EFT Info: Y Auth to LN LOC Info: Y
Auth to LN Narrative Info: N LN Combined Relations: N
Print Notice Now: N
Waive Stop Payment Fees: N
Transfer From Acct Types:
Transfer To Acct Types:
Cross Appl Acct Types: L G
Transfer Limit:
Initial command:
Any help would be greatly appreciated!