Find words whose first and last three letters are equal: Difference between revisions
Content deleted Content added
grammar |
|||
Line 377:
7: tartar
8: testes
</pre>
=={{header|jq}}==
{{works with|jq}}
'''Works with gojq, the Go implementation of jq'''
<lang jq>select(length > 5 and .[:3] == .[-3:])</lang>
{{out}}
Invocation example: jq -rRM -f program.jq unixdict.txt
<pre>
antiperspirant
calendrical
einstein
hotshot
murmur
oshkosh
tartar
testes
</pre>
|