summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorViren Nadkarni <viren-nadkarni@users.noreply.github.com>2016-05-12 16:37:50 +0530
committerven <vendethiel@hotmail.fr>2016-05-12 13:07:50 +0200
commit4e5439c21f5ab5ba33e46926b2fc5e44e25362ae (patch)
tree3b6cd38071f247183a077d1c839f941a89798e73 /bash.html.markdown
parent02db6f2bfcb8371a29a708ca425f8785615da969 (diff)
Fix a mistake in fgrep example (#2254)
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index f3c9cccc..02d7f31e 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -270,7 +270,7 @@ grep "^foo.*bar$" file.txt
grep -c "^foo.*bar$" file.txt
# if you literally want to search for the string,
# and not the regex, use fgrep (or grep -F)
-fgrep "^foo.*bar$" file.txt
+fgrep "foobar" file.txt
# Read Bash shell builtins documentation with the bash 'help' builtin: