Home
last modified time | relevance | path

Searched refs:AWK (Results 1 – 25 of 122) sorted by relevance

12345

/illumos-gate/usr/src/test/util-tests/tests/awk/tests/
H A DT.misc136 $AWK '
157 $AWK '
163 $AWK '
173 $AWK '
188 $AWK '
199 $AWK '
230 $AWK '
243 $AWK '
254 $AWK '
271 $AWK '
[all …]
H A DT.gawk25 $AWK '
55 $AWK '{ x = y = $0
145 $AWK '{ x = y = $0
173 $AWK '
186 $AWK 'BEGIN {
214 $AWK 'BEGIN {
280 $AWK '{ gsub(/x/, " ")
300 $AWK '{ sep = "=+"
309 $AWK 'BEGIN {
339 $AWK 'BEGIN {
[all …]
H A DT.clv3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
25 goodbye' | $AWK '
34 goodbye' | $AWK '
43 goodbye' | $AWK '
53 $AWK '
76 $AWK 'BEGIN { x=0; getline; print x}
83 $AWK 'BEGIN { x=0; getline <"/dev/null"; print x}
90 $AWK 'BEGIN { _=0; getline <"/dev/null"; print _}
101 $AWK -v x=123 'BEGIN { print x }' > $TEMP2
105 $AWK -vx=123 'BEGIN { print x }' > $TEMP2
[all …]
H A DT.split21 $AWK 'BEGIN {
38 $AWK 'BEGIN {
53 $AWK 'BEGIN {
68 $AWK '{
80 $AWK '{
119 $AWK '
135 $AWK '
148 $AWK '
164 $AWK '
179 $AWK '
[all …]
H A DT.argv3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
26 $AWK '
38 $AWK '
51 $AWK '
61 $AWK
74 $AWK '{print L $0}' L=foo <$TEMP0 > $TEMP2
83 $AWK '{print L $0}' L=foo $TEMP0 > $TEMP2
92 cat $TEMP0 | $AWK '{print L $0}' L=foo - > $TEMP2
116 $AWK '{print L $0}' L=11 $TEMP0 L=22 $TEMP0 > $TEMP2
131 $AWK 'BEGIN { ARGV[2] = "" }
[all …]
H A DT.overflow3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
21 $AWK 'BEGIN {
26 $AWK '{print}' $TEMP1 > $TEMP2
30 echo hello | $AWK '
38 $AWK '
46 $AWK '{$1 = " 123456789"; print}' $TEMP1 > $TEMP2
49 $AWK '
57 $AWK '{print NF}' $TEMP0 > $TEMP1
64 $AWK 'BEGIN {
72 $AWK '
[all …]
H A DT.rt3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
21 $AWK 'BEGIN { print (RT == "" ? "true" : "false"); }' > $TEMP1
26 $AWK '{ print (RT == "\n" ? "true" : "false"); }' $TEMP0 > $TEMP1
31 $AWK '{ print (RT == "" ? "true" : "false"); }' $TEMP0 > $TEMP1
39 $AWK 'BEGIN { "printf a" | getline; print (RT == "" ? "true" : "false"); }' > $TEMP1
47 $AWK 'BEGIN {
55 $AWK 'BEGIN {
65 $AWK 'BEGIN { RS = ""; } { print NF, length(RT); }' $TEMP0 > $TEMP1
71 $AWK 'BEGIN { RS = ""; } { print NF, length(RT); }' $TEMP0 > $TEMP1
77 $AWK 'BEGIN { RS = ""; } { print NF, length(RT); }' $TEMP0 > $TEMP1
[all …]
H A DT.func3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
24 1e1 9' | $AWK '
43 $AWK '
50 $AWK '
59 $AWK '
77 $AWK '
111 $AWK '
137 $AWK '
162 $AWK '
193 $AWK '
[all …]
H A DT.getline3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
21 cat $TEMP1 | $AWK '
31 cat $TEMP1 | $AWK '
40 $AWK '
49 cat /etc/passwd | $AWK '
58 $AWK '
67 $AWK '
76 $AWK '
85 $AWK '
94 $AWK ' BEGIN { print getline <"/glop/glop/glop" } ' > $TEMP1
[all …]
H A DT.builtin3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
21 $AWK 'BEGIN { print index(123, substr(123, 2)) }' > $TEMP1
25 $AWK 'BEGIN {
33 $AWK 'BEGIN {
44 $AWK '{ printf("%s|%s|%s\n", tolower($0), toupper($0), $0)}' > $TEMP1
48 $AWK 'BEGIN {
54 $AWK 'BEGIN {
60 $AWK 'BEGIN {
66 $AWK 'BEGIN {
79 $AWK '{ n = split($0, x); print length(x) }' < $TEMP0 > $TEMP2
H A DT.latin13 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
21 $AWK '
28 $AWK '/[�-�]/' latin1 > $TEMP1
31 $AWK '{ gsub(/\351/, "\370"); print }' latin1 > $TEMP0
32 $AWK '{ gsub(/�/, "�"); print }' latin1 > $TEMP1
35 $AWK '{ gsub(/[^\300-\370]/, ""); print }' latin1 > $TEMP0
36 $AWK '{ gsub(/[^�-�]/, ""); print } ' latin1 > $TEMP1
40 $AWK -f $TEMP1 $TEMP1 > $TEMP2
44 $AWK -f $TEMP1 $TEMP1 > $TEMP2
54 $AWK '/[��]/' $TEMP0 > $TEMP2
H A DT.nextfile3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
27 $AWK '
33 $AWK ' # same test but in a for loop
44 $AWK ' # same test but in a while loop
56 $AWK ' # same test but in a do loop
77 $AWK '
86 $AWK ' { nextfile; print $0 }' T.* > $TEMP1
97 $AWK '
H A DT.redir3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
20 $AWK '{ print >"'$TEMP1'" }' /etc/passwd
24 $AWK '{ print >>"'$TEMP1'" }' /etc/passwd
28 $AWK 'NR%2 == 1 { print >>"'$TEMP1'" }
33 $AWK '{ print | "cat > '$TEMP1'" }' /etc/passwd
40 $AWK 'BEGIN { print " head"
46 $AWK '{ print >"/dev/stderr" }' /etc/passwd 1> $TEMP1 2> $TEMP2
51 $AWK '{ print >"/dev/stdout" }' /etc/passwd 1> $TEMP1 2> $TEMP2
H A DT.flags3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
19 $AWK > $TEMP1 2>&1
22 $AWK -f > $TEMP1 2>&1
25 $AWK -f glop/glop > $TEMP1 2>&1
28 $AWK -fglop/glop > $TEMP1 2>&1
31 $AWK -zz 'BEGIN{}' > $TEMP1 2>&1
34 $AWK -F > $TEMP1 2>&1
H A DT.close3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
22 $AWK '{ print >>"'$TEMP0'"; close("'$TEMP0'") }' /etc/passwd
27 $AWK '{ print >"'$TEMP2'"; close("'$TEMP2'") }' $TEMP0
31 $AWK ' # non-accessible file
37 $AWK ' # file not opened
43 $AWK ' # normal close
49 $AWK ' # normal close
H A DT.main3 if [[ -z "$AWK" ]]; then
27 echo hello | $AWK -d '{print}' > $TEMP1
31 $AWK -F:: '{print NF}' $TEMP0 > $TEMP1
36 $AWK -F :: '{print NF}' $TEMP0 > $TEMP1
41 $AWK -F t '{print NF}' $TEMP0 > $TEMP1
46 $AWK -Ft '{print NF}' $TEMP0 > $TEMP1
51 $AWK -F tab '{print NF}' $TEMP0 > $TEMP1
H A DT.-f-f3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
29 echo xxx | $AWK -f $TEMP1 -f $TEMP2 > $TEMP3
33 echo '/a/' | $AWK -f - /etc/passwd > $TEMP1
34 $AWK '/a/' /etc/passwd > $TEMP2
42 $AWK -f $TEMP2 -f $TEMP3 -f $TEMP4 /etc/passwd > $TEMP5
53 $AWK -f $TEMP2 -f $TEMP3 -f $TEMP4 /etc/passwd > $TEMP5 2> $TEMP6
H A DT.errmsg3 if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
26 $AWK '
231 $AWK '{print x}' x='a
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
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/
H A Dfflush.sh3 if [ -z "$AWK" ]; then
8 $AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}'
10 $AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}'|cat
15 $AWK 'BEGIN{print "1st";fflush("/dev/stdout");close("/dev/stdout");print "2nd"|"cat"}'|cat
17 $AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat
19 $AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat
21 $AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat
23 $AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort"}'|cat
25 $AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort";close("sort")}'|cat
H A Drsnulbig.sh3 if [[ -z "$AWK" ]]; then
8 $AWK 'BEGIN { for (i = 1; i <= 128*64+1; i++) print "abcdefgh123456\n" }' 2>&1 | \
9 $AWK 'BEGIN { RS = ""; ORS = "\n\n" }; { print }' 2>&1 | \
10 $AWK '/^[^a]/; END{ print NR }'
H A Drsnulbig2.sh3 if [[ -z "$AWK" ]]; then
8 $AWK 'BEGIN { ORS = ""; n = "\n"; for (i = 1; i <= 10; i++) n = (n n); \
10 $AWK 'BEGIN { RS = ""; ORS = "\n\n" };{ print }' 2>&1 | \
11 $AWK '/^[^a]/; END { print NR }'
/illumos-gate/usr/src/test/util-tests/tests/awk/
H A Druntests.sh18 AWK=/usr/bin/awk
34 AWK=$2
45 AWK=$(cd $(dirname $AWK); pwd)/$(basename $AWK)
51 if [[ ! -x $AWK ]]; then
52 printf 'awk executable "%s" is not executable\n' "$AWK" >&2
67 export AWK
73 printf 'Running AWK tests ($AWK="%s")\n' "$AWK"
106 $AWK -f $PROG > $WORKDIR/test.temp.out 2>&1 || \
144 $AWK -f $PROG < $INPUT > $WORKDIR/test.temp.out 2>&1 || \
147 $AWK -f $PROG > $WORKDIR/test.temp.out 2>&1 || \
[all …]
/illumos-gate/usr/src/data/zoneinfo/
H A Ddo_pofile.sh10 AWK=/usr/bin/nawk
30 $AWK -F'\t' \
44 $AWK -F'\t' \
59 $AWK -F'\t' \
/illumos-gate/usr/src/test/util-tests/tests/awk/syn/
H A Dparamdup.ok1 $AWK: duplicate argument b at source line 3 in function foo source file paramdup.awk
4 $AWK: syntax error at source line 3 in function foo source file paramdup.awk
5 $AWK: bailing out at source line 3 in function foo
/illumos-gate/usr/src/cmd/logadm/
H A Dlogadm-upgrade31 AWK=/usr/bin/awk
96 perm=$(${LS} -l ${f} | ${AWK} '{printf("%s %s:%s", $1, $3, $4)}')
112 sig=$(echo ${entry} | ${AWK} '{printf("%s\>", $1);}' 2>&1)

12345