fork download
  1. #!/bin/bash
  2. s=" [profile.dev]
  3. some-other-value = 'foo'
  4. debug = 'line-tables-only'
  5.  
  6.  
  7. [profile.dev]
  8. debug = 'line-tables-only'
  9. "
  10. sed -n '/^[[:blank:]]*\[profile\.dev\]/,/^[[:blank:]]*\[/{//!p;}' <<< "$s" | grep '='
Success #stdin #stdout 0.01s 5308KB
stdin
Standard input is empty
stdout
some-other-value = 'foo'
debug = 'line-tables-only'