庆典多针距 [英] bash multi gauge
本文介绍了庆典多针距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此例如
#!/ bin / sh的
衡量#A与对话框的例子
(
C = 10
而[$ C -ne 110]
做
回声$ C
回声###
回声$ C%
回声###
((C + = 10))
睡眠1
DONE
)|
对话框--title的检验压力表对话框--gauge请稍候......10 60 0
我可以做一个标尺。
我怎样才能使一个对话框,两个O更多计?
类似于
[## 20%]
[#### 40%]
解决方案
尝试! - mixedgauge
#! / bin / sh的
#$编号:mixedgauge,1.4版2007年2月26日23点10分30秒汤姆精通$
:$ {DIALOG =对话框}
背景=--mixedgauge用法的示例因为我在5 10 20 30 40 50 60 70 80 90 100
做
$ DIALOG --backtitle$背景\\
--title混合规示范\\
--mixedgauge这是一个提示消息,\\ NAND这是第二行。 \\
0 0 33 \\
过程一0\\
过程中的两个1\\
过程中的三个,2\\
过程共有四个,3\\
8\\
流程五5\\
流程六大6\\
过程七7\\
过程八4\\
过程九 - $ I
#突破
睡眠1
DONE
https://github.com/Archivists/ltfs-找到控制台/ BLOB /主/样本/ mixedgauge
with this example
#!/bin/sh
#A gauge Box example with dialog
(
c=10
while [ $c -ne 110 ]
do
echo $c
echo "###"
echo "$c %"
echo "###"
((c+=10))
sleep 1
done
) |
dialog --title "A Test Gauge With dialog" --gauge "Please wait ...." 10 60 0
I can make a gauge.
how I can make a dialog with two o more gauges ?
similar to
[## 20% ]
[#### 40% ]
解决方案
Try --mixedgauge
!
#! /bin/sh
# $Id: mixedgauge,v 1.4 2007/02/26 23:10:30 tom Exp $
: ${DIALOG=dialog}
background="An Example of --mixedgauge usage"
for i in 5 10 20 30 40 50 60 70 80 90 100
do
$DIALOG --backtitle "$background" \
--title "Mixed gauge demonstration" \
--mixedgauge "This is a prompt message,\nand this is the second line." \
0 0 33 \
"Process one" "0" \
"Process two" "1" \
"Process three" "2" \
"Process four" "3" \
"" "8" \
"Process five" "5" \
"Process six" "6" \
"Process seven" "7" \
"Process eight" "4" \
"Process nine" "-$i"
# break
sleep 1
done
Found via https://github.com/Archivists/ltfs-console/blob/master/samples/mixedgauge
这篇关于庆典多针距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文