Skip to content

Instantly share code, notes, and snippets.

@sebnyberg
Last active January 6, 2021 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebnyberg/0b2f83457afae51e9fee4be8917999ba to your computer and use it in GitHub Desktop.
Save sebnyberg/0b2f83457afae51e9fee4be8917999ba to your computer and use it in GitHub Desktop.
Bash article
#!/usr/bin/env bash
#
# Make a backup and remove files
#
# Usage:
#
# ./archive $path $backup_path
#
#!/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