Find all files in the current directory (and its subdirectories) with any name and any extension, and execute the bzip2 command on each of them in the same directory.
find . -iname '*.*' -execdir bzip2 {} \;