in reply to Simple perl one-liner for transforming text files
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Simple perl one-liner for transforming text files
by jdporter (Paladin) on Mar 06, 2003 at 06:22 UTC | |
by BrowserUk (Patriarch) on Mar 06, 2003 at 06:48 UTC | |
|
Re: Re: Simple perl one-liner for transforming text files
by m5m5m (Initiate) on Mar 05, 2003 at 21:09 UTC | |
by BrowserUk (Patriarch) on Mar 05, 2003 at 21:18 UTC |