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

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