linux unwrap text file

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 and run the script like this:

# perl access_log > accesslog2 #!/bin/env perl use strict; my $sentinel = 0; my $previous_line; my $result . . . → Read More: linux unwrap text file