Skip to content

Automate conversion of .log files to .txt #113

Answered by sm-shaw
MrMcTabernaffy asked this question in Q&A
Discussion options

You must be logged in to vote

OK this is only adding a couple of lines to loop through the files. As an windows example I have done a few runs and used "Use unique Log Name" to get the unique log extensions. You don't want the data for different runs in the same file as this will get mixed up.

C:\temp>dir *.log
27/03/2020  10:49             5,111 hammerdb_5E7DD9F8D73003E233530393.log
27/03/2020  10:53             5,110 hammerdb_5E7DDACEE3F203E243131373.log
27/03/2020  10:58             5,089 hammerdb_5E7DDC35F95A03E203432303.log
27/03/2020  11:01             5,092 hammerdb_5E7DDCC11B4C03E263633363.log

Then copy the script below, name it something like "convert.tcl" - note my example logs are generated in C:\temp your…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by abondvt89
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #113 on December 16, 2020 18:09.