How can I replace the particular word using sed or awk
Code:
$ BUGZILLAURL="https://mylocalserver.com/bugzilla" $ PROJECTNAME="mybugs" $ echo "$BUGZILLAURL/$PROJECTNAME" https://mylocalserver.com/bugzilla/mybugs
There is a urlbase line in data/params file which has an empty variable, pls see 2nd line from below command's output.
Code:
$ grep -i "urlbase" data/params 'docs_urlbase' => 'docs/%lang%/html/', 'urlbase' => '', 'webdotbase' => 'http://www.research.att.com/~north/cgi-bin/webdot.cgi/%urlbase%',
Or search only for that line which I wanted to be as 'urlbase' => 'https://mylocalserver.com/bugzilla/mybugs',
Code:
$ grep -i "'urlbase'" data/params 'urlbase' => '',
So expecting your kind help to replace '' word with 'https://mylocalserver.com/bugzilla/mybugs' using sed or awk.
Thanks.