Skip to content

Instantly share code, notes, and snippets.

@pinebright
Created May 8, 2020 06:05
Show Gist options
  • Save pinebright/62c922999ccf727c1116b9e4fab2d0e3 to your computer and use it in GitHub Desktop.
Save pinebright/62c922999ccf727c1116b9e4fab2d0e3 to your computer and use it in GitHub Desktop.
バックアップコマンド
#!/bin/sh
if [ "$1" = "-h" ]; then
echo "Usage: bak FILENAME"
else
mv $1 $(date "+%Y%m%d%H%M%S")_$1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment