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