1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 13:18:35 -06:00

Added support for multiple files

This commit is contained in:
Sayantan Santra 2022-01-22 18:38:42 -06:00
parent 1e81ddddae
commit 77471749d6

9
makebk
View file

@ -6,3 +6,12 @@ if [[ -n "$1" ]];
then then
cp "$1"{,.bak} cp "$1"{,.bak}
fi fi
if [ $# -ge 1 ]; then
for f in $@
do
[ -n "$f" ] &&cp "$f"{,.bak}
done
else
echo "No filenames passed."
fi