cpbak () {
cp $*{,.bak} }
cp $*{,.bak}
}
put this in your .bash_profile and you can run cpbak file and you will get a copy of file named file.bak.
run cpbak file
Tags: commandline parameter