So I have file which looks something like this:
cat .opera/operaprefs.ini
Code:
[User Prefs]
Language Files Directory=
Preferences Version=2
Has Restored MIME Flag=1
Trust Server Types=0
Enable Usage Statistics=0
Address Search Drop Down Width=180
DevTools Splitter Position=500
History View Style=0
[Extensions]
Plugin Failed Warning=1
[Security Prefs]
Enable SSL v3=1
Enable TLS v1.0=1
Enable TLS v1.1=1
Enable TLS v1.2=1
and I would like it to make it look this (see text in red color):
Code:
[User Prefs]
Language Files Directory=
Preferences Version=2
Has Restored MIME Flag=1
Trust Server Types=0
Enable Usage Statistics=0
Address Search Drop Down Width=180
DevTools Splitter Position=500
History View Style=0
Home URL=http://www.example.com
Ignore Target=0
Target Destination=0
Ignore Unrequested Popups=1
[Extensions]
Plugin Failed Warning=1
[Security Prefs]
Enable SSL v3=1
Enable TLS v1.0=1
Enable TLS v1.1=1
Enable TLS v1.2=1
i.e. basically append the text in red color. So what is the best way to do this? sed, awk I suppose.
All I am trying to is to set the Home Page of the opera through script/command line.
Thanks