summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2014-10-17 21:11:03 -0500
committerLevi Bostian <levi.bostian@gmail.com>2014-10-17 21:11:03 -0500
commit115f35287fc54633cdcb0d0ba8f2fef1b9cc8921 (patch)
tree62e1176d31f48433776b2edaa859995d40fbf253 /bash.html.markdown
parent57b5eb1bac3ccb1afd8f6359de6457318b91ffaa (diff)
parentccdd47267b28104a74352151a0424bd6f62bd390 (diff)
Merge pull request #809 from levibostian/little-fixes-after-merging
Little fixes after merging
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 9b199b8c..11c1f3a2 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -202,7 +202,7 @@ uniq -d file.txt
cut -d ',' -f 1 file.txt
# replaces every occurrence of 'okay' with 'great' in file.txt, (regex compatible)
sed -i 's/okay/great/g' file.txt
-# print to stdout all lines of file.txt which match some regex, the example prints lines which beginning with "foo" and end in "bar"
+# print to stdout all lines of file.txt which match some regex, the example prints lines which begin with "foo" and end in "bar"
grep "^foo.*bar$" file.txt
# pass the option "-c" to instead print the number of lines matching the regex
grep -c "^foo.*bar$" file.txt