#!/bin/bashs='one , two , "three , four" , five'perl -pe 's/"[^"]*"(*SKIP)(*F)|,/linux/g' <<< "$s"
Standard input is empty
one linux two linux "three , four" linux five
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!