Link to home
Start Free TrialLog in
Avatar of SURESH0518
SURESH0518

asked on

How to Replace comma in double quotes Using PowerShell

I have CSV file which has following line
111,222," 1,876,890"

I would like to have output as follows
111,222,1876890

How can I do this in Power Shell?
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can cast the field as a number, rather than doing any string operations.
Example:
PS C:\Users\Mark> [int]" 1,876,890"
1876890

Open in new window