Lines Matching defs:grep
35 def grep(pattern, file):
37 This is mainly to fix the return code inversion from grep
42 command = 'grep "%s" > /dev/null' % pattern
446 meminfo = utils.system_output('grep %s /proc/meminfo' % key)
659 grep = 'zgrep'
661 grep = 'grep'
662 grep += ' ^CONFIG_%s= %s' % (feature, config)
664 if not utils.system_output(grep, ignore_status=True):
787 cmd2 = 'grep -E "ID_(NAME|MODEL)="'
843 cmd2 = 'grep -E "ID_REVISION="'
865 cmd2 = 'grep -E "ID_ATA_ROTATION_RATE_RPM="'
898 cmd = 'hdparm -I %s | grep -q "%s"' % (disk_name, feature)
977 output = utils.system_output('grep Hugepagesize /proc/meminfo')
1089 "grep -q '^installed$'")
1384 command = 'echo | ${CC} -E -dD -P - | grep -i pie'
1405 command = 'echo | ${CC} -E -dD -P - | grep -i 86'
1985 command = "grep model.name /proc/cpuinfo | cut -f 2 -d: | head -1"
2191 pci_vga_device = utils.run("lspci | grep VGA").stdout.rstrip('\n')