2 edited body
source | link

You can also do it with a loop:

sed -e ':top' -e 's/\([(,]\)\([^),'\'']\{1,\}\)\([),]\)/\1'"'\2'"'\3/;t top'

Or, using -rE:

sed -rE -e ':top' -e "s/([(,])([^),']+)([),])/\1'\2'\3/;t top"

You can also do it with a loop:

sed -e ':top' -e 's/\([(,]\)\([^),'\'']\{1,\}\)\([),]\)/\1'"'\2'"'\3/;t top'

Or, using -r:

sed -r -e ':top' -e "s/([(,])([^),']+)([),])/\1'\2'\3/;t top"

You can also do it with a loop:

sed -e ':top' -e 's/\([(,]\)\([^),'\'']\{1,\}\)\([),]\)/\1'"'\2'"'\3/;t top'

Or, using -E:

sed -E -e ':top' -e "s/([(,])([^),']+)([),])/\1'\2'\3/;t top"
1
source | link

You can also do it with a loop:

sed -e ':top' -e 's/\([(,]\)\([^),'\'']\{1,\}\)\([),]\)/\1'"'\2'"'\3/;t top'

Or, using -r:

sed -r -e ':top' -e "s/([(,])([^),']+)([),])/\1'\2'\3/;t top"