11 22 33 44 55 66 77
When pattern 55 is met, print upto it, so output is
11 22 33 44
awk -v v=55 '$0==v{exit}1' file