fork(10) download
  1. #!/bin/bash
  2. STR1="US-1234 US-7685 TKT-008953"
  3. STR2="'$(echo "$STR1" | sed "s/ /','/g")'"
  4. echo $STR2
Success #stdin #stdout 0s 4396KB
stdin
Standard input is empty
stdout
'US-1234','US-7685','TKT-008953'