Find words whose first and last three letters are equal: Difference between revisions

Content added Content deleted
(FutureBasic solution added)
(add sed)
Line 857: Line 857:
testes
testes
</pre>
</pre>

=={{header|sed}}==
<syntaxhighlight lang="sed">/^\(...\).*\1$/!d</syntaxhighlight>
{{out}}
<pre>
$ sed -f ends3eq.sed unixdict.txt
antiperspirant
calendrical
einstein
hotshot
murmur
oshkosh
tartar
testes
</pre>

=={{header|Sidef}}==
=={{header|Sidef}}==
<syntaxhighlight lang="ruby">File("unixdict.txt").open_r.each {|word|
<syntaxhighlight lang="ruby">File("unixdict.txt").open_r.each {|word|