Hi ,
I am doing invert grep using -v but the string contain "/" which break the grep command and it do not skip the lines with "/" on it.
Diffu.txt
1159c1159
< <td align="right" valign="middle" class="paddingRight2px" id="featureListItemChannelButton7466">
---
> <td align="right" valign="middle" class="paddingRight2px" id="featureListItemChannelButton2505">
1168,1169c1168,1169
< document.getElementById( 'featureListItemChannelButton7466').innerHTML = '<img src="/images/buttons/playsm_disabled.gif" alt="Subscriber Only Channel" title="Subscriber Only Channel" class="playSm" border="0" height="20" width="20" \/><br \/><br class="v5" \/>';
< Element.addClassName( 'featureListItemChannelButton7466', 'contentUnAvail' );
DiffSkiplines.txt
<td align="right" valign="middle" class="paddingRight2px" id="featureListItemChannelButton7466">
document.getElementById( 'featureListItemChannelButton7466').innerHTML = '<img src="/images/buttons/playsm_disabled.gif" alt="Subscriber Only Channel" title="Subscriber Only Channel" class="playSm" border="0" height="20" width="20" \/><br \/><br class="v5" \/>';
Element.addClassName( 'featureListItemChannelButton7466', 'contentUnAvail' );
cat /home/zabbix/public_html/diffu.txt| grep -v -f /home/zabbix/public_html/DiffSkipLines.txt returns
1159c1159
---
> <td align="right" valign="middle" class="paddingRight2px" id="featureListItemChannelButton2505">
1168,1169c1168,1169
< document.getElementById( 'featureListItemChannelButton7466').innerHTML = '<img src="/images/buttons/playsm_disabled.gif" alt="Subscriber Only Channel" title="Subscriber Only Channel" class="playSm" border="0" height="20" width="20" \/><br \/><br class="v5" \/>';
but it do not removes the line with document.getElement string as it has a backslash character before "/>".
Please let me know how to get rid of lines with backslash in it??
Regards,
Raj