Find all files with the extension .txt in the current working directory and its subdirectories up to 4 levels deep, and for each of those files, remove the .txt extension from the filename.
find $(pwd) -maxdepth 4 -name "*.txt" | xargs sed -e 's/\.txt//g'