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?
In reply to Re: Print the output results of matching line horizontally
by NetWallah
in thread Print the output results of matching line horizontally
by sreek3502
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |