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