#!/usr/local/bin/bash echo "Add files" | egrep "[aD][dD]{2}" 2>&1 /dev/null echo ${?}