Rename column name to Abbreviation

This commit is contained in:
Markus Fleschutz 2021-05-25 17:51:46 +02:00
parent 9dd3143e60
commit ae3dacc66a
6 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
Abbr,Description
Abbreviation,Description
AB,Air Base
AC,Aircraft
ACAS,Airborne Collision Avoidance System

1 Abbr Abbreviation Description
2 AB Air Base
3 AC Aircraft
4 ACAS Airborne Collision Avoidance System

View File

@ -1,4 +1,4 @@
Abbr,Description
Abbreviation,Description
CPU,Central Processing Unit
GPU,Graphics Processing Unit
RAM,Random Access Memory

1 Abbr Abbreviation Description
2 CPU CPU Central Processing Unit
3 GPU GPU Graphics Processing Unit
4 RAM RAM Random Access Memory

View File

@ -1,4 +1,4 @@
Abbr,Description
Abbreviation,Description
PR,per the rectum
pr,per the rectum
PT,prothrombin time

1 Abbr Abbreviation Description
2 PR per the rectum
3 pr per the rectum
4 PT prothrombin time

View File

@ -1,4 +1,4 @@
Abbr,Description
Abbreviation,Description
0D,obvious deed
1AM,Air Mechanic 1st Class
1D,One-Dimensional

1 Abbr,Description Abbreviation,Description
2 0D,obvious deed
3 1AM,Air Mechanic 1st Class
4 1D,One-Dimensional

View File

@ -1,4 +1,4 @@
Abbr,Description
Abbreviation,Description
8va,Octave up
ad lib,Ad Libitum (“freely”)
afl,Alto flute

1 Abbr Abbreviation Description
2 8va Octave up
3 ad lib Ad Libitum (“freely”)
4 afl Alto flute

View File

@ -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
}
}