fork(1) download
  1. #!/bin/bash
  2. s='logging.ap.should-log-headers = true
  3. logging.ap.should-log-password = true
  4. logging.api.should-log-headers = true
  5. logging.httpbin.should-log-headers = true
  6. logging.httpbin.should-log-password = true
  7. logging.copy.should-log-headers = false
  8. logging.copy.should-log-password = false
  9. logging.test.should-log-headers = false
  10. logging.test.should-log-password = false
  11. logging.-test.should-log-password = true
  12. logging.hu.should-log-headers = true
  13. logging.madf.should-log-headers = true
  14. logging.madf.should-log-password = true
  15. logging.api-f-002.should-log-headers = true
  16. logging.f.should-log-headers = true
  17. logging.f-d.should-log-headers = true
  18. logging.f-d.should-log-password = true
  19. logging.copy-d.should-log-headers = false
  20. logging.copy-d.should-log-password = false
  21. logging.d.should-log-headers = false
  22. logging.d.should-log-password = false
  23. logging.e.should-log-headers = true
  24. logging.e.should-log-password = true'
  25. sed -E 's/(should-log[^=]*= *).*/\1false/' <<< "$s"
Success #stdin #stdout 0.01s 5544KB
stdin
Standard input is empty
stdout
logging.ap.should-log-headers = false
logging.ap.should-log-password = false
logging.api.should-log-headers = false
logging.httpbin.should-log-headers = false
logging.httpbin.should-log-password = false
logging.copy.should-log-headers = false
logging.copy.should-log-password = false
logging.test.should-log-headers = false
logging.test.should-log-password = false
logging.-test.should-log-password = false
logging.hu.should-log-headers = false
logging.madf.should-log-headers = false
logging.madf.should-log-password = false
logging.api-f-002.should-log-headers = false
logging.f.should-log-headers = false
logging.f-d.should-log-headers = false
logging.f-d.should-log-password = false
logging.copy-d.should-log-headers = false
logging.copy-d.should-log-password = false
logging.d.should-log-headers = false
logging.d.should-log-password = false
logging.e.should-log-headers = false
logging.e.should-log-password = false