Last active
January 6, 2021 18:43
-
-
Save sebnyberg/0b2f83457afae51e9fee4be8917999ba to your computer and use it in GitHub Desktop.
Bash article
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 bash | |
# | |
# Make a backup and remove files | |
# | |
# Usage: | |
# | |
# ./archive $path $backup_path | |
# |
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 bash | |
# | |
# Make a backup and remove files | |
# | |
# Usage: | |
# | |
# ./rmsafe $file | |
# | |
cp $1 /bak/$1 | |
rm $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment