From: Johannes Berg <[email protected]>
To: Thorsten Blum <[email protected]>,
[email protected]
Cc: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected]
Subject: Re: [PATCH] treewide: Fix common grammar mistake "the the"
Date: Thu, 11 Apr 2024 17:37:41 +0200 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
On Thu, 2024-04-11 at 17:04 +0200, Thorsten Blum wrote:
> Use `find . -type f -exec sed -i 's/\<the the\>/the/g' {} +` to find all
> occurrences of "the the" and replace them with a single "the".
I estimated that this misses at least ~50 instances split across lines:
$ git grep -ih -A1 -e 'the$'|grep -vi 'the$'|grep -E -- '^[^a-zA-Z0-9]*the '|wc -l
51
And a bunch that have more than one space:
$ git grep -E '\<the\s\s+the\>'|wc -l
20
So not sure you should claim "all" ;-)
johannes
next prev parent reply other threads:[~2024-04-11 15:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-11 15:04 [PATCH] treewide: Fix common grammar mistake "the the" Thorsten Blum
2024-04-11 15:13 ` Randy Dunlap
2024-04-11 15:25 ` Dan Carpenter
2024-04-11 22:39 ` Thorsten Blum
2024-04-12 6:41 ` Jani Nikula
2024-04-11 15:37 ` Johannes Berg [this message]
2024-04-11 16:29 ` Tyler Hicks
2024-04-11 16:45 ` Robin Murphy
2024-04-11 17:11 ` [PATCH v2] " Thorsten Blum
2024-04-11 20:23 ` Christophe JAILLET
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2a0cf345c7e049ffd76acd315e6b377d94a344c.camel@sipsolutions.net \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox