OSDN Git Service
(root)
/
twpd
/
master.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Regular updates
[twpd/master.git]
/
grep.md
diff --git
a/grep.md
b/grep.md
index
c9dc9b0
..
5d69f3e
100644
(file)
--- a/
grep.md
+++ b/
grep.md
@@
-86,7
+86,7
@@
grep -E "foo|oof" bar.txt
# match anything that resembles a URL in
# foo.txt and only print out the match
-grep -oE "https?:
\/\
/((\w+[_-]?)+\.?)+" foo.txt
+grep -oE "https?:
/
/((\w+[_-]?)+\.?)+" foo.txt
# can also be used with pipes:
# match any line that contains "export" in