Skip to content

Instantly share code, notes, and snippets.

@sheldonh
Created October 7, 2014 22:05
Show Gist options
  • Save sheldonh/2b0b0b0544e1dc88a97c to your computer and use it in GitHub Desktop.
Save sheldonh/2b0b0b0544e1dc88a97c to your computer and use it in GitHub Desktop.
grep -bo
[sheldonh@localhost etcdctl]$ cat Dockerfile
FROM golang:1.3.3-onbuild
RUN ln -s /go/bin/app /usr/bin/etcdctl
WORKDIR /
CMD ["/bin/bash"]
[sheldonh@localhost etcdctl]$ grep -bo R Dockerfile
1:R
27:R
69:R
73:R
[sheldonh@localhost etcdctl]$ grep --version
grep (GNU grep) 2.18
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment