Advertisement
Guest User

grep demo

a guest
Oct 8th, 2012
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement