Skip to content

Instantly share code, notes, and snippets.

@hsiaoting
Created October 26, 2012 09:51
Show Gist options
  • Save hsiaoting/3957917 to your computer and use it in GitHub Desktop.
Save hsiaoting/3957917 to your computer and use it in GitHub Desktop.
zsh or bash function
function backup(){
newname=$1.`date +%Y%m%d`.bk;
cp $1 $newname;
echo "Backed up(copy) $1 to $newname";
}
@hsiaoting
Copy link
Author

UNIX management manual: p308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment