fork(22) download
  1. #!/bin/bash
  2. s='next:
  3. {
  4. host = "http://n...content-available-to-author-only...e.com/err1.2.2/table/kenny.xml.gz"
  5. };
  6.  
  7. second:
  8. {
  9. host = "http://n...content-available-to-author-only...e.com/err1.2.2/table/kenny.xml.gz"
  10. };'
  11. sed '/second:/{N;N;s#"http://.*"#"next.com"#}' <<< "$s"
Success #stdin #stdout 0s 4492KB
stdin
Standard input is empty
stdout
next: 
    {
     host = "http://n...content-available-to-author-only...e.com/err1.2.2/table/kenny.xml.gz"
    };

second:
   {
     host = "next.com"
    };