SHARE
TWEET

grep demo

a guest Oct 8th, 2012 27 Never
  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
RAW Paste Data
Top