Thread (10 messages) 10 messages, 8 authors, 2024-04-12

Re: [PATCH] treewide: Fix common grammar mistake "the the"

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2024-04-11 15:37:48
Also in: dri-devel, intel-gfx, intel-xe, io-uring, kernel-janitors, linux-arch, linux-arm-kernel, linux-doc, linux-fsdevel, linux-perf-users, linux-s390, linux-scsi, linux-unionfs, linux-wireless, lkml, netfs

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help