I want to delete a string "www.yahoo.com" only if the line starts with assign where host.name in [ and ends with ] and also if the string is followed by comma(,) I need to delete that comma as well
assign where host.name in [ "www.google.com","www.yahoo.com","www.facebook.com" ] My output should look like
assign where host.name in [ "www.google.com", "www.facebook.com" ] I don't know how to achieve this. Kindly give me some idea about this code.
sed) or something no less powerfull eg. Perl.assign where host.name in [is sufficient to identify the line where Yahoo is to be removed?