Home
last modified time | relevance | path

Searched full:awk (Results 1 – 25 of 1133) sorted by relevance

12345678910>>...46

/external/one-true-awk/testdir/
Dbeebe.tar ... awk beebe/clsflnam.awk beebe/paramdup.awk beebe/nlinstr.ok beebe/nlfldsep.awk ...
DT.misc5 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
[all …]
DT.clv4 awk=${awk-../a.out}
10 goodbye' | $awk '
19 goodbye' | $awk '
28 goodbye' | $awk '
38 $awk '
47 $awk 'BEGIN { getline; print x}' x=4 /dev/null >foo2
52 $awk 'BEGIN { x=0; getline <"/dev/null"; print x}' x=5 /dev/null >foo2
61 $awk 'BEGIN { x=0; getline; print x}
68 $awk 'BEGIN { x=0; getline <"/dev/null"; print x}
75 $awk 'BEGIN { _=0; getline <"/dev/null"; print _}
[all …]
DREGRESS6 oldawk=${oldawk-awk}
7 awk=${awk-../a.out}
9 echo oldawk=$oldawk, awk=$awk
11 oldawk=$oldawk awk=$awk Compare.t t.*
14 oldawk=$oldawk awk=$awk Compare.p p.? p.??*
17 oldawk=$oldawk awk=$awk Compare.T1
18 echo `grep '\$awk' T.* | wc -l` tests; echo
20 oldawk=$oldawk awk=$awk Compare.tt tt.*
DT.main3 awk=${awk-../a.out}
11 echo hello | $awk -d '{print}' >foo1
12 if test -r core; then echo 1>&2 "BAD: T.main awk -d dropped core"; fi
15 $awk -F:: '{print NF}' foo >foo1
17 diff foo1 foo2 || echo 'bad: awk -F::'
20 $awk -F :: '{print NF}' foo >foo1
22 diff foo1 foo2 || echo 'bad: awk -F ::'
25 $awk -F t '{print NF}' foo >foo1
27 diff foo1 foo2 || echo 'bad: awk -F (tab)'
30 $awk -F tab '{print NF}' foo >foo1
[all …]
DT.gawk4 awk=${awk-../a.out}
9 $awk '
29 $awk '{ print $3; $4 = "a"; print }' foo >foo2
39 $awk '{ x = y = $0
59 $awk '{ w = x = y = z = $0
83 $awk '{ w = x = y = z = z1 = z2 = $0
110 $awk '{ w = x = y = z = z1 = z2 = $0
129 $awk '{ x = y = $0
140 $awk 'BEGIN { printf "%*sworld\n", -20, "hello" }' >foo2
157 $awk '
[all …]
DT.latin13 awk=${awk-../a.out}
5 $awk '
11 $awk '{ gsub(/\351/, "\370"); print }' latin1 >foo0
12 $awk '{ gsub(/�/, "�"); print }' latin1 >foo1
15 $awk '{ gsub(/[^\300-\370]/, ""); print }' latin1 >foo0
16 $awk '{ gsub(/[^�-�]/, ""); print } ' latin1 >foo1
20 $awk -f foo1 foo1 >foo2
26 $awk -f foo1 foo1 >foo2
31 Patterns like /[��]/ do not work yet. Example, run awk /[��]/
34 echo 'Patterns like /[��]/ do not work yet. Example, run awk /[��]/
[all …]
DT.argv3 awk=${awk-../a.out}
7 $awk '
19 $awk '
32 $awk '
42 $awk
55 $awk '{print L $0}' L=foo <foo0 >foo2
64 $awk '{print L $0}' L=foo foo0 >foo2
73 cat foo0 | $awk '{print L $0}' L=foo - >foo2
85 $awk '{print L $0}' L=foo foo0 L=glop foo0 >foo2
97 $awk '{print L $0}' L=11 foo0 L=22 foo0 >foo2
[all …]
DT.overflow3 awk=${awk-../a.out}
5 $awk 'BEGIN {
10 $awk '{print}' foo1 >foo2
14 echo hello | $awk '
22 $awk '
30 $awk '{$1 = " 123456789"; print}' foo1 >foo2
33 $awk '
41 $awk '{print NF}' foo >foo1
48 $awk 'BEGIN {
56 $awk '
[all …]
DT.getline3 awk=${awk-../a.out}
6 cat foo1 | $awk '
16 cat foo1 | $awk '
25 $awk '
34 cat /etc/passwd | $awk '
43 $awk '
52 $awk '
61 $awk '
70 $awk '
79 $awk ' BEGIN { print getline <"/glop/glop/glop" } ' >foo
[all …]
DT.builtin3 awk=${awk-../a.out}
5 $awk 'BEGIN { print index(123, substr(123, 2)) }' >foo1
9 $awk 'BEGIN {
17 $awk 'BEGIN {
28 $awk '{ printf("%s|%s|%s\n", tolower($0), toupper($0), $0)}' >foo1
35 $awk '{ printf("%s|%s|%s\n", tolower($0), toupper($0), $0)}') >foo1
38 (export LC_NUMERIC=de_DE.UTF-8 && $awk 'BEGIN { print 0.01 }' /dev/null) >foo1
43 $awk 'BEGIN {
49 $awk 'BEGIN {
55 $awk 'BEGIN {
[all …]
DT.flags3 awk=${awk-../a.out}
5 $awk >foo 2>&1
8 $awk -f >foo 2>&1
11 $awk -f glop/glop >foo 2>&1
14 $awk -fglop/glop >foo 2>&1
17 $awk -zz 'BEGIN{}' >foo 2>&1
20 $awk -F >foo 2>&1
23 ### Awk is now like gawk and splits into separate characters if FS = ""
24 # $awk -F '' >foo 2>&1
DT.split3 awk=${awk-../a.out}
20 $awk 'BEGIN {
37 $awk 'BEGIN {
52 $awk 'BEGIN {
67 $awk '{
79 $awk '{
95 $awk 'BEGIN { FS="=" } { FS="."; $0=$1; print $2; FS="="; }' $TEMP0 > $TEMP2
107 $awk 'BEGIN { FS="=" } { print $2; FS="."; $0=$1; print $2; FS="="; }' $TEMP0 > $TEMP2
118 $awk '
134 $awk '
[all …]
DT.func3 awk=${awk-../a.out}
9 1e1 9' | $awk '
28 $awk '
35 $awk '
44 $awk '
62 $awk '
96 $awk '
122 $awk '
147 $awk '
160 $awk 'BEGIN { eprocess("eqn", "x", contig)
[all …]
DT.redir3 awk=${awk-../a.out}
5 $awk '{ print >"foo" }' /etc/passwd
9 $awk '{ print >>"foo" }' /etc/passwd
13 $awk 'NR%2 == 1 { print >>"foo" }
18 $awk '{ print | "cat >foo" }' /etc/passwd
25 $awk 'BEGIN { print " head"
31 $awk '{ print >"/dev/stderr" }' /etc/passwd 1>foo1 2>foo2
36 $awk '{ print >"/dev/stdout" }' /etc/passwd 1>foo1 2>foo2
/external/libpng/scripts/
Dpnglibconf.mak6 # given just 'awk', a C preprocessor and standard command line utilities
9 # the make command line (AWK='nawk' for example).
10 AWK = gawk macro
11 AWK = mawk macro
12 AWK = nawk macro
13 AWK = one-true-awk macro
14 AWK = awk # This fails on SunOS 5.10; use 'nawk' macro
38 $(AWK) -f $(srcdir)/scripts/dfn.awk out=pnglibconf.tmp pnglibconf.out >&2
41 pnglibconf.dfn: $(srcdir)/scripts/pnglibconf.dfa $(srcdir)/scripts/options.awk $(srcdir)/pngconf.h …
43 @echo "## Calling $(AWK) from scripts/pnglibconf.mak" >&2
[all …]
/external/ltp/
Dver_linux67 make --version 2>&1 | awk -F, '{print $1}' | awk \
70 ld -v 2>&1 | awk -F\) '{print $1}' | awk \
73 mkswap -V 2>&1 | awk '{print "util-linux ", $NF}'
75 mount --version 2>&1 | awk -F\- '{print "mount ", $NF}'
77 insmod -V 2>&1 | awk 'NR==1 {print "modutils ",$NF}'
79 tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \
82 reiserfsck 2>&1 | grep reiserfsprogs | awk \
85 cardmgr -V 2>&1| grep version | awk \
88 pppd --version 2>&1| grep version | awk \
91 isdnctrl 2>&1 | grep version | awk \
[all …]
/external/libpng/projects/owatcom/
Dpngconfig.mak22 # Read awk from the environment if set, else it can be set on the command
23 # line (the default approach is to set the %awk% environment variable in the
25 !ifdef %awk
26 AWK=$(%awk) macro
35 !ifdef AWK
45 $(AWK) -f << dfn1.out >dfn2.out
60 pnglibconf.dfn: ..\..\scripts\pnglibconf.dfa ..\..\scripts\options.awk pngconfig.dfa ..\..\pngconf.h
62 …$(AWK) -f ..\..\scripts\options.awk out=dfn1.out version=search ..\..\pngconf.h ..\..\scripts\pngl…
63 $(AWK) -f ..\..\scripts\options.awk out=dfn2.out dfn1.out 1>&2
84 @$(ECHO) $$(AWK) NOT AVAILABLE: COPYING scripts\pnglibconf.h.prebuilt
[all …]
/external/one-true-awk/
DAndroid.bp32 name: "awk-flags",
46 // in stdio2.h, and this #defines it in awk.h
81 tools: ["awk-maketab"],
82 cmd: "$(location awk-maketab) $(in) > $(genDir)/proctab.c",
88 name: "awk-maketab",
89 defaults: ["awk-flags"],
95 name: "awk-defaults",
96 defaults: ["awk-flags"],
112 name: "awk",
113 defaults: ["awk-defaults"],
[all …]
Dmakefile44 SOURCE = awk.h awkgram.tab.c awkgram.tab.h proto.h awkgram.y lex.c b.c main.c \
47 LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \
51 awk.1
56 $(OFILES): awk.h awkgram.tab.h proto.h
58 awkgram.tab.c awkgram.tab.h: awk.h proto.h awkgram.y
75 @bundle $(SHIP) >awk.shar
76 @tar cf awk.tar $(SHIP)
77 gzip awk.tar
78 ls -l awk.tar.gz
79 @zip awk.zip $(SHIP)
[all …]
DChangeLog34 four a's. Thanks to Anonymous AWK fan <awkfan77@mailfence.com>
46 * test/T.chem: Use $oldawk instead of hardwiring 'awk'.
58 the code from the NetBSD awk.
60 * awk.1: Updated.
76 * awk.1: Fix a typo, minor edits.
133 * bugs-fixed/unary-plus.awk, bugs-fixed/unary-plus.bad,
139 * awk.1: Improve use of macros, add some additional explanation
144 * awk.h (Cell): Add new field `fmt' to track xFMT value used
148 * bugs-fixed/string-conv.awk, bugs-fixed/string-conv.bad,
193 * awk.h (saveOFS, saveOFSlen, save_old_OFS): Remove declarations.
[all …]
/external/cronet/third_party/libc++/src/test/std/re/re.const/re.matchflag/
Dmatch_multiline.pass.cpp44 using std::regex_constants::awk; in main()
56 search(pat, awk, target, true); in main()
63 search(pat, awk | multiline, target, true); in main()
74 search(pat, awk, target, false); in main()
81 search(pat, awk | multiline, target, false); in main()
92 search(pat, awk, target, false); in main()
99 search(pat, awk | multiline, target, false); in main()
111 search(pat, awk, target, true); in main()
118 search(pat, awk | multiline, target, true); in main()
129 search(pat, awk, target, false); in main()
[all …]
/external/libcxx/test/std/re/re.alg/re.alg.match/
Dawk.pass.cpp33 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk))); in main()
49 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
64 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::awk))); in main()
71 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
77 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk), in main()
84 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::awk))); in main()
90 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::awk))); in main()
105 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::awk))); in main()
124 std::regex_constants::awk))); in main()
130 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
[all …]
/external/e2fsprogs/util/
Dgen-android-files17 sed -e "s/@AWK@/awk/" < $SS_DIR/mk_cmds.sh.in \
25 awk -f lib/et/et_c.awk outfile=$i.c outfn=$(basename $i.c) $i.et
26 awk -f lib/et/et_h.awk outfile=$i.h outfn=$(basename $i.h) $i.et
57 awk -f misc/profile-to-c.awk < misc/mke2fs.conf.in > misc/default_profile.c
64 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
65 DATE=`grep E2FSPROGS_DATE version.h | awk '{print $3}' \
67 E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
68 MONTH=`echo $DATE | awk -F- '{print $2}'`
69 YEAR=`echo $DATE | awk -F- '{print $3}'`
/external/cronet/third_party/libc++/src/test/std/re/re.alg/re.alg.match/
Dawk.pass.cpp29 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk))); in main()
45 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
60 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::awk))); in main()
67 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
73 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk), in main()
80 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::awk))); in main()
86 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::awk))); in main()
101 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::awk))); in main()
120 std::regex_constants::awk))); in main()
126 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
[all …]

12345678910>>...46