1. bash-4.2$ echo 'one
  2. > Bar two Foo
  3. > three
  4. > ' | grep -A1 'Foo' | grep -B1 'Bar' | grep 'Foo'
  5. Bar two Foo