Hello folks, I am reading from a file and trying to match a few things in there. My file contain the following:

File line Type code D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx~1332222~Note~444912~Implic +it D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx~1666633~Note~966656~Non co +nst D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx~1666673~Note~190994~Old-st +yle D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx~1854547~Note~194417~empty D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx~1877778~Note~916765~Implic +it D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx~1955551~Note~955515~Implic +it

I need to a capture the file and the code belongs to it and send it to a new file the new file should look like this:

D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx 444912 D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx 966656 D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx 190994 D:\minibuild\nbsssbs\appl\src\erlmtrihm.cxx 194417

I am having problem with the ~ so any ideas or tips, I would appreciate it.

Edited: ~Wed Jul 3 16:52:43 2002 (GMT), by footpad:
Added <code> (and other formatting) tags and corrected minor typos.


In reply to match from a file and output to another by amoura

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.