News for hackers. Stuff that matters.
Re:Wordle and grep by dieselerator on Saturday April 16, 2022 @01:51PM (#31054400)
This is an illustration that grep is a great tool, quick and easy to use.
Re:Wordle and grep by behnamoh on Saturday April 16, 2022 @02:16PM (#31054666)
rather egrep, though
Re:Wordle and grep by benji-york on Saturday April 16, 2022 @06:32PM (#31056672)
Both grep and egrep are the same executable.

  bash-3.2$ diff `which grep` `which egrep`
  bash-3.2$
Re:Wordle and grep by sizzzzlerz on Saturday April 16, 2022 @03:03PM (#31055108)
Can egrep do lookaheads or behinds? I find it necessary to use positive lookaheads to verify the test words include all the letters marked present but in the wrong location.
Re:Wordle and grep by lancebeet on Sunday April 17, 2022 @05:41AM (#31059673)
I was also curious about this as I use grep -P (for PCRE regexes) if I need to use them. Looking at the manual, lookaheads and lookbehinds don't seem to be supported by regular gnu grep or grep -E, so you do need to use grep -P for them.

https://www.gnu.org/software/grep/manual/grep.pdf

Re:Wordle and grep by _moof on Saturday April 16, 2022 @09:19PM (#31057581)
egrep is grep -E.