Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Search CSV file

$
0
0

Can someone help me with this.

I have a variable "pod-08-cha01-bl6", I want to search the SP Name column in CSV file to find the cell that contains this variable and import this row (in this example 4th row)toImport-Csv -Path $storageList -Header SP_NameO,CompanyO,NameO, AddressO

Contain of storageinput.csv:

SP NameCompanyNameAddress
erabc-pod08-cha01-bl5Q123F325350:06:01:60:46:E0:59:09
areeaefg-pod07-cha05-bl8Q64326R634650:06:01:60:46:E0:5F:08
atbc-pod08-cha01-bl6Q123F325350:06:01:60:46:E0:59:09

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>