I am very new to the Regex sed pattern and adhered to the requirement. I have several records that I pull from the database
"Name" "Age" "From ABC" "12"
I am now exporting it to CSV using Comma Separated. I am using 's/[[:space:]]\+/,/g' This Regex
Which gives me the result as
"Name", "Age", "From, ABC", "12"
This is fine, except for the third column where he pasted , into the space now I want to insert , between double quotes.
Can someone help me for the same thing?
With 's/"[[:space:]]\+"/","/g' Regex i Am can get "Name","Age","From,ABC","12" But it fails when I am "Name","","From,ABC","12" it gives "Name",",","From,ABC","12"
Is there any other way to counter this?