perl -n -we "print if /Twist 1/ .. /Twist 2/ and not /Twist \d/" test.txt