find *3800078163033*.Z
string="3800078163033" for file *.Z do if [[ -n "$(gzcat $file | grep $string)" ]];then echo "File [$file] contains string [$string]" fi done