Find all files with the extension ".txt" in the current working directory and execute the gnuplot command with the output set to the found file.
find $(pwd) -iname "*.txt" -exec gnuplot -e "output='{}'" \;