Linux / Unix: Sed / Grep / Awk Print Lines If It Got 3 Words Only Posted on November 9, 2012November 9, 2012in Categories BASH Shell last updated November 9, 2012I have a sample data file: This is a test. Unix is Best. No Linux is the Best. Space in simple understanding is an area or volume. Outer space . I need the output: Unix is Best. Outer space . How do I print all lines that have three (3) words only?