Change bak script to accept several arguments

This commit is contained in:
Talia 2020-09-02 10:37:31 +02:00
parent 601087f724
commit d48569d499
1 changed files with 5 additions and 2 deletions

View File

@ -10,5 +10,8 @@ bakrotate() {
fi fi
} }
bakrotate "$1.bak" for file in $@
cp $1 $1.bak do
bakrotate "$file.bak"
cp $file $file.bak
done