Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-4.2$ echo 'one
- > Bar two Foo
- > three
- > ' | grep -A1 'Foo' | grep -B1 'Bar' | grep 'Foo'
- Bar two Foo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement