fork download
  1. #!/bin/bash
  2. s='logging.ap.should-log-headers = true
  3. logging.true.ap.should-log-password = true'
  4. sed -E '/should-log[^=]*=/s/true/false/' <<< "$s"
Success #stdin #stdout 0.01s 5540KB
stdin
Standard input is empty
stdout
logging.ap.should-log-headers = false
logging.false.ap.should-log-password = true