perl -n0e 'while (/name: (.*)\ndate: (.*)/g){$cnt++;print "$cnt. $1 $2 +\n"}' <FILE>
-enlil
In reply to Re: Simple perl one-liner for transforming text files
by Enlil
in thread Simple perl one-liner for transforming text files
by m5m5m
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |