统计python脚本中 shell命令输出文本的行数
username=xxxx
Count_num=len(os.popen('cat CaseBuildFailed.list | cut -d " " -f1-3 | grep -w ' + username).readlines())
print Case_num
好别扭的统计啊 - -#
username=xxxx
Count_num=len(os.popen('cat CaseBuildFailed.list | cut -d " " -f1-3 | grep -w ' + username).readlines())
print Case_num
好别扭的统计啊 - -#