fork download
  1. #!/bin/bash
  2. s='one , two , "three , four" , five'
  3. perl -pe 's/"[^"]*"(*SKIP)(*F)|,/linux/g' <<< "$s"
Success #stdin #stdout 0.01s 5408KB
stdin
Standard input is empty
stdout
one linux two linux "three , four" linux five