#!/bin/bash
s='1,2,"a",4,"b","c",5'
sed 's/"[^"]*"//g' <<< "$s"