Please use <c>...</c> around computer text (data, code, output, etc).

[17/Aug/2010:14:58:39 +0000] conn=102837 op=0 msgId=13496 - MOD xxxxxx +xx [17/Aug/2010:15:27:16 +0000] conn=102837 op=0 msgId=21769 - DEL xxxxxx

i just want to grep all the lines with the word "MOD" and "DEL" from the tail command ..can you help me?

You just said your file had no such line. It sounds like you want to keep all the lines that have the word "MOD" or the word "DEL". You already posted code to do that.


In reply to Re^5: what is grep command for and condition by ikegami
in thread OT: what is grep command for and condition by anakin30

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.