info-tty.bash

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

info-tty.bash

#1

帖子 eexpress » 2009-09-12 16:08

代码: 全选

while true;do
info=`date`" 音量:"`amixer get Master|grep -o -m 1 [0-9]*%`" PCM:"`amixer get PCM|grep -o -m 1 [0-9]*%`
rlen=$((`tput cols` - ${#info} - 10))
echo -n -e "\e[s\e[0;${rlen}H\e[31m\e[1m $info \e[0m\e[u"
sleep 1
done
无聊了。
● 鸣学
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: info-tty.bash

#2

帖子 leeaman » 2009-09-12 16:11

啥东东?欺负我不懂脚本啊 :em20
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
回复