in reply to Simple perl one-liner for transforming text files
perl -n0e 'while (/name: (.*)\ndate: (.*)/g){$cnt++;print "$cnt. $1 $2 +\n"}' <FILE> [download]
-enlil