Hi All,
I have a CSV file with the Structure below
Id,Name,Text,
---------------
"1","A","joined "Newly"",
"2","B","joined "10 month Back"",
"3",="c","joined 1 yr back",
I need help in writing commands
1)Replacing the "=" in Name Column
2)i need to replace Additonal Comma "," at end of each row
3)In the Text COlumn,inside the Text Qualifer there are some double Cotes.i want to replace it..
------------------------------
Some of the commwnd which i have written is
1)[io.file]::readalltext("C:\NewData.csv").replace("=","") | Out-File C:\NewData.csv -Encoding ascii -Force --SOme time this command is giving memory out exception..
2)$CSVFile = Import-Csv -Path $CSVFileName -Header (gc $CSVFileName)[0].trim(",").split(",") | select -skip 1;
I am fresher in Power shell.please help me out on this..
Thanks in advance
Best regards
Anil Inampudi
I have a CSV file with the Structure below
Id,Name,Text,
---------------
"1","A","joined "Newly"",
"2","B","joined "10 month Back"",
"3",="c","joined 1 yr back",
I need help in writing commands
1)Replacing the "=" in Name Column
2)i need to replace Additonal Comma "," at end of each row
3)In the Text COlumn,inside the Text Qualifer there are some double Cotes.i want to replace it..
------------------------------
Some of the commwnd which i have written is
1)[io.file]::readalltext("C:\NewData.csv").replace("=","") | Out-File C:\NewData.csv -Encoding ascii -Force --SOme time this command is giving memory out exception..
2)$CSVFile = Import-Csv -Path $CSVFileName -Header (gc $CSVFileName)[0].trim(",").split(",") | select -skip 1;
I am fresher in Power shell.please help me out on this..
Thanks in advance
Best regards
Anil Inampudi
Chinnu