Created
January 9, 2020 10:34
-
-
Save bougui505/0fff7f9cc6cbd1cfea8f683529c4a66d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# -*- coding: UTF8 -*- | |
# Author: Guillaume Bouvier -- guillaume.bouvier@pasteur.fr | |
# https://research.pasteur.fr/en/member/guillaume-bouvier/ | |
# 2020-01-09 11:32:55 (UTC+0100) | |
if [ $# -eq 1 ]; then | |
cp -pvi "$1" "${1}.bak" | |
else | |
echo "Info: $0 copies to a backup file" | |
echo "Usage: $0 <file to be backed up with .bak extension>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment