scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit dbd1cb75f5b9cff1d3863518b688f73f35888902
parent 05d29409a92708547be79117ff458a628955d007
Author: gearsix <gearsix@tuta.io>
Date:   Wed,  3 Feb 2021 10:44:08 +0000

backup works for

Diffstat:
Msrc/backup.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/backup.sh b/src/backup.sh @@ -1,7 +1,7 @@ #!/bin/sh # backup -# description: backup $1 to $1.bak -# e.g.$ backup ~/.bashrc +# description: backup $@ to $@.bak +# e.g.$ backup ~/.bashrc ~/.vimrc -cp $1 $1.bak +for f in ${@}; do cp $f $f.bak; done