4 totals
="$accounts/.totals"
7 dialog
=$
(which dialog
);
10 echo $
(wc -c "$accounts/$1" | cut
-d ' ' -f 1) piv
14 "$dialog" --inputbox "New account name" 0 0 2>"$tmp"
15 [ $?
= 0 ] && touch "$accounts/$(cat "$tmp")";
19 $dialog --menu "$title servis" 0 0 0 new
"Novy stamgast" exit "Konec party" 2>"$tmp"
20 option
="$(cat "$tmp")"
28 echo "=== Totals ($totals) ==="
39 ls -1 --group-directories-first "$accounts" |
while read i
; do
40 echo -n "$i"; echo -ne "\x00";
41 echo -n $
(beer_stat
"$i"); echo -ne "\x00"
42 echo -e "$i\t$(beer_stat "$i")" >> "$totals"
43 done |
xargs -0 $dialog --menu "$title stamgasti" 0 0 0
50 stamgast
="$(cat "$tmp")"
52 echo == Cepuje stamgast
$stamgast, ukonci ctrl
+c
==
53 "$backend" |
tee -a "$accounts/$stamgast"
This page took 0.27597 seconds and 4 git commands to generate.