Home
last modified time | relevance | path

Searched refs:TEMP0 (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/test/util-tests/tests/awk/tests/
H A DT.misc10 TEMP0=$WORKDIR/test.temp.0
29 The big brown over the lazy dog' > $TEMP0
39 } ' $TEMP0 > $TEMP2
44 12345678901' > $TEMP0
46 $AWK 'length($0) > 10' $TEMP0 > $TEMP2
51 echo $TEMP0 | $AWK '{ print "H\x49\x4a\x4BL" }' > $TEMP2
68 x y z' > $TEMP0
72 $AWK '{ NF -= 2; $1 = $1; print }' < $TEMP0 > $TEMP2
119 }' > $TEMP0
127 grep "can't use function foo" $TEMP0 >/dev/null || fail "BAD: T.misc fcn args"
[all …]
H A DT.gawk8 TEMP0=$WORKDIR/test.temp.0
38 1 2 3 4' > $TEMP0
45 $AWK '{ print $3; $4 = "a"; print }' $TEMP0 > $TEMP2
50 x\\y' > $TEMP0
58 }' $TEMP0 > $TEMP2
65 x\\\y' > $TEMP0
80 ' $TEMP0 > $TEMP2
86 xaax' > $TEMP0
107 ' $TEMP0 > $TEMP2
113 xaax' > $TEMP0
[all …]
H A DT.split8 TEMP0=$WORKDIR/test.temp.0
52 e:f:g:h' > $TEMP0
55 while (getline <"'$TEMP0'" > 0)
67 echo 'f b a' > $TEMP0
72 }' $TEMP0 > $TEMP1
79 bar' > $TEMP0
85 }' $TEMP0 > $TEMP1
92 m.n.o=p.q.r' > $TEMP0
96 $AWK 'BEGIN { FS="=" } { FS="."; $0=$1; print $2; FS="="; }' $TEMP0 > $TEMP2
101 m.n.o=p.q.r' > $TEMP0
[all …]
H A DT.nextfile8 TEMP0=$WORKDIR/test.temp.0
21 rm -f $TEMP0
24 sed 1q $i >> $TEMP0
31 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1'
42 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1f'
54 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1w'
67 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1d'
71 rm -f $TEMP0
74 sed 100q $i >> $TEMP0
82 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 2'
[all …]
H A DT.rt8 TEMP0=$WORKDIR/test.temp.0
25 printf 'a\n' > $TEMP0
26 $AWK '{ print (RT == "\n" ? "true" : "false"); }' $TEMP0 > $TEMP1
30 printf 'a' > $TEMP0
31 $AWK '{ print (RT == "" ? "true" : "false"); }' $TEMP0 > $TEMP1
64 printf '\n\n\n\n\na\n\na b\na b c d\nq r s t u\n\n\n\n\nv w x y z\n' > $TEMP0
65 $AWK 'BEGIN { RS = ""; } { print NF, length(RT); }' $TEMP0 > $TEMP1
70 printf '\n\n\n\n\na\n\na b\na b c d\nq r s t u\n\n\n\n\nv w x y z\n\n' > $TEMP0
71 $AWK 'BEGIN { RS = ""; } { print NF, length(RT); }' $TEMP0 > $TEMP1
76 printf 'a\n\na b\na b c d\nq r s t u\n\n\n\n\nv w x y z\n\n\n\n' > $TEMP0
[all …]
H A DT.clv8 TEMP0=$WORKDIR/test.temp.0
52 goodbye' > $TEMP0
55 ' x=1 x=2 x=3 $TEMP0 > $TEMP1
73 zzz' > $TEMP0
77 END { print x }' x=6 $TEMP0 x=end > $TEMP2
95 $AWK '{ print }' 99_=$TEMP0 /dev/null > $TEMP0 2> $TEMP2
120 echo 'BEGIN { print x, y, z1 }' > $TEMP0
122 $AWK -v x=123 -v y=abc -f $TEMP0 -v z1=10.99 > $TEMP2
125 echo 'BEGIN { print x, y, z1 }' > $TEMP0
127 $AWK -vx=123 -vy=abc -f $TEMP0 -vz1=10.99 > $TEMP2
[all …]
H A DT.close8 TEMP0=$WORKDIR/test.temp.0
21 rm -f $TEMP0
22 $AWK '{ print >>"'$TEMP0'"; close("'$TEMP0'") }' /etc/passwd
23 diff /etc/passwd $TEMP0 || fail 'BAD: T.close (1)'
25 ls -l > $TEMP0
26 tail -1 $TEMP0 > $TEMP1
27 $AWK '{ print >"'$TEMP2'"; close("'$TEMP2'") }' $TEMP0
44 BEGIN { print "hello" > "'$TEMP0'"; print close("'$TEMP0'"); }
50 BEGIN { print "hello" | "cat > '$TEMP0'"; print close("cat > '$TEMP0'"); }
H A DT.main8 TEMP0=$WORKDIR/test.temp.0
30 echo 'a::b::c' > $TEMP0
31 $AWK -F:: '{print NF}' $TEMP0 > $TEMP1
35 echo 'a::b::c' > $TEMP0
36 $AWK -F :: '{print NF}' $TEMP0 > $TEMP1
40 echo 'a b c' > $TEMP0
41 $AWK -F t '{print NF}' $TEMP0 > $TEMP1
45 echo 'a b c' > $TEMP0
46 $AWK -Ft '{print NF}' $TEMP0 > $TEMP1
50 echo 'atabbtabc' > $TEMP0
[all …]
H A DT.argv8 TEMP0=$WORKDIR/test.temp.0
70 3' > $TEMP0
74 $AWK '{print L $0}' L=foo <$TEMP0 > $TEMP2
79 3' > $TEMP0
83 $AWK '{print L $0}' L=foo $TEMP0 > $TEMP2
88 3' > $TEMP0
92 cat $TEMP0 | $AWK '{print L $0}' L=foo - > $TEMP2
97 3' > $TEMP0
104 $AWK '{print L $0}' L=foo $TEMP0 L=glop $TEMP0 > $TEMP2
109 3' > $TEMP0
[all …]
H A DT.latin18 TEMP0=$WORKDIR/test.temp.0
27 LC_ALL=C grep '[�-�]' latin1 > $TEMP0
29 diff $TEMP0 $TEMP1 || fail 'BAD: T.latin1 2'
31 $AWK '{ gsub(/\351/, "\370"); print }' latin1 > $TEMP0
33 diff $TEMP0 $TEMP1 || fail 'BAD: T.latin1 3'
35 $AWK '{ gsub(/[^\300-\370]/, ""); print }' latin1 > $TEMP0
37 diff $TEMP0 $TEMP1 || fail 'BAD: T.latin1 4'
51 This is another line.' > $TEMP0
54 $AWK '/[��]/' $TEMP0 > $TEMP2
H A DT.overflow8 TEMP0=$WORKDIR/test.temp.0
56 } ' > $TEMP0
57 $AWK '{print NF}' $TEMP0 > $TEMP1
68 }' > $TEMP0 2> $TEMP0
97 $AWK '{print $40000000000000}' < $TEMP1 > $TEMP2 2> $TEMP0
98 grep "out of range field" $TEMP0 >/dev/null || fail "BAD: T.overflow \$400000"
H A DT.errmsg12 TEMP0=$WORKDIR/test.temp.0
230 echo xxx > $TEMP0
232 b' $TEMP0 > $TEMP1 2> $TEMP2
235 $AWK -safe 'BEGIN{"date" | getline}' > $TEMP0 2> $TEMP2
238 $AWK -safe 'BEGIN{print >"'$TEMP0'"}' > $TEMP0 2> $TEMP2
241 $AWK -safe 'BEGIN{print >> "'$TEMP0'"}' > $TEMP0 2> $TEMP2
244 $AWK -safe 'BEGIN{print | "'$TEMP0'"}' > $TEMP0 2> $TEMP2
247 $AWK -safe 'BEGIN {system("date")}' > $TEMP0 2> $TEMP2
H A DT.delete8 TEMP0=$WORKDIR/test.temp.0
24 ' > $TEMP0
36 }' $TEMP0 > $TEMP1
H A DT.builtin8 TEMP0=$WORKDIR/test.temp.0
75 a b c' > $TEMP0
79 $AWK '{ n = split($0, x); print length(x) }' < $TEMP0 > $TEMP2
H A DT.lilly8 TEMP0=$WORKDIR/test.temp.0
22 cat > $TEMP0 <<EOF
46 system(ENVIRON["AWK"] " -f '$TEMP2' <\"'$TEMP0'\" ")
H A DT.-f-f17 TEMP0=$WORKDIR/test.temp.0
26 end' > $TEMP0
30 diff $TEMP0 $TEMP3 || fail 'BAD: T.-f-f multiple -fs'