一个非常有启发的shell脚本(方法)
时间:2008-09-02 来源:pop_star
#!/bin/bash
color(){
case $1 in
cyan)
echo -en '\033[31m'
;;
green)
echo -en '\033[32m'
;;
esac if [ ! -z "$2" ] ;then
echo -ne $2
echo -e '\033[0m'
fi }
color green "Refresh lib cache \t"
case $1 in
cyan)
echo -en '\033[31m'
;;
green)
echo -en '\033[32m'
;;
esac if [ ! -z "$2" ] ;then
echo -ne $2
echo -e '\033[0m'
fi }
color green "Refresh lib cache \t"
相关阅读 更多 +