in reply to onle liner help needed
Besides that, I wonder about the reason you need to do it as a one liner, when you have a working script? I mean, a one liner is cool but not an end in itself.perl -e '$badxml = `cat /mmf/log/BadXMLXact*`; $badxml =~ /21-digit-n +umber(.|\n)+/; $& =~ m/\*\*\*.*UID/; $output = $`; for ($output ) { +s/\s{3,}/\n/g; } print $output;'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: onle liner help needed
by dimchik (Initiate) on Aug 20, 2007 at 14:19 UTC |