grep -rni "text" /directory/path find /directory/path -type f exec grep -l "text" {} \; Thanks Linux Journal