Throw <[EMAIL PROTECTED]> wrote in comp.lang.perl.misc:
> 
> G'day everyone!
> 
> I would like to design typing tutor exercises for Afrikaans (and other
> languages possibly).  This is for a GPL project.  For this, I need a
> script that can extract words from a long list of words, based on which
> letters those words contain, and write then write output to a file.
> Does anyone know of an existing script for this, or can anyone write me
> one, please?

For the letters a, d, f and g:

perl -ne 'print if /^[adfg]+$/' < /list/of/words > words_with_adfg

For other combinations, change both occurrences of "adfg".

Anno
-- 
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article.  Click on 
"show options" at the top of the article, then click on the 
"Reply" at the bottom of the article headers.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to