find all the files in the directory which is pointed by $1 variable ending with the name held in the variable $2 or having the extension of value saved in the argument $2.
find $1 \( -name "*$2" -o -name ".*$2" \) -print