Anonymous user
ABC words: Difference between revisions
→{{header|Phix}}: Add Python
(→{{header|C#|CSharp}}: Add awk.) |
(→{{header|Phix}}: Add Python) |
||
Line 419:
55 abc words found: aback, abacus, abc, ..., syllabic, tabernacle, tablecloth
</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}}==
|