Home
last modified time | relevance | path

Searched full:grep (Results 1 – 25 of 1135) sorted by relevance

12345678910>>...46

/third_party/toybox/tests/
Dgrep.test10 testing "-c" "grep -c 123 input" "3\n" "123\ncount 123\n123\nfasdfasdf" ""
15 testing "-l" "grep -l test foo foo2 foo3" "foo\nfoo2\n" "" ""
18 testing "-q" "grep -q test input && echo yes" "yes\n" "this is a test\n" ""
19 testing "-E" "grep -E '[0-9]' input" "1234123asdfas123123\n1\n" \
21 testing "-e" "grep -e '[0-9]' input" "1234123asdfas123123\n1\n" \
23 testing "-e -e" "grep -e one -e two -e three input" \
25 testing "-F" "grep -F is input" "this is test\nthis is test2\n" \
31 testing "-H" "grep -H is foo foo2 foo3" "foo:this is test\nfoo:this is test2\nfoo2:hello this is te…
34 testing "-b" "grep -b is input" "0:this is test\n13:this is test2\n" \
36 testing "-i" "grep -i is input" "thisIs test\nthis is test2\n" \
[all …]
Difconfig.test6 # Commands used: grep, grep -i, ip link, ip tuntap, wc -l
45 "ifconfig dummy0 down && ifconfig | grep dummy | wc -l" \
51 "ifconfig dummy0 up && ifconfig dummy0 | grep dummy | wc -l" \
58 "ifconfig dummy0 10.240.240.240 && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \
65 "ifconfig dummy0 netmask 255.255.240.0 && ifconfig dummy0 | grep 255\.255\.240\.0 | wc -l" \
72 "ifconfig dummy0 broadcast 10.240.240.255 && ifconfig dummy0 | grep 10\.240\.240\.255 | wc -l" \
79 "ifconfig dummy0 default && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \
86 "ifconfig dummy0 mtu 1269 && ifconfig dummy0 | grep 1269 | wc -l" \
93 "ifconfig dummy0 add ::2 2>&1 | grep No\ buffer\ space\ available | wc -l" \
100 "ifconfig dummy0 mtu 2000 && ifconfig dummy0 | grep 2000 | wc -l" \
[all …]
Dgroupadd.test20 # Redirecting all output to /dev/null for grep and delgroup
26 grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
29 grep '^toy1Test2Group3:' /etc/group $arg && groupdel toy1Test2Group3 $arg &&
32 grep '^987654321:' /etc/group $arg && groupdel 987654321 $arg &&
35 grep '^toy.1Test-2Group.3:' /etc/group $arg &&
40 grep '^$_s210:' /etc/group $arg && groupdel $_s210 $arg && echo 'yes'" \
43 grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
46 "groupadd -g 49999 -S toyTestGroup && grep '^toyTestGroup:' /etc/group $arg &&
49 grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
52 grep '^toyTestGroup:' /etc/group $arg && groupadd $USER toyTestGroup &&
[all …]
Duseradd.test15 # Redirecting all output to /dev/null for grep, adduser and deluser
25 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
31 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
37 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
43 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
50 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
56 grep '^$user:.*dir' /etc/passwd $arg && [ -d $PWD/dir ] &&
63 grep '^$user:.*$gecos' /etc/passwd $arg && [ -d /home/$user ] &&
69 grep '^$user:.*$shl$' /etc/passwd $arg && [ -d /home/$user ] &&
74 g_id=`grep $g_name':.*:.*' /etc/group | cut -d : -f 3`
[all …]
Dmktemp.test7 testing "default template uses \$TMPDIR" "TMPDIR=. mktemp | grep -q '^./tmp\...........$' && echo y…
12 testing "TEMPLATE does not use \$TMPDIR" "TMPDIR=/t mktemp -u hello.XXXXXXXX | grep -q '^hello\....…
13 testing "/ in TEMPLATE works but ignores \$TMPDIR" "TMPDIR=/t mktemp -u /x/hello.XXXXXXXX | grep -q…
15 testing "-t TEMPLATE uses \$TMPDIR" "TMPDIR=/t mktemp -u -t hello.XXXXXXXX | grep -q '^/t/hello\...…
16 testing "-t and TEMPLATE but no \$TMPDIR uses /tmp" "TMPDIR= mktemp -u -t hello.XXXXXXXX | grep -q …
17 testing "-p DIR and TEMPLATE should use DIR" "TMPDIR=/t mktemp -u -p DIR hello.XXXXXXXX | grep -q '…
18 testing "-p DIR and -t: -t wins" "TMPDIR=/t mktemp -u -p DIR -t hello.XXXXXXXX | grep -q '^/t/hello…
19 …but no \$TMPDIR (DIR wins)" "TMPDIR= mktemp -u -p DIR -t hello.XXXXXXXX | grep -q '^DIR/hello\....…
21 "mktemp -u -p /proc | grep -q '^/proc/tmp\...........\$' && echo yes" "yes\n" \
28 "TMPDIR= mktemp -u helloXXX --tmpdir | grep -q '^/tmp/hello...\$' && echo yes" \
[all …]
/third_party/libxml2/doc/examples/
DMakefile.am107 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
109 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
111 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
113 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
115 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
117 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
119 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
121 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
123 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
125 @grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0
[all …]
/third_party/libxml2/
DMakefile.am248 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
267 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
286 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
300 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
315 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
318 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
320 …$(CHECKER) $(top_builddir)/xmllint result.$$name 2>&1 > result2.$$name | grep -v 'failed to load e…
321 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
333 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
336 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
[all …]
/third_party/gstreamer/gstplugins_bad/tools/
Dgst-element-maker81 pkg=`grep -A 10000 '^% pkg-config' $templatedir/$class | tail -n +2|grep -m 1 -B 10000 '^%'|head -n…
82 GST_TYPE_BASE_REPLACE=`grep -A 10000 '^% TYPE_CLASS_NAME' $templatedir/$class | tail -n +2|grep -m …
83 GstBaseReplace=`grep -A 10000 '^% ClassName' $templatedir/$class | tail -n +2|grep -m 1 -B 10000 '^…
84 pads=`grep -A 10000 '^% pads' $templatedir/$class | tail -n +2|grep -m 1 -B 10000 '^%'|head -n -1`
136 grep -A 10000 '^% includes' $templatedir/gobject | tail -n +2|grep -m 1 -B 10000 '^%'|head -n -1
137 grep -A 10000 '^% includes' $templatedir/$class | tail -n +2|grep -m 1 -B 10000 '^%'|head -n -1
149 grep -A 10000 '^% prototypes' $templatedir/gobject | tail -n +2|grep -m 1 -B 10000 '^%'|head -n -1
150 grep -A 10000 '^% prototypes' $templatedir/$class | tail -n +2|grep -m 1 -B 10000 '^%'|head -n -1
153 grep -A 10000 '^% prototypes' $templatedir/$each | tail -n +2|grep -m 1 -B 10000 '^%'|head -n -1
169 grep -A 10000 '^% pad-template' $templatedir/$each | tail -n +2|grep -m 1 -B 10000 '^%'|head -n -1
[all …]
/third_party/node/test/parallel/
Dtest-child-process-double-pipe.js34 // $ echo "hello\nnode\nand\nworld" | grep o | sed s/o/a/
36 let grep, sed, echo; variable
39 grep = spawn('grep', ['--binary', 'o']);
45 grep = spawn('grep', ['o']);
50 // If the spawn function leaks file descriptors to subprocesses, grep and sed
59 // pipe echo | grep
61 debug(`grep stdin write ${data.length}`);
62 if (!grep.stdin.write(data)) {
69 grep.stdin.on('drain', (data) => {
73 // Propagate end from echo to grep
[all …]
Dtest-child-process-pipe-dataflow.js9 let cat, grep, wc; variable
16 // check cat <file> | grep 'x' | wc -c === 1MB
34 grep = spawn('grep', ['x'], { stdio: [cat.stdout, 'pipe', 'pipe'] });
35 wc = spawn('wc', ['-c'], { stdio: [grep.stdout, 'pipe', 'pipe'] });
39 grep.stdout._handle.readStart = common.mustNotCall();
49 [cat, grep, wc].forEach((child, index) => {
70 // Grep always adds one extra byte at the end.
/third_party/musl/ndk-test/script/
Druntest-sanitize.sh29 grep -nr 'SUMMARY: ' tmp | grep "leaked in"
31 grep -nr 'SUMMARY: ' tmp | grep $case
59 grep -nr 'Scudo ERROR: ' tmp >/dev/null
65 grep -nr 'Scudo ERROR: ' tmp >/dev/null
72 grep -nr "ERROR: invalid chunk state" tmp >/dev/null
75 grep -nr "ERROR: invalid chunk state" tmp >/dev/null
78 grep -nr "ERROR: invalid chunk state" tmp >/dev/null
95 grep -nr 'Scudo ERROR: ' tmp >/dev/null
110 grep -nr 'Scudo ERROR: ' tmp >/dev/null
115 grep -nr 'Scudo ERROR: ' tmp >/dev/null
[all …]
/third_party/musl/ndk-test/sanitize/
Druntest.sh30 grep -nr 'SUMMARY: ' tmp | grep "leaked in"
32 grep -nr 'SUMMARY: ' tmp | grep $case
60 grep -nr 'Scudo ERROR: ' tmp >/dev/null
66 grep -nr 'Scudo ERROR: ' tmp >/dev/null
73 grep -nr "ERROR: invalid chunk state" tmp >/dev/null
76 grep -nr "ERROR: invalid chunk state" tmp >/dev/null
79 grep -nr "ERROR: invalid chunk state" tmp >/dev/null
96 grep -nr 'Scudo ERROR: ' tmp >/dev/null
111 grep -nr 'Scudo ERROR: ' tmp >/dev/null
116 grep -nr 'Scudo ERROR: ' tmp >/dev/null
[all …]
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dcheck-includes.sh17 grep '#.*\<include\>' "$x" /dev/null | head -n 1
19 grep -v '"hb-common[.]h"' |
20 grep -v '"hb[.]h"' |
21 grep -v 'hb-common[.]h:' |
22 grep -v 'hb[.]h:' |
23 grep . >&2 && stat=1
30 grep '#.*\<include\>' "$x" /dev/null | head -n 1
32 grep -v '"hb-.*[.]hh"' |
33 grep -v 'hb[.]hh' |
34 grep . >&2 && stat=1
[all …]
/third_party/libwebsockets/scripts/
Dautobahn-test-server.sh64 R=`cat /tmp/ji | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavi…
71 …cat /tmp/ji | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavior…
78 R=`cat /tmp/jis | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behav…
86 …cat /tmp/jis | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavio…
Dmozilla-trust-gen.sh69 ISS=`cat _trust/c1 | grep Issuer: | sed "s/.*://g" | sed "s/^\ *//g"`
70 SER=`cat _trust/c1 | grep "Serial Number:" | sed "s/.*://g" | sed "s/^\ *//g" | sed "s/\ .*//g"`
75 grep ':' | grep -v ': ' | grep -v ':$' | grep -v U | grep -v k | grep -v T | grep -v "i" | \
76 grep -v "S" | grep -v "V" | sed "s/^\ *//g"`
79 na=`cat _trust/c1 | grep "Not\ After\ :" | sed "s/.*\ :\ //g"`
95 cat _trust/single | grep -v -- '---' | base64 -d > _trust/webroot/der/$safe
103 DERSIZ=`cat _trust/single | grep -v -- '---' | base64 -d | wc -c | cut -d' ' -f1`
105 cat _trust/single | grep -v -- '---' | base64 -d | hexdump -C | tr -s ' ' | sed 's/\ $//g' | \
106 …cut -d' ' -f 2-17 | cut -d'|' -f1 | grep -v 000 | sed "s/\ //g" | sed ':a;N;$!ba;s/\n//g' | xxd -r…
181 cut -d' ' -f 2-17 | cut -d'|' -f1 | grep -v 000 | sed "s/\ /,\ 0x/g" | sed "s/^/0x/g" | \
/third_party/ltp/testcases/kernel/syscalls/syslog/
Dsyslog0776 emerg_old=`grep -c "syslogtst: emergency log" /var/log/messages`
77 alert_old=`grep -c "syslogtst: alert log" /var/log/messages`
78 crit_old=`grep -c "syslogtst: critical log" /var/log/messages`
79 err_old=`grep -c "syslogtst: error log" /var/log/messages`
80 warning_old=`grep -c "syslogtst: warning log" /var/log/messages`
81 notice_old=`grep -c "syslogtst: notice log" /var/log/messages`
82 info_old=`grep -c "syslogtst: info log" /var/log/messages`
83 debug_old=`grep -c "syslogtst: debug log" /var/log/messages`
102 emerg_new=`grep -c "syslogtst: emergency log" /var/log/messages`
103 alert_new=`grep -c "syslogtst: alert log" /var/log/messages`
[all …]
/third_party/ltp/testcases/network/rpc/basic_tests/rpcinfo/
Drpcinfo01.sh17 rpcinfo -p $(tst_ipaddr) | grep tcp | sed -n 2p > rpc_out
18 rpcinfo -p $(tst_ipaddr) | grep udp | sed -n 2p >> rpc_out
20 wc -l rpc_out | grep -q "2" || \
24 TPNUM=$(grep tcp rpc_out | awk '{print $1}')
25 TVNUM=$(grep tcp rpc_out | awk '{print $2}')
26 TCPNAME=$(grep tcp rpc_out | awk '{print $5}')
27 UPNUM=$(grep udp rpc_out | awk '{print $1}')
28 UVNUM=$(grep udp rpc_out | awk '{print $2}')
29 UDPNAME=$(grep udp rpc_out | awk '{print $5}')
36 EXPECT_RHOST_PASS rpcinfo -p $thost | grep -q portmapper
/third_party/ltp/testcases/kernel/security/tomoyo/
Dtestall.sh36 newns tomoyo_accept_test | grep -vF Done
37 newns tomoyo_filesystem_test | grep -vF OK | grep -F '('
38 newns tomoyo_file_test | grep -vF OK | grep -F '('
39 newns tomoyo_rewrite_test | grep -vF OK | grep -F '('
40 newns tomoyo_new_test | grep -vF OK
45 newns tomoyo_policy_io_test | grep -vF OK
46 newns tomoyo_new_file_test | grep -vF OK
/third_party/ffmpeg/tools/
Dmurge3 grep -A99999 '^<<<<<<<' | grep -B99999 '^>>>>>>>' >murge.X
4 grep -A99999 '^====' murge.X | egrep -v '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)' >murge.theirs
5 grep -B99999 '^||||' murge.X | egrep -v '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)' >murge.ours
6 grep -B99999 '^====' murge.X | grep -A99999 '^||||' | egrep -v '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\…
9 grep . murge.common > /dev/null && colordiff -du $* murge.common murge.theirs
10 grep . murge.common > /dev/null && colordiff -du $* murge.common murge.ours
/third_party/gstreamer/gstreamer/scripts/
Dupdate-states12 if grep -q GstElementState $file; then
17 if grep -q GstStateReturn $file; then
22 if egrep 'GST_STATE_(ASYNC|SUCCESS|FAILURE|NO_PREROLL)' $file | grep -q -v 'NO_PREROLL ('; then
32 if grep 'change_state (' $file | grep -q 'element)'; then
39 grep -v 'transition = ' < $file > $file.tmp
43 if grep -q GST_STATE_TRANSITION $file; then
48 if grep 'transition' $file | grep -q int; then
59 if grep -q GstStateReturn $file; then
/third_party/elfutils/tests/
Drun-debuginfod-federation-metrics.sh62 -a prog | grep 'Build ID' | cut -d ' ' -f 7`
119 # we'll grep for the two patterns in vlog$PORT1
122 grep UA:TESTCURL vlog$PORT1
123 grep XFF:TESTXFF vlog$PORT1
127 -a L/foo | grep 'Build ID' | cut -d ' ' -f 7`
156 curl -s http://127.0.0.1:$PORT1/metrics | grep -q 'http_responses_total.*result.*error'
157 curl -s http://127.0.0.1:$PORT2/metrics | grep -q 'http_responses_total.*result.*upstream'
158 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_duration_milliseconds_count'
159 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_duration_milliseconds_sum'
160 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_count'
[all …]
Drun-debuginfod-find.sh25 bsdtar --version | grep -q zstd && zstd=true || zstd=false
105 | grep "$what" | awk '{print $NF}')"
138 ps -q $PID1 -e -L -o '%p %c %a' | grep groom
139 ps -q $PID1 -e -L -o '%p %c %a' | grep scan
140 ps -q $PID1 -e -L -o '%p %c %a' | grep traverse
157 -a prog | grep 'Build ID' | cut -d ' ' -f 7`
191 bytecount_before=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_cou…
193 bytecount_after=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_coun…
202 bytecount_before=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_cou…
204 bytecount_after=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_coun…
[all …]
/third_party/unity/test/
DMakefile46 ./$(TARGET) | grep 'Tests\|]]]' -A1
49 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
53 ./$(TARGET) | grep 'Tests\|]]]' -A1
56 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
60 ./$(TARGET) | grep 'Tests\|]]]' -A1
63 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
67 ./$(TARGET) | grep 'Tests\|]]]' -A1
70 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
74 ./$(TARGET) | grep 'Tests\|]]]' -A1
77 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true
[all …]
/third_party/ltp/testcases/kernel/security/smack/
Dsmack_set_cipso.sh28 old_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
31 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
35 right=$(echo "$new_rule" | grep ' 2')
41 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
45 right=$(echo $new_rule | grep '/55')
51 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
55 right=$(echo "$new_rule" | grep '/17,33')
/third_party/ffmpeg/tests/fate/
Dsource-check.sh8 git grep -L -E "This file is part of FFmpeg|This file is part of libswresample|"\
17 "This file is placed in the public domain" | grep -E '\.c$|\.h$|\.S$|\.asm$'
20 for f in `git ls-files | grep '\.h$'` ; do
30 git grep -L "^#define $macro$" $f
34 git grep -E 'av_clip *\(.*, *0 *, *(3|7|15|31|63|127|255|511|1023|2047|4095|8191|'\
36 '33554431|67108863|134217727|268435455|536870911|1073741823) *\)' | grep -v fate/source
39 git grep -E 'av_clip *\(.*, *(-2 *, *1|-4 *, *3|-8 *, *7|-16 *, *15|-32 *, *31|-64'\
45 '268435455|-536870912 *, *536870911|-1073741824 *, *1073741823) *\)'| grep -v fate/source

12345678910>>...46