svn path=/trunk/; revision=182
[ "$line" = "BREAK" ] && exit 0
printf '%s\n' "$line"
done \
- | sed -urn '1~12s;^.* V: *+([0-9]+)(\.[0-9]+) A-V:.*$;\1;p' \
- | while read m; do
- [ "$m" != "$previous" ] && printf "%d %d\n" "$(($m * 100 / ${length:--1}))" "$m"
- previous="$m"
- done
+ | sed -urn '1~12s;^.* V: *+([0-9]+)(\.[0-9]+) A-V:.*$;\1;p'
exit 0
elif [ "${_GET[api]}" = volume ]; then
printf 'Content-Type: text/plain\r\n\r\n'
[ "$line" = "BREAK" ] && exit 0
printf '%s\n' "$line"
done \
- | sed -urn '1~12s;^.* V: *+([0-9]+)(\.[0-9]+) A-V:.*$;\1;p' \
- | while read m; do
- [ "$m" != "$previous" ] && printf "%d %d\n" "$(($m * 100 / ${length:--1}))" "$m"
- previous="$m"
- done
- fi
+ | sed -urn '1~12s;^.* V: *+([0-9]+)(\.[0-9]+) A-V:.*$;\1;p'
+ fi \
+ | while read m; do
+ [ "$m" != "$previous" ] && printf "%d %d\n" "$(($m * 100 / ${length:--1}))" "$m"
+ previous="$m"
+ done
}