Copy a random file from the current directory and create a backup of it in the same directory with the same name and a ".bak" extension.
cat <(shuf -e $(ls)) | head -n 1 | xargs -I {} cp {} $(pwd)/{}.bak