Sujet : Re: ( Substring function in Python, Lisp) -- [Hijack] contains [hijk]
De : richard (at) *nospam* cogsci.ed.ac.uk (Richard Tobin)
Groupes : rec.puzzles comp.lang.lisp comp.lang.pythonDate : 16. Feb 2025, 20:02:35
Autres entêtes
Organisation : Language Technology Group, University of Edinburgh
Message-ID : <votcob$1p98$1@macpro.inf.ed.ac.uk>
References : 1 2 3
User-Agent : trn 4.0-test76 (Apr 2, 2001)
In article <
87v7tabai9.fsf@nightsong.com>,
Paul Rubin <
no.email@nospam.invalid> wrote:
$ 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.
Or, closer to (my) home, "Kilmarnock".
-- Richard