LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Sed Problem (https://www.linuxquestions.org/questions/linux-general-1/sed-problem-441806/)

Hydrap 05-05-2006 03:17 AM

Sed Problem
 
I have a file contain a line:

"John","",""1234""

and want to change this line become

"John","","1234"

How can I use Sed to achieve this?

jonaskoelker 05-05-2006 03:25 AM

try sed -e 's/""/"/g' -e 's/,",/,"",/g'


All times are GMT -5. The time now is 07:47 PM.