摘要: #!/bin/bash function display_method(){ clearDisplayMetho=0 if [ $displayMethod -eq 0 ]; then echo -e "\033[${color};${backgroup_color}m ${message} \033[${clearDisplayMetho}m" else echo -e ... 阅读全文
posted @ 2018-12-17 17:27 _Goku 阅读(291) 评论(1) 推荐(0) 编辑
摘要: [root@localhost ~]# cat s2.sh #!/bin/bash color_name="red" red=31 color=`eval echo '$'"${color_name}"` echo ${color} [root@localhost ~]# sh s2.sh 31 [root@localhost ~]# 阅读全文
posted @ 2018-12-17 17:19 _Goku 阅读(4313) 评论(0) 推荐(2) 编辑
摘要: [root@localhost ~]# yum -y install pwgen [root@localhost ~]# pwgen -ncCyB1 8 1 kei%b3Xa [root@localhost ~]# pwgen -ncCyB1 8 2 Ahs3eib' Yo>u7eun [root@localhost ~]# [root@localhost ~]# echo $RANDO... 阅读全文
posted @ 2018-12-17 13:59 _Goku 阅读(538) 评论(0) 推荐(0) 编辑