START usr.bin/grep 2024-11-13T23:36:00Z ==== t1 ==== grep t.s /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t1.out ==== t2 ==== grep -w separated /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t1.out ==== t3 ==== grep ^Beginning /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t3.out ==== t4 ==== grep -i end$ /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t4.out ==== t5 ==== egrep '\?|\*$' /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t5.out ==== t6 ==== grep -v [l] /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t6.out ==== t7 ==== grep -x line /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t7.out ==== t8 ==== fgrep line. /usr/src/regress/usr.bin/grep/in | diff - /dev/null ==== t9 ==== grep non.existent /usr/src/regress/usr.bin/grep/in | diff - /dev/null ==== t10 ==== grep -s foo nonexistentfile | diff - /dev/null ==== t11 ==== grep -C1 examples /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t11.out ==== t12 ==== egrep -f /usr/src/regress/usr.bin/grep/t1.out /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t1.out ==== t13 ==== grep 'abcd. abcd.' /usr/src/regress/usr.bin/grep/t13.in | diff - /usr/src/regress/usr.bin/grep/t13.out ==== t14 ==== test X`grep -w -l u_int /usr/src/regress/usr.bin/grep/t14.in` = X/usr/src/regress/usr.bin/grep/t14.in ==== t15 ==== grep -w tu /usr/src/regress/usr.bin/grep/t15.in | diff - /usr/src/regress/usr.bin/grep/t15.out ==== t16 ==== grep -w to /usr/src/regress/usr.bin/grep/t15.in | diff - /usr/src/regress/usr.bin/grep/t15.out ==== t17 ==== grep -w '^foo' /usr/src/regress/usr.bin/grep/t17.in | diff - /usr/src/regress/usr.bin/grep/t17.out ==== t18 ==== grep -w '^foo$' /usr/src/regress/usr.bin/grep/t17.in | diff - /usr/src/regress/usr.bin/grep/t17.out ==== t19 ==== grep -w 'a.' /usr/src/regress/usr.bin/grep/t19.in | diff - /usr/src/regress/usr.bin/grep/t19.out fgrep -w -e 'aa' -e 'a_' /usr/src/regress/usr.bin/grep/t19.in | diff - /usr/src/regress/usr.bin/grep/t19.out ==== t20 ==== echo '=' | grep -w '=' | diff - /dev/null echo '=' | fgrep -w '=' | diff - /dev/null echo 'a=' | grep -w 'a=' | diff - /dev/null echo 'a=' | fgrep -w 'a=' | diff - /dev/null echo '=b' | grep -w '=b' | diff - /dev/null echo '=b' | fgrep -w '=b' | diff - /dev/null echo 'a=b' | grep -qw 'a=b' echo 'a=b' | fgrep -qw 'a=b' echo '+' | grep -w '+' | diff - /dev/null echo '+' | fgrep -w '+' | diff - /dev/null echo 'a+' | grep -w 'a+' | diff - /dev/null echo 'a+' | fgrep -w 'a+' | diff - /dev/null echo '+b' | grep -w '+b' | diff - /dev/null echo '+b' | fgrep -w '+b' | diff - /dev/null echo 'a+b' | grep -qw 'a+b' echo 'a+b' | fgrep -qw 'a+b' ==== t21 ==== grep -l D.e /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t21.out egrep -l D.e /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t21.out grep -l '.*D.e' /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t21.out egrep -l '.*D.e' /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/t21.out ==== t22 ==== grep -l 'a.*b' /usr/src/regress/usr.bin/grep/t22.in /usr/src/regress/usr.bin/grep/t22.in ==== t23 ==== egrep -w 'word1|word2|word3' /usr/src/regress/usr.bin/grep/t23.in word1 word1-hyphen word2| |word2| -word3- ==== t24 ==== grep -e '' < /usr/src/regress/usr.bin/grep/in | diff - /usr/src/regress/usr.bin/grep/in grep -x -e '' < /usr/src/regress/usr.bin/grep/in | diff - /dev/null grep -f /dev/null < /usr/src/regress/usr.bin/grep/in | diff - /dev/null ==== t25 ==== grep -o [ab] /usr/src/regress/usr.bin/grep/t25.in | diff - /usr/src/regress/usr.bin/grep/t25.out ==== t26 ==== echo 'aaab' | grep -o 'a*' | head -n 10 | diff - /usr/src/regress/usr.bin/grep/t26.out ==== t27 ==== grep -A1 'C' /usr/src/regress/usr.bin/grep/t27.in | diff - /usr/src/regress/usr.bin/grep/t27a.out grep -B1 'C' /usr/src/regress/usr.bin/grep/t27.in | diff - /usr/src/regress/usr.bin/grep/t27b.out grep -C1 'C' /usr/src/regress/usr.bin/grep/t27.in | diff - /usr/src/regress/usr.bin/grep/t27c.out ==== t28 ==== grep -m 0 -o x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /dev/null grep -m 1 -o x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_1.out grep -m 2 -o x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_2.out grep -m 3 -o x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_3.out grep -m 4 -o x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_4.out grep -m 5 -o x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_4.out grep -m 6 -o x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_4.out grep -m 7 -o x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_4.out grep -m 8 -o x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_4.out grep -m 0 x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /dev/null grep -m 1 x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_5.out grep -m 2 x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_6.out grep -m 3 x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_7.out grep -m 4 x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_8.out grep -m 5 x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_8.out grep -m 6 x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_8.out grep -m 7 x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_8.out grep -m 8 x.y /usr/src/regress/usr.bin/grep/t28.in | diff - /usr/src/regress/usr.bin/grep/t28_8.out PASS usr.bin/grep Duration 0m03.99s