in reply to Print the output results of matching line horizontally
If you are on Windows, use double quotes instead of single.>perl -ane 'm/Student Name\s+=\s+(\w+)/ and $name=$1; m/Exam Status\s+ +=\s+(\w+)/ and print qq{$name\t$1\n}' results.bat Harry PASSED Mike PASSED Tom PASSED
Is a computer language with goto's totally Wirth-less?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print the output results of matching line horizontally
by AnomalousMonk (Archbishop) on Jan 14, 2018 at 20:47 UTC | |
by Laurent_R (Canon) on Jan 14, 2018 at 21:59 UTC | |
by NetWallah (Canon) on Jan 15, 2018 at 00:54 UTC | |
by AnomalousMonk (Archbishop) on Jan 15, 2018 at 03:44 UTC |