Remove CRLF if anywhere between double quotes
My text file looks like this.
"MikeCRLF","","","Dell","DevelCRLFCRLFoper"CRLF
"SuCRLFsan","","","Apple","ManagCRLFer"CRLF
Desired Result: "Mike","","","Dell","Developer"LF
"Susan","","","Apple","Manager"LF
I tried this on powershell:"C:\Users\abc\Desktop\1.txt" (Get-Content $path
-Raw).Replace("rn","`n") | Set-Content $path -Force
When i do this i dont get the desired result but also i am being left with
one CRLF at the end. I dont want that too.
Please tell me how to do this using powershell v3. Thank you.
No comments:
Post a Comment