in reply to Re: Robocopy log parsing
in thread Robocopy log parsing
Don't have that option. I'm not the creator of these logs files.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Robocopy log parsing
by Anonymous Monk on May 30, 2012 at 17:31 UTC | |
I think you want something like that:
Also look at this example, how to avoid $1, $2, ... matching parameters, you can directly assing the result to a list of variables You also can try to put the three assignments in ony line, this is left as an exercise ;-) | [reply] [d/l] |
by Anonymous Monk on Jun 01, 2012 at 09:26 UTC | |
Thanks alot for this. Works very nicely. There is one thing though. This is tyhe result:
when it encounters the next New Dir entry, it adds the last filename from the previous one. as exampled above. Any suggestions? | [reply] [d/l] |
by Anonymous Monk on Jun 01, 2012 at 09:36 UTC | |
Any suggestions? Its a classic off-by-one error (OBOE) , it should be simple to fix | [reply] |
by bit5nip3r (Initiate) on Jun 01, 2012 at 14:26 UTC | |
Thanks. I made a few tweaks, and have also wraped a MySQL import process around it. So now it parses the log file and directly imports into MySQL.
| [reply] [d/l] |