sed remove everything between two string

Hi all,

I have this input:

"203324780",,"89321213261247090146","VfdsD150","0D","fd3221","V0343","aaa","Direkt","fsa","2015.02.27","39833,54454,21214",,,"fd","NORMAL","D","10fd","1243 Flotta","Hinytalan","2013.02.25",,"2013.02.25","2013.02.24","2013.02.28",,"Sajt bolt","0","Active","-732",,"f1010","fdsa","PRIV","F,L,EET","FLEET","no","alma","1.0","0.5","0.0","0.0","1.5",,,,,"323232","not","1"

and i would like to remove all character between "".

I would like to get the number of the comma, but you can see some record include comma. So i need to remove everything without comma.

I try to use sed like this:

sed 's/"[^"]*)//g'

but not work.

Anyone can help me.

Thanks!

Can you please try :

awk -F"," ' { print NF-1 } ' file
$ echo $strg | perl -nle '$tmp=$_;$tmp=~s/\"[^,]*?\"//g;$tmp=~s/\"//g;print $tmp'
,,,,,,,,,,,39833,54454,21214,,,,,,,,,,,,,,,,,,,,,,,F,L,EET,,,,,,,,,,,,, ,,

You almost had it:

sed 's/"[^"]*"//g'

thanks a lot!

i use this:

sed 's/"[^"]*"//g' file | perl -nle 'print length'