ABC words: Difference between revisions
Content added Content deleted
(→{{header|C#|CSharp}}: Add awk.) |
(→{{header|Phix}}: Add Python) |
||
Line 419: | Line 419: | ||
55 abc words found: aback, abacus, abc, ..., syllabic, tabernacle, tablecloth |
55 abc words found: aback, abacus, abc, ..., syllabic, tabernacle, tablecloth |
||
</pre> |
</pre> |
||
=={{header|Python}}== |
|||
Outputs the same 55 words as other examples when entered in a Posix terminal shell |
|||
<lang python>python -c ' |
|||
import sys |
|||
for ln in sys.stdin: |
|||
if "a" in ln and ln.find("a") < ln.find("b") < ln.find("c"): |
|||
print(ln.rstrip()) |
|||
' < unixdict.txt |
|||
</lang> |
|||
=={{header|Raku}}== |
=={{header|Raku}}== |