Words containing "the" substring: Difference between revisions

Content deleted Content added
Not a robot (talk | contribs)
add Refal
Aartaka (talk | contribs)
Add ed example
 
Line 913:
{{out}}
<pre style='height:50ex;'>authenticate
chemotherapy
chrysanthemum
clothesbrush
clotheshorse
eratosthenes
featherbedding
featherbrain
featherweight
gaithersburg
hydrothermal
lighthearted
mathematician
neurasthenic
nevertheless
northeastern
northernmost
otherworldly
parasympathetic
physiotherapist
physiotherapy
psychotherapeutic
psychotherapist
psychotherapy
radiotherapy
southeastern
southernmost
theoretician
weatherbeaten
weatherproof
weatherstrip
weatherstripping</pre>
 
=={{header|ed}}==
 
First remove the short lines, then remove the ones without "the".
 
<syntaxhighlight lang="sed">
# by Artyom Bologov
H
v/.\{12,\}/d
v/the/d
,p
Q
</syntaxhighlight>
 
{{out}}
 
<pre>$ ed -s unixdict.txt < the-substring.ed
authenticate
chemotherapy
chrysanthemum