I want to extract the lines between PAT 1 to PAT 2 including the pattern lines depending only on the first column, the patterns are only existing for one time in the first column but they may exist for more than one time in the other columns. example for my input file
0.000 0.8928 0.893
0.500 PAT1 0.902
PAT1 0.8974 0.9116
1.500 0.8986 0.9199
2.000 0.8989 0.9258
2.500 PAT1 0.9285
3.000 0.8978 0.9272
3.500 0.8959 0.9219
PAT2 0.8936 0.9128
4.500 0.8912 0.9009
5.000 0.8889 PAT2
5.500 0.887 0.8718
6.000 PAT2 0.8565
6.500 0.8858 0.8414
7.000 0.8871 0.8271
my output should be like this
PAT1 0.8974 0.9116
1.500 0.8986 0.9199
2.000 0.8989 0.9258
2.500 PAT1 0.9285
3.000 0.8978 0.9272
3.500 0.8959 0.9219
PAT2 0.8936 0.9128
my trail is to use awk as following
awk '/PAT1/,/PAT2/' input
but this is independent on the column