in reply to Pattern Matching Problem
Because you are going through the file line-by-line (default behaviour when assuming a while loop around the program), just test for the 'Twist 2' string at the end of the line.perl -n -e 'if(/Twist 2$/){s/Twist 2//;print;} testresults'
|
|---|