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