#!/bin/bashSTR1="US-1234 US-7685 TKT-008953"STR2="'$(echo "$STR1" | sed "s/ /','/g")'"echo $STR2
Standard input is empty
'US-1234','US-7685','TKT-008953'
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!