|
|
| Just another Perl shrine | |
| PerlMonks |
Re: File Find/Replace with the replacement coming from part of earlier matched stringby Kenosis (Deacon) |
| on Feb 05, 2013 at 13:51 UTC ( #1017166=note: print w/ replies, xml ) | Need Help?? |
|
One option is to create a directory in your log files' directory for the prepped log files, so the originals aren't altered. Given that the log files' format is as shown, consider the following which writes prepped files into a directory called prepped:
Sample file output from your data:
The fileglob operator <*.log> is used to get the list of files in the log directory; you may need to change the file extension. Hope this helps!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||