首页 > 系统服务 > 详细

shell脚本学习总结10--系统函数调用

时间:2016-08-21 06:17:03      阅读:268      评论:0      收藏:0      [点我收藏+]

1.打印出彩色的格式

[root@new sbin]# cat demo.sh 
#/bin/bash
. /etc/init.d/functions
read -p "Pleas input your anwser[yes/no]: " an
if [[ $an = yes ]]
then 
   action "The answer is true" /bin/true
else 
   action "Then answer is false" /bin/false
fi

输出:

技术分享

shell脚本学习总结10--系统函数调用

原文:http://www.cnblogs.com/zydev/p/5791694.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!