Ah thanks!! but the key is not the last word on the line!! in fact that was my previous comment, but I removed it since I figured a way to grep it from the middle of the line.The key column can be any where ,not necessarily last....what should be the adaptation now.
aaa23 fgfgdf test pppp Released bbb34 fgfgdf test pppp Released dfsad324 fgfgdf test pppp Released efdewr23 fgfgdf dev pppp Released dsarfew234 fgfgdf dev pppp skip dqewr2321 fgfgdf prod pppp skip sdsw32 fgfgdf prod pppp Released asdw234 fgfgdf prod pppp Released sadw2342 fgfgdf qa pppp Released deww234 fgfgdf qa pppp Released qdrqew234 fgfgdf qa pppp block swd234 fgfgdf manage pppp Released swdq234 fgfgdf manage pppp Released dfwfr43 fgfgdf manage pppp Released drqewr234 fgfgdf manage pppp Released

2018-08-19 Athanasius added code tags


In reply to Re^6: Reading multiple lines from text file by newperlbie
in thread Reading multiple lines from text file by newperlbie

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.