I have a file which has the below lines-
[arakoon_scaler_thresholds]
checker_loop_time = 3600
I want to replace the above 2 lines with the below line -
[arakoon_scaler_thresholds]
checker_loop_time = 60
I am using the below command but changes are not taking place.
sed -i "s/arakoon_scaler_thresholds\nchecker_loop_time = 3600/arakoon_scaler_thresholds\nchecker_loop_time = 60/g" file.ini
Note There are multiple parameters with name checker_loop_time
, I want to change only that checker_loop_time
which is under the section [arakoon_scaler_thresholds]