get zips without regex
This commit is contained in:
parent
667acf6b0b
commit
8f9b6a9c46
@ -4,8 +4,9 @@
|
||||
# take all *.eml and make .mht copies.
|
||||
|
||||
Copy-Item './extract.py' '..';
|
||||
$pattern = [regex] "[/ A-z0-9\[\]\{\}\(\)\-_.:`"'+]{1,251}(\.zip)";
|
||||
Get-ChildItem | Where-Object {$_.name -match $pattern } | Group-Object -Property Name | ForEach-Object {
|
||||
Copy-Item './..';
|
||||
}
|
||||
|
||||
Get-ChildItem | Where-Object { $_.name -match '\.zip'} | ForEach-Object {Write-Output $_.name }
|
||||
|
||||
$files = Get-ChildItem | Group-Object -Property extension -NoElement | Where-Object {$_.extension -like "zip"};
|
||||
$files | Where-Object {$_.extension -like "zip"} | ForEach-Object { Write-Output $_.name};
|
||||
Write-Output Done;
|
||||
Loading…
x
Reference in New Issue
Block a user