#!/bin/bash
s='one , two , "three , four" , five'
perl -pe 's/"[^"]*"(*SKIP)(*F)|,/linux/g' <<< "$s"