summaryrefslogtreecommitdiffstats
path: root/FAQ.md
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2020-06-04 21:06:09 +0800
committerGitHub <noreply@github.com>2020-06-04 09:06:09 -0400
commit1b2c1dc67583d70d1d16fc93c90db80bead4fb09 (patch)
treea4da425db18963a1ac23c704d4aaf1bdadde916c /FAQ.md
parentb1e3de246c7cfd88f43a25cfdce19adf4d2c9283 (diff)
doc: fix typos
PR #1605
Diffstat (limited to 'FAQ.md')
-rw-r--r--FAQ.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/FAQ.md b/FAQ.md
index 3eed7942..69c398d6 100644
--- a/FAQ.md
+++ b/FAQ.md
@@ -139,7 +139,7 @@ How do I search compressed files?
ripgrep's `-z/--search-zip` flag will cause it to search compressed files
automatically. Currently, this supports gzip, bzip2, xz, lzma, lz4, Brotli and
-Zstd. Each of these requires requires the corresponding `gzip`, `bzip2`, `xz`,
+Zstd. Each of these requires the corresponding `gzip`, `bzip2`, `xz`,
`lz4`, `brotli` and `zstd` binaries to be installed on your system. (That is,
ripgrep does decompression by shelling out to another process.)
@@ -824,7 +824,7 @@ rg foo --files-with-matches | xargs sed -i 's/foo/bar/g'
will replace all instances of 'foo' with 'bar' in the files in which
ripgrep finds the foo pattern. The `-i` flag to sed indicates that you are
editing files in place, and `s/foo/bar/g` says that you are performing a
-**s**ubstitution of the pattren `foo` for `bar`, and that you are doing this
+**s**ubstitution of the pattern `foo` for `bar`, and that you are doing this
substitution **g**lobally (all occurrences of the pattern in each file).
Note: the above command assumes that you are using GNU sed. If you are using