Find all files with the extension .cpp in the current directory and its subdirectories, and execute the command awk to print the first column of each file.
find ~ -name '*.cpp' -exec awk '{print $1}' {} \;