Find all files in the current directory (max depth of 1) with any name and any extension, execute the head command on each file to print the first line, and print the first word of each line.
find ./ -maxdepth 1 -iname '*.*' -exec head -n1 {} \; | awk '{print $1}'