perl -nlwe 'print $l if $_ eq "+"; $l = length' your-file [download]
In reply to Re: read nth lines in a text file by JavaFan in thread read nth lines in a text file by adansonia