摘要:
001、 -a 表示而且 [root@PC1 test]# a=5 [root@PC1 test]# b=10 [root@PC1 test]# if [ $a -gt 0 -a $b -gt 0 ]; then echo "yes"; fi ## -a表示逻辑而且,只有两边同时满足时才返回真 ye 阅读全文
摘要:
001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 a bc k bc e bc bc bc 3 44 55 60 bc bc kk uu [root@PC1 test]# rev a.txt | sed 's/cb/Q 阅读全文