New Discord clone ("Harmony") with a suspiciously AI-looking website, a single contributor, and blistering development = AI. Took me a minute to find it but it looks like they were scrubbed from a few places ~3 weeks ago.

https://github.com/y4my4my4m/harmony/pull/82

you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 1 week ago* (5 children)

I think you could use -o instead of regex? not sure :D

$ git clone https://github.com/y4my4my4m/harmony && grep -Ro "—" harmony | wc -l
  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 1 week ago (4 children)

    The regex is to match only em dashes in comments (following a //). If you want to search for all em dashes you can just do that (though there's no need for the -o since grep matches lines and wc -l counts lines).

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 week ago

    no need for the -o since grep matches lines and wc -l counts lines

    grep -o prints each match on a separate line, so the wc -l count will be higher if there are any lines with multiple matches.

  • source
  • parent