mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 12:41:24 +01:00
Rename column name to Abbreviation
This commit is contained in:
parent
9dd3143e60
commit
ae3dacc66a
@ -1,4 +1,4 @@
|
||||
Abbr,Description
|
||||
Abbreviation,Description
|
||||
AB,Air Base
|
||||
AC,Aircraft
|
||||
ACAS,Airborne Collision Avoidance System
|
||||
|
|
@ -1,4 +1,4 @@
|
||||
Abbr,Description
|
||||
Abbreviation,Description
|
||||
CPU,Central Processing Unit
|
||||
GPU,Graphics Processing Unit
|
||||
RAM,Random Access Memory
|
||||
|
|
@ -1,4 +1,4 @@
|
||||
Abbr,Description
|
||||
Abbreviation,Description
|
||||
PR,per the rectum
|
||||
pr,per the rectum
|
||||
PT,prothrombin time
|
||||
|
|
@ -1,4 +1,4 @@
|
||||
Abbr,Description
|
||||
Abbreviation,Description
|
||||
0D,obvious deed
|
||||
1AM,Air Mechanic 1st Class
|
||||
1D,One-Dimensional
|
||||
|
|
@ -1,4 +1,4 @@
|
||||
Abbr,Description
|
||||
Abbreviation,Description
|
||||
8va,Octave up
|
||||
ad lib,Ad Libitum (“freely”)
|
||||
afl,Alto flute
|
||||
|
|
@ -17,9 +17,9 @@ try {
|
||||
foreach ($File in $Files) {
|
||||
$Table = import-csv "$File"
|
||||
foreach($Row in $Table) {
|
||||
if ($Row.Abbr -eq $Abbreviation) {
|
||||
if ($Row.Abbreviation -eq $Abbreviation) {
|
||||
$Filename = (get-item "$File").Name
|
||||
" → $($Row.Abbr) = $($Row.Description) (in $Filename)"
|
||||
" → $($Row.Abbreviation) = $($Row.Description) (in $Filename)"
|
||||
$FoundOne = $true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user