fork download
  1. #!/bin/bash
  2. s=" Some text
  3. // Remove me
  4. Not me
  5. and // not me LOG.debug
  6. // me, too"
  7. sed '/^[[:blank:]]*\/\//d; s/LOG\.debug/System.out.println/g' <<< "$s"
  8.  
Success #stdin #stdout 0s 4272KB
stdin
Standard input is empty
stdout
   Some text
Not me
and // not me System.out.println