$/="" and -00
$ cat input.txt Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis elit tempus, hendrerit sem a, maximus urna. Aenean vitae est at risus fringilla egestas vitae in lacus. In a metus vel elit varius rhoncus. Morbi at sem euismod, tincidunt nunc quis, maximus quam. Sed maximus nibh vel suscipit ullamcorper. Mauris sed ex ut nulla accumsan feugiat. Donec sit amet sapien laoreet mauris sodales scelerisque. Aliquam varius diam sit amet mollis iaculis. Quisque vel neque auctor, feugiat velit eleifend, ultrices nunc. Vivamus condimentum metus quis nunc tincidunt lobortis. Fusce a dolor sed tellus condimentum vulputate. Proin ac tortor ut metus mattis gravida. Ut quis orci ornare, aliquet dolor id, commodo justo. $ perl -ln00e '/sed/i and print' input.txt In a metus vel elit varius rhoncus. Morbi at sem euismod, tincidunt nunc quis, maximus quam. Sed maximus nibh vel suscipit ullamcorper. Mauris sed ex ut nulla accumsan feugiat. Donec sit amet sapien laoreet mauris sodales scelerisque. Aliquam varius diam sit amet mollis iaculis. Quisque vel neque auctor, feugiat velit eleifend, ultrices nunc. Vivamus condimentum metus quis nunc tincidunt lobortis. Fusce a dolor sed tellus condimentum vulputate.

In reply to Re: Paragraph grep by Anonymous Monk
in thread Paragraph grep: request for testing, comments and feedbacks by siberia-man

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.