# For path ' /home/gdb/Desktop ' include only several directory and exclude also future new files added in to' /home/gdb/Desktop '

PathFile="/home/gdb/Desktop"
InclFile="/varie\|/Fondi\$"
#
# Fix file and directory
ListExclFile="/root/.thumbnails | /home/*/.thumbnails"
#
# Set list file with separator
while read file; do
    if [ "$ListExclFile" ]; then
        ListExclFile=$ListExclFile" | "
    fi
    ListExclFile=$ListExclFile$file
done < <(find $PathFile -maxdepth 1 -mindepth 1 | grep -v $InclFile)
#
echo $ListExclFile

