This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

grep demo

By: a guest on Oct 8th, 2012  |  syntax: None  |  size: 0.11 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data