powershell - Import-csv Target cell on Csv -


i have csv list of usernames

i want import 1 cell of csv file e.g. a2

is possible specific? have tried googling don't see exact solution. tried powershell also.

can done ?

thanks

confuseis

the below example select , output 'cell' a2 test.csv

in example, column header row 'username'

$infile = import-csv c:\temp\test.csv $targetcell = $infile.username[1] write-output $targetcell 

this snippet doing following:

  1. import csv file, yielding powershell object.
  2. select column want work with, items column can treated array. select desired item in column referring it's 0 based index value.
  3. output results.

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -