Skip to content

Instantly share code, notes, and snippets.

@dharmatech
Created April 6, 2023 05:06
Show Gist options
  • Select an option

  • Save dharmatech/33a65506576787ae76deb7bb4bd04430 to your computer and use it in GitHub Desktop.

Select an option

Save dharmatech/33a65506576787ae76deb7bb4bd04430 to your computer and use it in GitHub Desktop.
# https://www.ffiec.gov/npw/FinancialReport/ReturnBHCFZipFiles?zipfilename=BHCF20230331.ZIP
Write-Host 'Downloading...' -ForegroundColor Yellow -NoNewline
$result = Invoke-WebRequest -Uri 'https://www.ffiec.gov/npw/FinancialReport/ReturnBHCFZipFiles?zipfilename=BHCF20230331.ZIP' -OutFile BHCF20230331.ZIP
Write-Host 'done' -ForegroundColor Yellow
Expand-Archive -Path .\BHCF20230331.ZIP -Force
Get-Content .\BHCF20230331\BHCF20230331.txt | Measure-Object -Line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment