perl -ne 'print if /Pattern1/ .. /Pattern2/' file1