Grep Text File for Lines Containing 1 or 2 Words

From: Buck Turgidson (jc_va_at_hotmail.com)
Date: 01/25/05


Date: Tue, 25 Jan 2005 16:50:17 -0500

Looking for help in writing a perl that will pull from a text file those
lines containing one or two "words". I want to reject any line that
contains more than 2 words (a sentence).

Appreciate any help from text processing experts.



Relevant Pages