Find all files in the current directory and its subdirectories, replace the last character of each file with any alphanumeric character, and save the changes.
find ~ -type f -name "*" | xargs -I {} sed -i -e 's/\w$/[A-Za-z0-9]/g' {}