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

Power shell search one column of a csv file and replace text in that column

$
0
0

I have a huge CSV file.

Column J has number which represents states.

I would like to search through column J of output.csv and replace the number with the state name.

     J

State

233

219

233

210

Becomes

   J

State

NC

TN

NC

SC

I have tried several methods that seem to do noting or erase everything in my csv file or at best searches every column and if a phone number has 210 in it, it changes it to SC.

Can any one point me in the correct location?

Thanks!


R White


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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