Add Abbr directory

This commit is contained in:
Markus Fleschutz
2021-04-29 20:19:07 +02:00
parent b73da7c2f7
commit cd34307547
4 changed files with 5886 additions and 35 deletions

View File

@ -9,13 +9,21 @@ param($Abbreviation = "")
if ($Abbreviation -eq "" ) { $Abbreviation = read-host "Enter the abbreviation" }
try {
write-progress "Reading what-is.csv..."
$Table = import-csv "$PSScriptRoot/../Data/what-is.csv"
write-progress "Searching ..."
$FoundOne = 0
$Table = import-csv "$PSScriptRoot/../Data/Abbr/Aviation.csv"
foreach($Row in $Table) {
if ($Row.Abbr -eq $Abbreviation) {
"$($Row.Context): $($Row.Description)"
"Aviation: $($Row.Description)"
$FoundOne = 1
}
}
$Table = import-csv "$PSScriptRoot/../Data/Abbr/Misc.csv"
foreach($Row in $Table) {
if ($Row.Abbr -eq $Abbreviation) {
"Misc: $($Row.Description)"
$FoundOne = 1
}
}