Replace the end of line character (\r) with nothing in a randomly chosen text file in the home directory, and create a backup file with the extension .bak.
sed -i '.bak' -e 's/\r$//' $(find ~/ -name "*.txt" | shuf -n 1)