Lines Matching refs:awk

5 awk=${awk-../a.out}
17 $awk '{ if (match($0, /^The big brown over the lazy dog/) == 0) {
29 $awk 'length($0) > 10' foo >foo2
34 echo foo | $awk '{ print "H\x49\x4a\x4BL" }' >foo2
38 $awk 'BEGIN { print "0\061\62x\0645" }' >foo2
42 echo 3 5 | $awk '{ i = 1; print $i++ ; print $1, i }' >foo1
55 $awk '{ NF -= 2; $1 = $1; print }' <foo >foo2
60 $awk 'BEGIN {x = 1; print x; x = x; print x}' >foo2
63 echo 573109312 | $awk '{print $1*4}' >foo1
72 $awk '/^#/' >foo1
77 $awk 'BEGIN { FILENAME = "/etc/passwd" }
82 $awk ' function foo(foo) {
95 $awk '{ x[NR] = $0 } # test whether $0 is NUM as well as STR
99 $awk 'BEGIN {
114 $awk 'BEGIN { foo() }' 2>foo
119 $awk '
140 $awk '
146 $awk '
156 $awk '
163 $awk 'BEGIN { unireghf() }
167 echo x | $awk '/[/]/' 2>foo
171 $awk '
182 $awk '
187 $awk 'END {print NR}' foo1 | grep 4 >/dev/null || echo 'BAD: T.misc abcdef fails'
190 echo aaa1a2a | $awk 1 RS='^a' >foo1
200 $awk 'function f(x) { x = 2 }
205 $awk 'function f(x) { x }
209 $awk 'BEGIN { print 9, a=10, 11; print a; exit }' >foo1
214 echo "abc defgh ijkl" | $awk '
221 $awk '
234 $awk '
241 $awk 'BEGIN { print 1e40 }' >/dev/null
245 $awk '
253 $awk '{ n = split($1, address, !); print address[1] }' 2>foo
258 $awk 'BEGIN {"hello"}' 2>foo
262 $awk '
272 $awk 'BEGIN { atan2(1) }' 2>foo
276 $awk 'BEGIN { f() }
282 $awk 'BEGIN { gsub(/ana/,"anda","banana")
288 $awk 'BEGIN { sub(/ana/,"anda","banana")
294 $awk '#
303 $awk 'BEGIN { print "x\f\r\b\v\a\\y" }' >foo2
307 $awk ' BEGIN { exit }
313 $awk ' { exit }
318 $awk ' {i = 1; while (i <= NF) {if (i == NF) exit; i++ } }
323 $awk ' function f() {
331 $awk ' function f() {
340 $awk ' {i = 1; do { if (i == NF) exit; i++ } while (i <= NF) }
345 $awk ' function f() {
353 $awk ' {i = 1; do { if (i == NF) break; i++ } while (i <= NF); exit }
358 $awk ' { n = split($0, x)
366 $awk 'BEGIN { s = "ab\fc\rd\be"
370 $awk '{}' /etc/passwd glop/glop >foo 2>foo2
386 $awk 'BEGIN { RS = "" }; END { print NR }' foo >foo2
389 $awk 'BEGIN \
398 $awk '{ f[1]=1; f[2]=2; print $f[1], $f[1]++, $f[2], f[1], f[2] }' foo >foo2
404 $awk . 2>foo
407 $awk .. 2>foo
410 $awk .E. 2>foo
413 $awk .++. 2>foo
419 $awk '$' 2>foo
422 $awk '{print $' 2>foo
425 $awk '"' 2>foo