|
|
|
@ -2,10 +2,14 @@
|
|
|
|
optstring="o:"
|
|
|
|
optstring="o:"
|
|
|
|
declare -i abort=0
|
|
|
|
declare -i abort=0
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: Check for dependencies pv and stat.
|
|
|
|
|
|
|
|
# TODO: Add help option to display usage.
|
|
|
|
# TODO: Add help option to display usage.
|
|
|
|
# TODO: Consider a switch for per-file progress bars rather than a whole-operation one.
|
|
|
|
# TODO: Consider a switch for per-file progress bars rather than a whole-operation one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -e "$(which pv)" ]; then
|
|
|
|
|
|
|
|
echo "Error: pv does not seem to be installed. Exiting."
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
while getopts ${optstring} args; do
|
|
|
|
while getopts ${optstring} args; do
|
|
|
|
case $args in
|
|
|
|
case $args in
|
|
|
|
o) output_file=${OPTARG} ;;
|
|
|
|
o) output_file=${OPTARG} ;;
|
|
|
|
|