fork(2) download
  1. #!/bin/bash
  2.  
  3. s="This is the first single quote ', and this is the second '"
  4. s="${s//\'/\'}"
  5. echo "$s"
Success #stdin #stdout 0.02s 5268KB
stdin
Standard input is empty
stdout
This is the first single quote \', and this is the second \'