标签:tom pass repo int 命令 == print 变量 lis
yum repolist | awk ‘/repolist:/{if($2==0){print 1}else{print 0}}‘
awk易混淆概念
原文地址:http://blog.51cto.com/13587169/2065600