I spent forever trying to figure out how to unwrap an apache access_log that was splitting requests between two lines. I finally found the answer!
Create a perl script called unwrap.pl and run the script like this:
# perl unwrap.pl access_log > accesslog2 #!/bin/env perl use strict; my $sentinel = 0; my $previous_line; my $result . . . → Read More: linux unwrap text file