Reading multi-line records

May 18, 2013 in answer

0 votes, 0.00 avg. rating (0% score)

ANSWER:

It’s because you have spaces after __Data__ in your file. Remove the trailing spaces from your file.

perl -i -ple's/s+z//' logA.txt

ikegami from http://stackoverflow.com/questions/16627594