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
}
bakrotate "$1.bak"
cp $1 $1.bak
for file in $@
do
bakrotate "$file.bak"
cp $file $file.bak
done