Files
nimmersky/tools/SSedit/SSEEdit Export Armor Script-90522-1-0-1683004422/PS-Scripts/armor-by-keyword.ps1

6 lines
302 B
PowerShell

param([Parameter(Mandatory=$true)][string[]]$keyword)
### keyword to filter
$csvDir=(Join-Path $PSScriptRoot ..)
Get-Content $csvDir\ArmorExport-Armor.csv|convertFrom-Csv -Delimiter ';' `
|ForEach-Object { $_.Keywords = ($_.Keywords -split ','); $_ } `
|where-object { $keyword -in $_.Keywords }