Sujet : Re: ( Substring function in Python, Lisp) -- [Hijack] contains [hijk]
De : no.email (at) *nospam* nospam.invalid (Paul Rubin)
Groupes : rec.puzzles comp.lang.lisp comp.lang.pythonDate : 16. Feb 2025, 08:43:10
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87v7tabai9.fsf@nightsong.com>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
richard@cogsci.ed.ac.uk (Richard Tobin) writes:
$ awk 'BEGIN {for(i=97; i<=118; i++) printf("%c.*%c.*%c.*%c.*%c\n", i,
i+1, i+2, i+3, i+4);}' | while read e; do grep -i $e
/usr/share/dict/words; done
Nice! That picked up "Kilimanjaro" which my more complicated Python
script missed, because it didn't case-fold.