摘要: 颜色=\033[代码;前景;背景m 如:\033[1;32;40m表示高亮显示字体为绿色,背景色为黑色 颜色=\[\033[代码;前景;背景m\] echo -e "this is a \033[5;1;42m abc \033[0m" 前景 背景 颜色 30 40 黑色 31 41 紅色 32 4 阅读全文
posted @ 2019-10-25 17:34 wangyanqiang 阅读(1442) 评论(0) 推荐(0) 编辑
摘要: 1,[root@centos7 data]# ifconfig ens33 | grep netmask|tr -s " " |cut -d " " -f3 192.168.3.2342,[root@centos7 data]# df -Th | tr -s " " | cut -d " " -f6 阅读全文
posted @ 2019-10-25 10:17 wangyanqiang 阅读(247) 评论(0) 推荐(0) 编辑
摘要: grep: 正则表达式 字符匹配 .:匹配任意的一个字符 []:匹配括号中的某一个字符 [^]:匹配指定范围外的任意单个字符 [:alnum:]:字母和数字 [:alpha:]:任何英文字母,a-z,A-Z [:lower:]:小写字母 [:upper:]:大写字母 [:blank:]:空白字符(空 阅读全文
posted @ 2019-10-25 09:44 wangyanqiang 阅读(87) 评论(0) 推荐(0) 编辑