I have large web log files up to 150Meg that I need to reformat to be compatible with Mach5 M5 Analyzer ([login to view URL]). My logs have the pipe symbol '|' as a separator and M5 does not parse that. For the most part, I can do the conversion in a text editor. However, the size of the files makes this a tedius chore and tends to crash. There are about 5 different edit replacements that need to be accomplished such as '| - | [' becomes '- - [', etc. Thus, in a text editor, it takes 5 or 6 passes to do all the conversions. A fragment of my log file as well as an acceptable file is located at [login to view URL] The server configuration line for log generation is: LogFormat "%h | %u | %t | \"%r\" | %>s | %b | %{HTTP_HOST}e | %{Referer}i | \"%{User-agent}i\"" custom Note that some of the lines can be quite long as some of the search engines pass long strings to the log. Running a programming file editor (PFE 1.01)truncated a couple of the lines as being too long. Mach5 can be downloaded and run for 30 days free.
## Deliverables
I would like a .exe program that asks for the input file name and an output file name and performs the conversion. The program should be compact to run quickly given the size of the files. The program should run under windows although it is permissible to run the program from a Dos Window.
## Platform
Operating system is Windows XP.