Hi harishnv. In addition to posting the code you have tried so far (as thanos1983 suggested here), it's very important to post input and output data examples in a downloadable format, i.e., within  <code> ... </code> tags. Please see Writeup Formatting Tips and How do I post a question effectively? For example, a dozen or fewer lines of downloadable (i.e., in  <code> ... </code> tags) input data would have been far better than the confusing written description given in the OP. By the same token, two or three separate, downloadable (as above) example output files that you would expect to result from the given input example would have been very helpful to anyone who wanted to spend time trying to help you. The slogan for the day: Please help us to help you.

Update: OP updated to add some code tags, unfortunately without much improvement in comprehensibility IMHO.


Give a man a fish:  <%-{-{-{-<


In reply to Re: Copying files from one file to another file by AnomalousMonk
in thread Copying files from one file to another file by harishnv

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.