In case 2
a) just replace the right part of the equal sign with $PARAMETER_NEW_VALUE
or
b) comment out the ligne and add a new ligne with. "$PARAMETER = $PARAMETER_NEW_VALUE"
[nodes]
# You must set this to your client-visible server URL.
# fallback_node = http://example.com/path/to/sync
Data after running sed command :
[nodes]
# You must set this to your client-visible server URL.
# fallback_node = http://example.com/path/to/sync
fallback_node = http://localhost/FF_DB
Good.
Now editing the config file with some other data and we get :
[nodes]
# You must set this to your client-visible server URL.
# fallback_node = http://example.com/path/to/sync
fallback_node = http://localhost/OTHER_TEST
Data after running sed command :
[nodes]
# You must set this to your client-visible server URL.
# fallback_node = http://example.com/path/to/sync
fallback_node = http://localhost/FF_DB
# fallback_node = http://localhost/OTHER_TEST
fallback_node = http://localhost/FF_DB
Something like :
1�) Add new line with new parameter after the 1st line which is commeted out when token is encounted
2�) comment out line with actual parameter the 1st line which is not commeted out when token is encounted
3�)1�) Add new line with new parameter after the next line which is commeted out when token is encounted