fork download
  1. perl -pe '$f=1 if(/\[Section B\]/);s/^\$param2=value2$/\$param2=new_value2/ if($f);'
Success #stdin #stdout 0.02s 5348KB
stdin
[Section A]
$param1=value1
$param2=value2

[Section B]
$param1=value1
$param2=value2
$param3=value3
stdout
[Section A]
$param1=value1
$param2=value2

[Section B]
$param1=value1
$param2=new_value2
$param3=value3