Change bak script to accept several arguments
This commit is contained in:
parent
601087f724
commit
d48569d499
1 changed files with 5 additions and 2 deletions
7
bin/bak
7
bin/bak
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue