perl -n000 -e" s[name: ([^\n]+)\ndate: ([^\n]+)\n.*][$1 $2]; chomp; pr +int qq[$_\n]; " <file >newfile
Use 's instead of "s on linux etc.
In reply to Re: Simple perl one-liner for transforming text files
by BrowserUk
in thread Simple perl one-liner for transforming text files
by m5m5m
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |