I'd like to create a Bash Script that will allow me to check the existence of a file in a directory and touch that file if it doesn't exist. At the same time, I would like an exclusion list that will exclude certain directories from having that file touched. Please see what I have so far. I'm stuck on the excludes file:
for i in `find $BASEDR -name "*stuff" -print`;
ls $i/hello > /dev/null 2>&1
[ $rc -ne 0 ] && echo "$i doesn't have the file."