Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Thanks for this. "Example" - is a typical log file entry I have:

New Dir 16 x:\xxxxxx\xxx\ New File 126862 xxxxxxxxxxxxxxxxxxxxxxx.xxx New File 48640 xxxxxxxxxxxxxxxxxxxxxxxxx.xxx New File 96494 xxxxxxxxxxxxxxxxxxxxxx.xxx New File 105466 xxxxxxxxxxxxx.xxx New File 653655 xxxxxxxxxx.xxx New File 542396 xxxxxxxxxxxxxx.xxx New Dir 6 y:\yyyyyyyyy\yyyyyyyyyyy\yyyyyyy\ New File 41984 yyyyyyyyyyyyyyyyyy.yyy New File 10007 yyyyyyyyyyyyyyy.yyy New File 1.3 m yyyyyy.yyy

"Result" - what I want to achieve is this:

New Dir 16 x:\xxxxxx\xxx\ New File x:\xxxxxx\xxx\ 126862 xxxxxxxxxxxxxxxxxx +xxxxx.xxx New File x:\xxxxxx\xxx\ 48640 xxxxxxxxxxxxxxxxxx +xxxxxxx.xxx New File x:\xxxxxx\xxx\ 96494 xxxxxxxxxxxxxxxxxx +xxxx.xxx New File x:\xxxxxx\xxx\ 105466 xxxxxxxxxxxxx.xxx New File x:\xxxxxx\xxx\ 653655 xxxxxxxxxx.xxx New File x:\xxxxxx\xxx\ 542396 xxxxxxxxxxxxxx.xxx New Dir 6 y:\yyyyyyyyy\yyyyyyyyyyy\yyyyyyy\ New File y:\yyyyyyyyy\yyyyyyyyyyy\yyyyyyy\ 41984 + yyyyyyyyyyyyyyyyyy.yyy New File y:\yyyyyyyyy\yyyyyyyyyyy\yyyyyyy\ 10007 + yyyyyyyyyyyyyyy.yyy New File y:\yyyyyyyyy\yyyyyyyyyyy\yyyyyyy\ 1.3 m + yyyyyy.yyy

It's almost there except I can't get the full folder path to match its associated file(s)

To get $dir to work, does that go within my loop?


In reply to Re^6: Robocopy log parsing by bit5nip3r
in thread Robocopy log parsing by bit5nip3r

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found