sed - Perl conversion done with s2p

=head1 NAME psed - a stream editor =head1 SYNOPSIS psed [-an] script [file ...] psed [-an] [-e script] [-f script-file] [file ...] s2p [-an] [-e script] [-f script-file] =head1 DESCRIPTION A stream editor reads the input stream consisting of the specified fil +es (or standard input, if none are given), processes is line by line by applying a script consisting of edit commands, and writes resulting li +nes to standard output. The filename 'C<->' may be used to read standard i +nput. The edit script is composed from arguments of B<-e> options and script-files, in the given order. A single script argument may be spec +ified as the first parameter. If this program is invoked with the name F<s2p>, it will act as a sed-to-Perl translator. See L<"SED SCRIPT TRANSLATION">. B<sed> returns an exit code of 0 on success or >0 if an error occurred +.

Enjoy, Have FUN! H.Merijn

In reply to Re: Must have CLI of Perl's sed's n command by Tux
in thread Must have CLI of Perl's sed's n command by abdan

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.