#!/bin/bash CAPWORD="([A-Z]{1}[-_'a-z]+ ?)" grep -Eo "($CAPWORD){2,}"