Created
June 22, 2019 20:58
-
-
Save LarryWeiss/2bbeb38ebb2c892af28bb33be11a7d15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
del outfile*.txt -ea 0 | |
$fn = 0 | |
gc file.txt | | |
% { | |
if ($_ -eq '-----BEGIN CERTIFICATE-----') | |
{ | |
$fn++ | |
$fname = 'outfile'+$fn+'.txt' | |
$fname | |
} | |
$_ >>$fname | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment