From 217053000fb96016e8ffa1535a02d970de34a64e Mon Sep 17 00:00:00 2001 From: Audrey Aaliyah Jensen Date: Fri, 25 Aug 2023 11:33:10 -0500 Subject: [PATCH] write multiple passwords --- Sandbox Scripts/prepare.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sandbox Scripts/prepare.ps1 b/Sandbox Scripts/prepare.ps1 index 1ce036b..055b2d4 100644 --- a/Sandbox Scripts/prepare.ps1 +++ b/Sandbox Scripts/prepare.ps1 @@ -11,7 +11,7 @@ $pwPattern = [regex] "[A-z 0-9 \-]{1,251}\((?[A-z0-9]{1,251})\)\.zip"; $files = Get-ChildItem; $passwords = [Regex]::Matches($files, $pwPattern); -Write-Output $passwords.groups.Value[1] +$passwords.groups.Value | ForEach-Object {Write-Output $_ } Get-ChildItem | Where-Object { $_.name -match $pwPattern} | ForEach-Object {Write-Output $_.group } Write-Output Done; \ No newline at end of file