I need to remove the following line:
user_pref("network.proxy.http", "177.22.10.226");
located in the file:
%APPDATA%\Mozilla\Firefox\Profiles\zizwksvf.default\prefs.js
and replace it with the following line:
user_pref("network.proxy.http", "177.22.10.116");
i.e. basically I have to replace the address of the proxy using command lines within batch files. Since I dont know beforehand which is the line I have to replace(can be any IP) I wanna use * to replace all lines having the string "network.proxy.http" including quotes like this:
fart %APPDATA%\Mozilla\Firefox\Profiles\zizwksvf.default\prefs.js """*network.proxy.http*""" "user_pref("network.proxy.http", "177.22.10.116");"
but it does not work, no elemnts are found, while if I try have a previow of how many elements would be sostitute by using:
fart -p %APPDATA%\Mozilla\Firefox\Profiles\zizwksvf.default\prefs.js """network.proxy.http"""
it says it finds one element. Any suggestion?
Cheers A.