home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 32 32 69 30 39 |Subject:| v22i09|
|00000010| 37 3a 20 20 47 4e 55 20 | 41 57 4b 2c 20 76 65 72 |7: GNU |AWK, ver|
|00000020| 73 69 6f 6e 20 32 2e 31 | 31 2c 20 50 61 72 74 31 |sion 2.1|1, Part1|
|00000030| 31 2f 31 36 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |1/16.New|sgroups:|
|00000040| 20 63 6f 6d 70 2e 73 6f | 75 72 63 65 73 2e 75 6e | comp.so|urces.un|
|00000050| 69 78 0a 41 70 70 72 6f | 76 65 64 3a 20 72 73 61 |ix.Appro|ved: rsa|
|00000060| 6c 7a 40 75 75 6e 65 74 | 2e 55 55 2e 4e 45 54 0a |lz@uunet|.UU.NET.|
|00000070| 58 2d 43 68 65 63 6b 73 | 75 6d 2d 53 6e 65 66 72 |X-Checks|um-Snefr|
|00000080| 75 3a 20 65 34 65 37 62 | 65 39 62 20 36 63 64 39 |u: e4e7b|e9b 6cd9|
|00000090| 37 65 35 34 20 39 65 38 | 65 62 64 34 36 20 63 33 |7e54 9e8|ebd46 c3|
|000000a0| 35 32 61 39 32 62 0a 0a | 53 75 62 6d 69 74 74 65 |52a92b..|Submitte|
|000000b0| 64 2d 62 79 3a 20 22 41 | 72 6e 6f 6c 64 20 44 2e |d-by: "A|rnold D.|
|000000c0| 20 52 6f 62 62 69 6e 73 | 22 20 3c 61 72 6e 6f 6c | Robbins|" <arnol|
|000000d0| 64 40 75 6e 69 78 2e 63 | 63 2e 65 6d 6f 72 79 2e |d@unix.c|c.emory.|
|000000e0| 65 64 75 3e 0a 50 6f 73 | 74 69 6e 67 2d 6e 75 6d |edu>.Pos|ting-num|
|000000f0| 62 65 72 3a 20 56 6f 6c | 75 6d 65 20 32 32 2c 20 |ber: Vol|ume 22, |
|00000100| 49 73 73 75 65 20 39 37 | 0a 41 72 63 68 69 76 65 |Issue 97|.Archive|
|00000110| 2d 6e 61 6d 65 3a 20 67 | 61 77 6b 32 2e 31 31 2f |-name: g|awk2.11/|
|00000120| 70 61 72 74 31 31 0a 0a | 23 21 20 2f 62 69 6e 2f |part11..|#! /bin/|
|00000130| 73 68 0a 23 20 54 68 69 | 73 20 69 73 20 61 20 73 |sh.# Thi|s is a s|
|00000140| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 2e 20 20 52 |hell arc|hive. R|
|00000150| 65 6d 6f 76 65 20 61 6e | 79 74 68 69 6e 67 20 62 |emove an|ything b|
|00000160| 65 66 6f 72 65 20 74 68 | 69 73 20 6c 69 6e 65 2c |efore th|is line,|
|00000170| 20 74 68 65 6e 20 66 65 | 65 64 20 69 74 0a 23 20 | then fe|ed it.# |
|00000180| 69 6e 74 6f 20 61 20 73 | 68 65 6c 6c 20 76 69 61 |into a s|hell via|
|00000190| 20 22 73 68 20 66 69 6c | 65 22 20 6f 72 20 73 69 | "sh fil|e" or si|
|000001a0| 6d 69 6c 61 72 2e 20 20 | 54 6f 20 6f 76 65 72 77 |milar. |To overw|
|000001b0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000001c0| 6c 65 73 2c 0a 23 20 74 | 79 70 65 20 22 73 68 20 |les,.# t|ype "sh |
|000001d0| 66 69 6c 65 20 2d 63 22 | 2e 0a 23 20 54 68 65 20 |file -c"|..# The |
|000001e0| 74 6f 6f 6c 20 74 68 61 | 74 20 67 65 6e 65 72 61 |tool tha|t genera|
|000001f0| 74 65 64 20 74 68 69 73 | 20 61 70 70 65 61 72 65 |ted this| appeare|
|00000200| 64 20 69 6e 20 74 68 65 | 20 63 6f 6d 70 2e 73 6f |d in the| comp.so|
|00000210| 75 72 63 65 73 2e 75 6e | 69 78 20 6e 65 77 73 67 |urces.un|ix newsg|
|00000220| 72 6f 75 70 3b 0a 23 20 | 73 65 6e 64 20 6d 61 69 |roup;.# |send mai|
|00000230| 6c 20 74 6f 20 63 6f 6d | 70 2d 73 6f 75 72 63 65 |l to com|p-source|
|00000240| 73 2d 75 6e 69 78 40 75 | 75 6e 65 74 2e 75 75 2e |s-unix@u|unet.uu.|
|00000250| 6e 65 74 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |net if y|ou want |
|00000260| 74 68 61 74 20 74 6f 6f | 6c 2e 0a 23 20 43 6f 6e |that too|l..# Con|
|00000270| 74 65 6e 74 73 3a 20 20 | 2e 2f 67 61 77 6b 2e 31 |tents: |./gawk.1|
|00000280| 20 2e 2f 69 6f 2e 63 20 | 2e 2f 6d 69 73 73 69 6e | ./io.c |./missin|
|00000290| 67 2e 64 2f 6d 65 6d 63 | 70 79 2e 63 0a 23 20 57 |g.d/memc|py.c.# W|
|000002a0| 72 61 70 70 65 64 20 62 | 79 20 72 73 61 6c 7a 40 |rapped b|y rsalz@|
|000002b0| 6c 69 74 63 68 69 2e 62 | 62 6e 2e 63 6f 6d 20 6f |litchi.b|bn.com o|
|000002c0| 6e 20 57 65 64 20 4a 75 | 6e 20 20 36 20 31 32 3a |n Wed Ju|n 6 12:|
|000002d0| 32 34 3a 35 36 20 31 39 | 39 30 0a 50 41 54 48 3d |24:56 19|90.PATH=|
|000002e0| 2f 62 69 6e 3a 2f 75 73 | 72 2f 62 69 6e 3a 2f 75 |/bin:/us|r/bin:/u|
|000002f0| 73 72 2f 75 63 62 20 3b | 20 65 78 70 6f 72 74 20 |sr/ucb ;| export |
|00000300| 50 41 54 48 0a 65 63 68 | 6f 20 49 66 20 74 68 69 |PATH.ech|o If thi|
|00000310| 73 20 61 72 63 68 69 76 | 65 20 69 73 20 63 6f 6d |s archiv|e is com|
|00000320| 70 6c 65 74 65 2c 20 79 | 6f 75 20 77 69 6c 6c 20 |plete, y|ou will |
|00000330| 73 65 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |see the |followin|
|00000340| 67 20 6d 65 73 73 61 67 | 65 3a 0a 65 63 68 6f 20 |g messag|e:.echo |
|00000350| 27 20 20 20 20 20 20 20 | 20 20 20 22 73 68 61 72 |' | "shar|
|00000360| 3a 20 45 6e 64 20 6f 66 | 20 61 72 63 68 69 76 65 |: End of| archive|
|00000370| 20 31 31 20 28 6f 66 20 | 31 36 29 2e 22 27 0a 69 | 11 (of |16)."'.i|
|00000380| 66 20 74 65 73 74 20 2d | 66 20 27 2e 2f 67 61 77 |f test -|f './gaw|
|00000390| 6b 2e 31 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |k.1' -a |"${1}" !|
|000003a0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|000003b0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|000003c0| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|000003d0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 2e 2f |sting fi|le \"'./|
|000003e0| 67 61 77 6b 2e 31 27 5c | 22 0a 65 6c 73 65 0a 20 |gawk.1'\|".else. |
|000003f0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 | echo sh|ar: Extr|
|00000400| 61 63 74 69 6e 67 20 5c | 22 27 2e 2f 67 61 77 6b |acting \|"'./gawk|
|00000410| 2e 31 27 5c 22 20 5c 28 | 33 33 35 34 39 20 63 68 |.1'\" \(|33549 ch|
|00000420| 61 72 61 63 74 65 72 73 | 5c 29 0a 20 20 73 65 64 |aracters|\). sed|
|00000430| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 2e 2f 67 61 | "s/^X//|" >'./ga|
|00000440| 77 6b 2e 31 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |wk.1' <<|'END_OF_|
|00000450| 46 49 4c 45 27 0a 58 2e | 54 48 20 47 41 57 4b 20 |FILE'.X.|TH GAWK |
|00000460| 31 20 22 41 75 67 75 73 | 74 20 32 34 20 31 39 38 |1 "Augus|t 24 198|
|00000470| 39 22 20 22 46 72 65 65 | 20 53 6f 66 74 77 61 72 |9" "Free| Softwar|
|00000480| 65 20 46 6f 75 6e 64 61 | 74 69 6f 6e 22 0a 58 2e |e Founda|tion".X.|
|00000490| 53 48 20 4e 41 4d 45 0a | 58 67 61 77 6b 20 5c 2d |SH NAME.|Xgawk \-|
|000004a0| 20 70 61 74 74 65 72 6e | 20 73 63 61 6e 6e 69 6e | pattern| scannin|
|000004b0| 67 20 61 6e 64 20 70 72 | 6f 63 65 73 73 69 6e 67 |g and pr|ocessing|
|000004c0| 20 6c 61 6e 67 75 61 67 | 65 0a 58 2e 53 48 20 53 | languag|e.X.SH S|
|000004d0| 59 4e 4f 50 53 49 53 0a | 58 2e 42 20 67 61 77 6b |YNOPSIS.|X.B gawk|
|000004e0| 0a 58 2e 69 67 0a 58 5b | 0a 58 2e 42 20 5c 2d 64 |.X.ig.X[|.X.B \-d|
|000004f0| 0a 58 5d 20 5b 0a 58 2e | 42 20 5c 2d 44 0a 58 5d |.X] [.X.|B \-D.X]|
|00000500| 0a 58 2e 2e 0a 58 5b 0a | 58 2e 42 20 5c 2d 61 0a |.X...X[.|X.B \-a.|
|00000510| 58 5d 20 5b 0a 58 2e 42 | 20 5c 2d 65 0a 58 5d 20 |X] [.X.B| \-e.X] |
|00000520| 5b 0a 58 2e 42 20 5c 2d | 63 0a 58 5d 20 5b 0a 58 |[.X.B \-|c.X] [.X|
|00000530| 2e 42 20 5c 2d 43 0a 58 | 5d 20 5b 0a 58 2e 42 20 |.B \-C.X|] [.X.B |
|00000540| 5c 2d 56 0a 58 5d 20 5b | 0a 58 2e 42 49 20 5c 2d |\-V.X] [|.X.BI \-|
|00000550| 46 5c 5e 20 66 73 0a 58 | 5d 20 5b 0a 58 2e 42 20 |F\^ fs.X|] [.X.B |
|00000560| 5c 2d 76 0a 58 2e 49 52 | 20 76 61 72 20 3d 20 76 |\-v.X.IR| var = v|
|00000570| 61 6c 0a 58 5d 0a 58 2e | 42 20 5c 2d 66 0a 58 2e |al.X].X.|B \-f.X.|
|00000580| 49 20 70 72 6f 67 72 61 | 6d 2d 66 69 6c 65 0a 58 |I progra|m-file.X|
|00000590| 5b 0a 58 2e 42 20 5c 2d | 5c 5e 5c 2d 0a 58 5d 20 |[.X.B \-|\^\-.X] |
|000005a0| 66 69 6c 65 20 2e 5c 5e | 2e 5c 5e 2e 0a 58 2e 62 |file .\^|.\^..X.b|
|000005b0| 72 0a 58 2e 42 20 67 61 | 77 6b 0a 58 2e 69 67 0a |r.X.B ga|wk.X.ig.|
|000005c0| 58 5b 0a 58 2e 42 20 5c | 2d 64 0a 58 5d 20 5b 0a |X[.X.B \|-d.X] [.|
|000005d0| 58 2e 42 20 5c 2d 44 0a | 58 5d 0a 58 2e 2e 0a 58 |X.B \-D.|X].X...X|
|000005e0| 5b 0a 58 2e 42 20 5c 2d | 61 0a 58 5d 20 5b 0a 58 |[.X.B \-|a.X] [.X|
|000005f0| 2e 42 20 5c 2d 65 0a 58 | 5d 20 5b 0a 58 2e 42 20 |.B \-e.X|] [.X.B |
|00000600| 5c 2d 63 0a 58 5d 20 5b | 0a 58 2e 42 20 5c 2d 43 |\-c.X] [|.X.B \-C|
|00000610| 0a 58 5d 20 5b 0a 58 2e | 42 20 5c 2d 56 0a 58 5d |.X] [.X.|B \-V.X]|
|00000620| 20 5b 0a 58 2e 42 49 20 | 5c 2d 46 5c 5e 20 66 73 | [.X.BI |\-F\^ fs|
|00000630| 0a 58 5d 20 5b 0a 58 2e | 42 20 5c 2d 76 0a 58 2e |.X] [.X.|B \-v.X.|
|00000640| 49 52 20 76 61 72 20 3d | 20 76 61 6c 0a 58 5d 20 |IR var =| val.X] |
|00000650| 5b 0a 58 2e 42 20 5c 2d | 5c 5e 5c 2d 0a 58 5d 0a |[.X.B \-|\^\-.X].|
|00000660| 58 2e 49 20 70 72 6f 67 | 72 61 6d 2d 74 65 78 74 |X.I prog|ram-text|
|00000670| 0a 58 66 69 6c 65 20 2e | 5c 5e 2e 5c 5e 2e 0a 58 |.Xfile .|\^.\^..X|
|00000680| 2e 53 48 20 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |.SH DESC|RIPTION.|
|00000690| 58 2e 49 20 47 61 77 6b | 0a 58 69 73 20 74 68 65 |X.I Gawk|.Xis the|
|000006a0| 20 47 4e 55 20 50 72 6f | 6a 65 63 74 27 73 20 69 | GNU Pro|ject's i|
|000006b0| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|000006c0| 20 74 68 65 20 41 57 4b | 20 70 72 6f 67 72 61 6d | the AWK| program|
|000006d0| 6d 69 6e 67 20 6c 61 6e | 67 75 61 67 65 2e 0a 58 |ming lan|guage..X|
|000006e0| 49 74 20 63 6f 6e 66 6f | 72 6d 73 20 74 6f 20 74 |It confo|rms to t|
|000006f0| 68 65 20 64 65 66 69 6e | 69 74 69 6f 6e 20 61 6e |he defin|ition an|
|00000700| 64 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |d descri|ption of|
|00000710| 20 74 68 65 20 6c 61 6e | 67 75 61 67 65 20 69 6e | the lan|guage in|
|00000720| 0a 58 2e 49 52 20 22 54 | 68 65 20 41 57 4b 20 50 |.X.IR "T|he AWK P|
|00000730| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 4c 61 6e 67 75 |rogrammi|ng Langu|
|00000740| 61 67 65 22 20 2c 0a 58 | 62 79 20 41 68 6f 2c 20 |age" ,.X|by Aho, |
|00000750| 4b 65 72 6e 69 67 68 61 | 6e 2c 20 61 6e 64 20 57 |Kernigha|n, and W|
|00000760| 65 69 6e 62 65 72 67 65 | 72 2c 0a 58 77 69 74 68 |einberge|r,.Xwith|
|00000770| 20 74 68 65 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 | the add|itional |
|00000780| 66 65 61 74 75 72 65 73 | 20 64 65 66 69 6e 65 64 |features| defined|
|00000790| 20 69 6e 20 74 68 65 20 | 53 79 73 74 65 6d 20 56 | in the |System V|
|000007a0| 20 52 65 6c 65 61 73 65 | 20 34 20 76 65 72 73 69 | Release| 4 versi|
|000007b0| 6f 6e 0a 58 6f 66 20 5c | 73 2d 31 55 4e 49 58 5c |on.Xof \|s-1UNIX\|
|000007c0| 73 2b 31 0a 58 2e 49 52 | 20 61 77 6b 20 2c 0a 58 |s+1.X.IR| awk ,.X|
|000007d0| 61 6e 64 20 73 6f 6d 65 | 20 47 4e 55 2d 73 70 65 |and some| GNU-spe|
|000007e0| 63 69 66 69 63 20 65 78 | 74 65 6e 73 69 6f 6e 73 |cific ex|tensions|
|000007f0| 2e 0a 58 2e 50 50 0a 58 | 54 68 65 20 63 6f 6d 6d |..X.PP.X|The comm|
|00000800| 61 6e 64 20 6c 69 6e 65 | 20 63 6f 6e 73 69 73 74 |and line| consist|
|00000810| 73 20 6f 66 20 6f 70 74 | 69 6f 6e 73 20 74 6f 0a |s of opt|ions to.|
|00000820| 58 2e 49 20 67 61 77 6b | 0a 58 69 74 73 65 6c 66 |X.I gawk|.Xitself|
|00000830| 2c 20 74 68 65 20 41 57 | 4b 20 70 72 6f 67 72 61 |, the AW|K progra|
|00000840| 6d 20 74 65 78 74 20 28 | 69 66 20 6e 6f 74 20 73 |m text (|if not s|
|00000850| 75 70 70 6c 69 65 64 20 | 76 69 61 20 74 68 65 0a |upplied |via the.|
|00000860| 58 2e 42 20 5c 2d 66 0a | 58 6f 70 74 69 6f 6e 29 |X.B \-f.|Xoption)|
|00000870| 2c 20 61 6e 64 20 76 61 | 6c 75 65 73 20 74 6f 20 |, and va|lues to |
|00000880| 62 65 20 6d 61 64 65 0a | 58 61 76 61 69 6c 61 62 |be made.|Xavailab|
|00000890| 6c 65 20 69 6e 20 74 68 | 65 0a 58 2e 42 20 41 52 |le in th|e.X.B AR|
|000008a0| 47 43 0a 58 61 6e 64 0a | 58 2e 42 20 41 52 47 56 |GC.Xand.|X.B ARGV|
|000008b0| 0a 58 70 72 65 2d 64 65 | 66 69 6e 65 64 20 41 57 |.Xpre-de|fined AW|
|000008c0| 4b 20 76 61 72 69 61 62 | 6c 65 73 2e 0a 58 2e 50 |K variab|les..X.P|
|000008d0| 50 0a 58 2e 49 20 47 61 | 77 6b 0a 58 61 63 63 65 |P.X.I Ga|wk.Xacce|
|000008e0| 70 74 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |pts the |followin|
|000008f0| 67 20 6f 70 74 69 6f 6e | 73 2c 20 77 68 69 63 68 |g option|s, which|
|00000900| 20 73 68 6f 75 6c 64 20 | 62 65 20 61 76 61 69 6c | should |be avail|
|00000910| 61 62 6c 65 20 6f 6e 20 | 61 6e 79 20 69 6d 70 6c |able on |any impl|
|00000920| 65 6d 65 6e 74 61 74 69 | 6f 6e 0a 58 6f 66 20 74 |ementati|on.Xof t|
|00000930| 68 65 20 41 57 4b 20 6c | 61 6e 67 75 61 67 65 2e |he AWK l|anguage.|
|00000940| 0a 58 2e 54 50 0a 58 2e | 42 49 20 5c 2d 46 20 66 |.X.TP.X.|BI \-F f|
|00000950| 73 0a 58 55 73 65 0a 58 | 2e 49 20 66 73 0a 58 66 |s.XUse.X|.I fs.Xf|
|00000960| 6f 72 20 74 68 65 20 69 | 6e 70 75 74 20 66 69 65 |or the i|nput fie|
|00000970| 6c 64 20 73 65 70 61 72 | 61 74 6f 72 20 28 74 68 |ld separ|ator (th|
|00000980| 65 20 76 61 6c 75 65 20 | 6f 66 20 74 68 65 0a 58 |e value |of the.X|
|00000990| 2e 42 20 46 53 0a 58 70 | 72 65 64 65 66 69 6e 65 |.B FS.Xp|redefine|
|000009a0| 64 0a 58 76 61 72 69 61 | 62 6c 65 29 2e 0a 58 2e |d.Xvaria|ble)..X.|
|000009b0| 54 50 0a 58 5c 66 42 5c | 2d 76 5c 66 49 20 76 61 |TP.X\fB\|-v\fI va|
|000009c0| 72 5c 66 52 5c 5e 3d 5c | 5e 5c 66 49 76 61 6c 5c |r\fR\^=\|^\fIval\|
|000009d0| 66 52 0a 58 41 73 73 69 | 67 6e 20 74 68 65 20 76 |fR.XAssi|gn the v|
|000009e0| 61 6c 75 65 0a 58 2e 49 | 52 20 76 61 6c 20 2c 0a |alue.X.I|R val ,.|
|000009f0| 58 74 6f 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 |Xto the |variable|
|00000a00| 0a 58 2e 49 52 20 76 61 | 72 20 2c 0a 58 62 65 66 |.X.IR va|r ,.Xbef|
|00000a10| 6f 72 65 20 65 78 65 63 | 75 74 69 6f 6e 20 6f 66 |ore exec|ution of|
|00000a20| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 62 65 67 | the pro|gram beg|
|00000a30| 69 6e 73 2e 0a 58 53 75 | 63 68 20 76 61 72 69 61 |ins..XSu|ch varia|
|00000a40| 62 6c 65 20 76 61 6c 75 | 65 73 20 61 72 65 20 61 |ble valu|es are a|
|00000a50| 76 61 69 6c 61 62 6c 65 | 20 74 6f 20 74 68 65 0a |vailable| to the.|
|00000a60| 58 2e 42 20 42 45 47 49 | 4e 0a 58 62 6c 6f 63 6b |X.B BEGI|N.Xblock|
|00000a70| 20 6f 66 20 61 6e 20 41 | 57 4b 20 70 72 6f 67 72 | of an A|WK progr|
|00000a80| 61 6d 2e 0a 58 2e 54 50 | 0a 58 2e 42 49 20 5c 2d |am..X.TP|.X.BI \-|
|00000a90| 66 20 22 20 70 72 6f 67 | 72 61 6d 2d 66 69 6c 65 |f " prog|ram-file|
|00000aa0| 22 0a 58 52 65 61 64 20 | 74 68 65 20 41 57 4b 20 |".XRead |the AWK |
|00000ab0| 70 72 6f 67 72 61 6d 20 | 73 6f 75 72 63 65 20 66 |program |source f|
|00000ac0| 72 6f 6d 20 74 68 65 20 | 66 69 6c 65 0a 58 2e 49 |rom the |file.X.I|
|00000ad0| 52 20 70 72 6f 67 72 61 | 6d 2d 66 69 6c 65 20 2c |R progra|m-file ,|
|00000ae0| 0a 58 69 6e 73 74 65 61 | 64 20 6f 66 20 66 72 6f |.Xinstea|d of fro|
|00000af0| 6d 20 74 68 65 20 66 69 | 72 73 74 20 63 6f 6d 6d |m the fi|rst comm|
|00000b00| 61 6e 64 20 6c 69 6e 65 | 20 61 72 67 75 6d 65 6e |and line| argumen|
|00000b10| 74 2e 0a 58 4d 75 6c 74 | 69 70 6c 65 0a 58 2e 42 |t..XMult|iple.X.B|
|00000b20| 20 5c 2d 66 0a 58 6f 70 | 74 69 6f 6e 73 20 6d 61 | \-f.Xop|tions ma|
|00000b30| 79 20 62 65 20 75 73 65 | 64 2e 0a 58 2e 54 50 0a |y be use|d..X.TP.|
|00000b40| 58 2e 42 20 5c 2d 5c 5e | 5c 2d 0a 58 53 69 67 6e |X.B \-\^|\-.XSign|
|00000b50| 61 6c 20 74 68 65 20 65 | 6e 64 20 6f 66 20 6f 70 |al the e|nd of op|
|00000b60| 74 69 6f 6e 73 2e 20 54 | 68 69 73 20 69 73 20 75 |tions. T|his is u|
|00000b70| 73 65 66 75 6c 20 74 6f | 20 61 6c 6c 6f 77 20 66 |seful to| allow f|
|00000b80| 75 72 74 68 65 72 20 61 | 72 67 75 6d 65 6e 74 73 |urther a|rguments|
|00000b90| 20 74 6f 20 74 68 65 0a | 58 41 57 4b 20 70 72 6f | to the.|XAWK pro|
|00000ba0| 67 72 61 6d 20 69 74 73 | 65 6c 66 20 74 6f 20 73 |gram its|elf to s|
|00000bb0| 74 61 72 74 20 77 69 74 | 68 20 61 20 60 60 5c 2d |tart wit|h a ``\-|
|00000bc0| 27 27 2e 0a 58 54 68 69 | 73 20 69 73 20 6d 61 69 |''..XThi|s is mai|
|00000bd0| 6e 6c 79 20 66 6f 72 20 | 63 6f 6e 73 69 73 74 65 |nly for |consiste|
|00000be0| 6e 63 79 20 77 69 74 68 | 20 74 68 65 20 61 72 67 |ncy with| the arg|
|00000bf0| 75 6d 65 6e 74 20 70 61 | 72 73 69 6e 67 20 63 6f |ument pa|rsing co|
|00000c00| 6e 76 65 6e 74 69 6f 6e | 20 75 73 65 64 0a 58 62 |nvention| used.Xb|
|00000c10| 79 20 6d 6f 73 74 20 6f | 74 68 65 72 20 53 79 73 |y most o|ther Sys|
|00000c20| 74 65 6d 20 56 20 70 72 | 6f 67 72 61 6d 73 2e 0a |tem V pr|ograms..|
|00000c30| 58 2e 50 50 0a 58 54 68 | 65 20 66 6f 6c 6c 6f 77 |X.PP.XTh|e follow|
|00000c40| 69 6e 67 20 6f 70 74 69 | 6f 6e 73 20 61 72 65 20 |ing opti|ons are |
|00000c50| 73 70 65 63 69 66 69 63 | 20 74 6f 20 74 68 65 20 |specific| to the |
|00000c60| 47 4e 55 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |GNU impl|ementati|
|00000c70| 6f 6e 2e 0a 58 2e 54 50 | 0a 58 2e 42 20 5c 2d 61 |on..X.TP|.X.B \-a|
|00000c80| 0a 58 55 73 65 20 41 57 | 4b 20 73 74 79 6c 65 20 |.XUse AW|K style |
|00000c90| 72 65 67 75 6c 61 72 20 | 65 78 70 72 65 73 73 69 |regular |expressi|
|00000ca0| 6f 6e 73 20 61 73 20 64 | 65 73 63 72 69 62 65 64 |ons as d|escribed|
|00000cb0| 20 69 6e 20 74 68 65 20 | 62 6f 6f 6b 2e 0a 58 54 | in the |book..XT|
|00000cc0| 68 69 73 20 69 73 20 74 | 68 65 20 63 75 72 72 65 |his is t|he curre|
|00000cd0| 6e 74 20 64 65 66 61 75 | 6c 74 2c 20 62 75 74 20 |nt defau|lt, but |
|00000ce0| 6d 61 79 20 6e 6f 74 20 | 62 65 20 77 68 65 6e 20 |may not |be when |
|00000cf0| 74 68 65 20 50 4f 53 49 | 58 20 50 31 30 30 33 2e |the POSI|X P1003.|
|00000d00| 32 0a 58 73 74 61 6e 64 | 61 72 64 20 69 73 20 66 |2.Xstand|ard is f|
|00000d10| 69 6e 61 6c 69 7a 65 64 | 2e 0a 58 49 74 20 69 73 |inalized|..XIt is|
|00000d20| 20 6f 72 74 68 6f 67 6f | 6e 61 6c 20 74 6f 0a 58 | orthogo|nal to.X|
|00000d30| 2e 42 52 20 5c 2d 63 20 | 2e 0a 58 2e 54 50 0a 58 |.BR \-c |..X.TP.X|
|00000d40| 2e 42 20 5c 2d 65 0a 58 | 55 73 65 0a 58 2e 49 52 |.B \-e.X|Use.X.IR|
|00000d50| 20 65 67 72 65 70 20 28 | 31 29 0a 58 73 74 79 6c | egrep (|1).Xstyl|
|00000d60| 65 20 72 65 67 75 6c 61 | 72 20 65 78 70 72 65 73 |e regula|r expres|
|00000d70| 73 69 6f 6e 73 20 61 73 | 20 64 65 73 63 72 69 62 |sions as| describ|
|00000d80| 65 64 20 69 6e 20 50 4f | 53 49 58 20 73 74 61 6e |ed in PO|SIX stan|
|00000d90| 64 61 72 64 2e 0a 58 54 | 68 69 73 20 6d 61 79 20 |dard..XT|his may |
|00000da0| 62 65 63 6f 6d 65 20 74 | 68 65 20 64 65 66 61 75 |become t|he defau|
|00000db0| 6c 74 20 77 68 65 6e 20 | 74 68 65 20 50 4f 53 49 |lt when |the POSI|
|00000dc0| 58 20 50 31 30 30 33 2e | 32 0a 58 73 74 61 6e 64 |X P1003.|2.Xstand|
|00000dd0| 61 72 64 20 69 73 20 66 | 69 6e 61 6c 69 7a 65 64 |ard is f|inalized|
|00000de0| 2e 0a 58 49 74 20 69 73 | 20 6f 72 74 68 6f 67 6f |..XIt is| orthogo|
|00000df0| 6e 61 6c 20 74 6f 0a 58 | 2e 42 52 20 5c 2d 63 20 |nal to.X|.BR \-c |
|00000e00| 2e 0a 58 2e 54 50 0a 58 | 2e 42 20 5c 2d 63 0a 58 |..X.TP.X|.B \-c.X|
|00000e10| 52 75 6e 20 69 6e 0a 58 | 2e 49 20 63 6f 6d 70 61 |Run in.X|.I compa|
|00000e20| 74 69 62 69 6c 69 74 79 | 0a 58 6d 6f 64 65 2e 20 |tibility|.Xmode. |
|00000e30| 20 49 6e 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 | In comp|atibilit|
|00000e40| 79 20 6d 6f 64 65 2c 0a | 58 2e 49 20 67 61 77 6b |y mode,.|X.I gawk|
|00000e50| 0a 58 62 65 68 61 76 65 | 73 20 69 64 65 6e 74 69 |.Xbehave|s identi|
|00000e60| 63 61 6c 6c 79 20 74 6f | 20 5c 73 2d 31 55 4e 49 |cally to| \s-1UNI|
|00000e70| 58 5c 73 2b 31 0a 58 2e | 49 52 20 61 77 6b 20 3b |X\s+1.X.|IR awk ;|
|00000e80| 0a 58 6e 6f 6e 65 20 6f | 66 20 74 68 65 20 47 4e |.Xnone o|f the GN|
|00000e90| 55 2d 73 70 65 63 69 66 | 69 63 20 65 78 74 65 6e |U-specif|ic exten|
|00000ea0| 73 69 6f 6e 73 20 61 72 | 65 20 72 65 63 6f 67 6e |sions ar|e recogn|
|00000eb0| 69 7a 65 64 2e 0a 58 2e | 54 50 0a 58 2e 42 20 5c |ized..X.|TP.X.B \|
|00000ec0| 2d 43 0a 58 50 72 69 6e | 74 20 74 68 65 20 73 68 |-C.XPrin|t the sh|
|00000ed0| 6f 72 74 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ort vers|ion of t|
|00000ee0| 68 65 20 47 4e 55 20 63 | 6f 70 79 72 69 67 68 74 |he GNU c|opyright|
|00000ef0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6d 65 73 | informa|tion mes|
|00000f00| 73 61 67 65 20 6f 6e 0a | 58 74 68 65 20 65 72 72 |sage on.|Xthe err|
|00000f10| 6f 72 20 6f 75 74 70 75 | 74 2e 0a 58 54 68 69 73 |or outpu|t..XThis|
|00000f20| 20 6f 70 74 69 6f 6e 20 | 6d 61 79 20 64 69 73 61 | option |may disa|
|00000f30| 70 70 65 61 72 20 69 6e | 20 61 20 66 75 74 75 72 |ppear in| a futur|
|00000f40| 65 20 76 65 72 73 69 6f | 6e 20 6f 66 0a 58 2e 49 |e versio|n of.X.I|
|00000f50| 52 20 67 61 77 6b 20 2e | 0a 58 2e 54 50 0a 58 2e |R gawk .|.X.TP.X.|
|00000f60| 42 20 5c 2d 56 0a 58 50 | 72 69 6e 74 20 76 65 72 |B \-V.XP|rint ver|
|00000f70| 73 69 6f 6e 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |sion inf|ormation|
|00000f80| 20 66 6f 72 20 74 68 69 | 73 20 70 61 72 74 69 63 | for thi|s partic|
|00000f90| 75 6c 61 72 20 63 6f 70 | 79 20 6f 66 0a 58 2e 49 |ular cop|y of.X.I|
|00000fa0| 20 67 61 77 6b 0a 58 6f | 6e 20 74 68 65 20 65 72 | gawk.Xo|n the er|
|00000fb0| 72 6f 72 20 6f 75 74 70 | 75 74 2e 0a 58 54 68 69 |ror outp|ut..XThi|
|00000fc0| 73 20 69 73 20 75 73 65 | 66 75 6c 20 6d 61 69 6e |s is use|ful main|
|00000fd0| 6c 79 20 66 6f 72 20 6b | 6e 6f 77 69 6e 67 20 69 |ly for k|nowing i|
|00000fe0| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 63 6f |f the cu|rrent co|
|00000ff0| 70 79 20 6f 66 0a 58 2e | 49 20 67 61 77 6b 0a 58 |py of.X.|I gawk.X|
|00001000| 6f 6e 20 79 6f 75 72 20 | 73 79 73 74 65 6d 0a 58 |on your |system.X|
|00001010| 69 73 20 75 70 20 74 6f | 20 64 61 74 65 20 77 69 |is up to| date wi|
|00001020| 74 68 20 72 65 73 70 65 | 63 74 20 74 6f 20 77 68 |th respe|ct to wh|
|00001030| 61 74 65 76 65 72 20 74 | 68 65 20 46 72 65 65 20 |atever t|he Free |
|00001040| 53 6f 66 74 77 61 72 65 | 20 46 6f 75 6e 64 61 74 |Software| Foundat|
|00001050| 69 6f 6e 0a 58 69 73 20 | 64 69 73 74 72 69 62 75 |ion.Xis |distribu|
|00001060| 74 69 6e 67 2e 0a 58 54 | 68 69 73 20 6f 70 74 69 |ting..XT|his opti|
|00001070| 6f 6e 20 6d 61 79 20 64 | 69 73 61 70 70 65 61 72 |on may d|isappear|
|00001080| 20 69 6e 20 61 20 66 75 | 74 75 72 65 20 76 65 72 | in a fu|ture ver|
|00001090| 73 69 6f 6e 20 6f 66 0a | 58 2e 49 52 20 67 61 77 |sion of.|X.IR gaw|
|000010a0| 6b 20 2e 0a 58 2e 50 50 | 0a 58 41 6e 79 20 6f 74 |k ..X.PP|.XAny ot|
|000010b0| 68 65 72 20 6f 70 74 69 | 6f 6e 73 20 61 72 65 20 |her opti|ons are |
|000010c0| 66 6c 61 67 67 65 64 20 | 61 73 20 69 6c 6c 65 67 |flagged |as illeg|
|000010d0| 61 6c 2c 20 62 75 74 20 | 61 72 65 20 6f 74 68 65 |al, but |are othe|
|000010e0| 72 77 69 73 65 20 69 67 | 6e 6f 72 65 64 2e 0a 58 |rwise ig|nored..X|
|000010f0| 2e 50 50 0a 58 41 6e 20 | 41 57 4b 20 70 72 6f 67 |.PP.XAn |AWK prog|
|00001100| 72 61 6d 20 63 6f 6e 73 | 69 73 74 73 20 6f 66 20 |ram cons|ists of |
|00001110| 61 20 73 65 71 75 65 6e | 63 65 20 6f 66 20 70 61 |a sequen|ce of pa|
|00001120| 74 74 65 72 6e 2d 61 63 | 74 69 6f 6e 20 73 74 61 |ttern-ac|tion sta|
|00001130| 74 65 6d 65 6e 74 73 0a | 58 61 6e 64 20 6f 70 74 |tements.|Xand opt|
|00001140| 69 6f 6e 61 6c 20 66 75 | 6e 63 74 69 6f 6e 20 64 |ional fu|nction d|
|00001150| 65 66 69 6e 69 74 69 6f | 6e 73 2e 0a 58 2e 52 53 |efinitio|ns..X.RS|
|00001160| 0a 58 2e 50 50 0a 58 5c | 66 49 70 61 74 74 65 72 |.X.PP.X\|fIpatter|
|00001170| 6e 5c 66 42 09 7b 20 5c | 66 49 61 63 74 69 6f 6e |n\fB.{ \|fIaction|
|00001180| 20 73 74 61 74 65 6d 65 | 6e 74 73 5c 66 42 20 7d | stateme|nts\fB }|
|00001190| 5c 66 52 0a 58 2e 62 72 | 0a 58 5c 66 42 66 75 6e |\fR.X.br|.X\fBfun|
|000011a0| 63 74 69 6f 6e 20 5c 66 | 49 6e 61 6d 65 5c 66 42 |ction \f|Iname\fB|
|000011b0| 28 5c 66 49 70 61 72 61 | 6d 65 74 65 72 20 6c 69 |(\fIpara|meter li|
|000011c0| 73 74 5c 66 42 29 20 7b | 20 5c 66 49 73 74 61 74 |st\fB) {| \fIstat|
|000011d0| 65 6d 65 6e 74 73 5c 66 | 42 20 7d 5c 66 52 0a 58 |ements\f|B }\fR.X|
|000011e0| 2e 52 45 0a 58 2e 50 50 | 0a 58 2e 49 20 47 61 77 |.RE.X.PP|.X.I Gaw|
|000011f0| 6b 0a 58 66 69 72 73 74 | 20 72 65 61 64 73 20 74 |k.Xfirst| reads t|
|00001200| 68 65 20 70 72 6f 67 72 | 61 6d 20 73 6f 75 72 63 |he progr|am sourc|
|00001210| 65 20 66 72 6f 6d 20 74 | 68 65 0a 58 2e 49 52 20 |e from t|he.X.IR |
|00001220| 70 72 6f 67 72 61 6d 2d | 66 69 6c 65 20 28 73 29 |program-|file (s)|
|00001230| 0a 58 69 66 20 73 70 65 | 63 69 66 69 65 64 2c 20 |.Xif spe|cified, |
|00001240| 6f 72 20 66 72 6f 6d 20 | 74 68 65 20 66 69 72 73 |or from |the firs|
|00001250| 74 20 6e 6f 6e 2d 6f 70 | 74 69 6f 6e 20 61 72 67 |t non-op|tion arg|
|00001260| 75 6d 65 6e 74 20 6f 6e | 20 74 68 65 20 63 6f 6d |ument on| the com|
|00001270| 6d 61 6e 64 20 6c 69 6e | 65 2e 0a 58 54 68 65 0a |mand lin|e..XThe.|
|00001280| 58 2e 42 20 5c 2d 66 0a | 58 6f 70 74 69 6f 6e 20 |X.B \-f.|Xoption |
|00001290| 6d 61 79 20 62 65 20 75 | 73 65 64 20 6d 75 6c 74 |may be u|sed mult|
|000012a0| 69 70 6c 65 20 74 69 6d | 65 73 20 6f 6e 20 74 68 |iple tim|es on th|
|000012b0| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 2e 0a |e comman|d line..|
|000012c0| 58 2e 49 20 47 61 77 6b | 0a 58 77 69 6c 6c 20 72 |X.I Gawk|.Xwill r|
|000012d0| 65 61 64 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |ead the |program |
|000012e0| 74 65 78 74 20 61 73 20 | 69 66 20 61 6c 6c 20 74 |text as |if all t|
|000012f0| 68 65 0a 58 2e 49 52 20 | 70 72 6f 67 72 61 6d 2d |he.X.IR |program-|
|00001300| 66 69 6c 65 20 73 0a 58 | 68 61 64 20 62 65 65 6e |file s.X|had been|
|00001310| 20 63 6f 6e 63 61 74 65 | 6e 61 74 65 64 20 74 6f | concate|nated to|
|00001320| 67 65 74 68 65 72 2e 20 | 20 54 68 69 73 20 69 73 |gether. | This is|
|00001330| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 62 75 69 6c | useful |for buil|
|00001340| 64 69 6e 67 20 6c 69 62 | 72 61 72 69 65 73 0a 58 |ding lib|raries.X|
|00001350| 6f 66 20 41 57 4b 20 66 | 75 6e 63 74 69 6f 6e 73 |of AWK f|unctions|
|00001360| 2c 20 77 69 74 68 6f 75 | 74 20 68 61 76 69 6e 67 |, withou|t having|
|00001370| 20 74 6f 20 69 6e 63 6c | 75 64 65 20 74 68 65 6d | to incl|ude them|
|00001380| 20 69 6e 20 65 61 63 68 | 20 6e 65 77 20 41 57 4b | in each| new AWK|
|00001390| 0a 58 70 72 6f 67 72 61 | 6d 20 74 68 61 74 20 75 |.Xprogra|m that u|
|000013a0| 73 65 73 20 74 68 65 6d | 2e 20 20 54 6f 20 75 73 |ses them|. To us|
|000013b0| 65 20 61 20 6c 69 62 72 | 61 72 79 20 66 75 6e 63 |e a libr|ary func|
|000013c0| 74 69 6f 6e 20 69 6e 20 | 61 20 66 69 6c 65 20 66 |tion in |a file f|
|000013d0| 72 6f 6d 20 61 0a 58 70 | 72 6f 67 72 61 6d 20 74 |rom a.Xp|rogram t|
|000013e0| 79 70 65 64 20 69 6e 20 | 6f 6e 20 74 68 65 20 63 |yped in |on the c|
|000013f0| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 2c 20 73 70 65 |ommand l|ine, spe|
|00001400| 63 69 66 79 0a 58 2e 42 | 20 2f 64 65 76 2f 74 74 |cify.X.B| /dev/tt|
|00001410| 79 0a 58 61 73 20 6f 6e | 65 20 6f 66 20 74 68 65 |y.Xas on|e of the|
|00001420| 0a 58 2e 49 52 20 70 72 | 6f 67 72 61 6d 2d 66 69 |.X.IR pr|ogram-fi|
|00001430| 6c 65 20 73 2c 0a 58 74 | 79 70 65 20 79 6f 75 72 |le s,.Xt|ype your|
|00001440| 20 70 72 6f 67 72 61 6d | 2c 20 61 6e 64 20 65 6e | program|, and en|
|00001450| 64 20 69 74 20 77 69 74 | 68 20 61 0a 58 2e 42 20 |d it wit|h a.X.B |
|00001460| 5e 44 0a 58 28 63 6f 6e | 74 72 6f 6c 2d 64 29 2e |^D.X(con|trol-d).|
|00001470| 0a 58 2e 50 50 0a 58 54 | 68 65 20 65 6e 76 69 72 |.X.PP.XT|he envir|
|00001480| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 0a |onment v|ariable.|
|00001490| 58 2e 42 20 41 57 4b 50 | 41 54 48 0a 58 73 70 65 |X.B AWKP|ATH.Xspe|
|000014a0| 63 69 66 69 65 73 20 61 | 20 73 65 61 72 63 68 20 |cifies a| search |
|000014b0| 70 61 74 68 20 74 6f 20 | 75 73 65 20 77 68 65 6e |path to |use when|
|000014c0| 20 66 69 6e 64 69 6e 67 | 20 73 6f 75 72 63 65 20 | finding| source |
|000014d0| 66 69 6c 65 73 20 6e 61 | 6d 65 64 20 77 69 74 68 |files na|med with|
|000014e0| 0a 58 74 68 65 20 0a 58 | 2e 42 20 5c 2d 66 0a 58 |.Xthe .X|.B \-f.X|
|000014f0| 6f 70 74 69 6f 6e 2e 20 | 20 49 66 20 74 68 69 73 |option. | If this|
|00001500| 20 76 61 72 69 61 62 6c | 65 20 64 6f 65 73 20 6e | variabl|e does n|
|00001510| 6f 74 20 65 78 69 73 74 | 2c 20 74 68 65 20 64 65 |ot exist|, the de|
|00001520| 66 61 75 6c 74 20 70 61 | 74 68 20 69 73 0a 58 5c |fault pa|th is.X\|
|00001530| 66 42 22 2e 3a 2f 75 73 | 72 2f 6c 69 62 2f 61 77 |fB".:/us|r/lib/aw|
|00001540| 6b 3a 2f 75 73 72 2f 6c | 6f 63 61 6c 2f 6c 69 62 |k:/usr/l|ocal/lib|
|00001550| 2f 61 77 6b 22 5c 66 52 | 2e 0a 58 49 66 20 61 20 |/awk"\fR|..XIf a |
|00001560| 66 69 6c 65 20 6e 61 6d | 65 20 67 69 76 65 6e 20 |file nam|e given |
|00001570| 74 6f 20 74 68 65 0a 58 | 2e 42 20 5c 2d 66 0a 58 |to the.X|.B \-f.X|
|00001580| 6f 70 74 69 6f 6e 20 63 | 6f 6e 74 61 69 6e 73 20 |option c|ontains |
|00001590| 61 20 60 60 2f 27 27 20 | 63 68 61 72 61 63 74 65 |a ``/'' |characte|
|000015a0| 72 2c 20 6e 6f 20 70 61 | 74 68 20 73 65 61 72 63 |r, no pa|th searc|
|000015b0| 68 20 69 73 20 70 65 72 | 66 6f 72 6d 65 64 2e 0a |h is per|formed..|
|000015c0| 58 2e 50 50 0a 58 2e 49 | 20 47 61 77 6b 0a 58 63 |X.PP.X.I| Gawk.Xc|
|000015d0| 6f 6d 70 69 6c 65 73 20 | 74 68 65 20 70 72 6f 67 |ompiles |the prog|
|000015e0| 72 61 6d 20 69 6e 74 6f | 20 61 6e 20 69 6e 74 65 |ram into| an inte|
|000015f0| 72 6e 61 6c 20 66 6f 72 | 6d 2c 0a 58 65 78 65 63 |rnal for|m,.Xexec|
|00001600| 75 74 65 73 20 74 68 65 | 20 63 6f 64 65 20 69 6e |utes the| code in|
|00001610| 20 74 68 65 0a 58 2e 42 | 20 42 45 47 49 4e 0a 58 | the.X.B| BEGIN.X|
|00001620| 62 6c 6f 63 6b 28 73 29 | 20 28 69 66 20 61 6e 79 |block(s)| (if any|
|00001630| 29 2c 0a 58 61 6e 64 20 | 74 68 65 6e 20 70 72 6f |),.Xand |then pro|
|00001640| 63 65 65 64 73 20 74 6f | 20 72 65 61 64 0a 58 65 |ceeds to| read.Xe|
|00001650| 61 63 68 20 66 69 6c 65 | 20 6e 61 6d 65 64 20 69 |ach file| named i|
|00001660| 6e 20 74 68 65 0a 58 2e | 42 20 41 52 47 56 0a 58 |n the.X.|B ARGV.X|
|00001670| 61 72 72 61 79 2e 0a 58 | 49 66 20 74 68 65 72 65 |array..X|If there|
|00001680| 20 61 72 65 20 6e 6f 20 | 66 69 6c 65 73 20 6e 61 | are no |files na|
|00001690| 6d 65 64 20 6f 6e 20 74 | 68 65 20 63 6f 6d 6d 61 |med on t|he comma|
|000016a0| 6e 64 20 6c 69 6e 65 2c | 0a 58 2e 49 20 67 61 77 |nd line,|.X.I gaw|
|000016b0| 6b 0a 58 72 65 61 64 73 | 20 74 68 65 20 73 74 61 |k.Xreads| the sta|
|000016c0| 6e 64 61 72 64 20 69 6e | 70 75 74 2e 0a 58 2e 50 |ndard in|put..X.P|
|000016d0| 50 0a 58 49 66 20 61 20 | 60 60 66 69 6c 65 27 27 |P.XIf a |``file''|
|000016e0| 20 6e 61 6d 65 64 20 6f | 6e 20 74 68 65 20 63 6f | named o|n the co|
|000016f0| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 68 61 73 20 74 |mmand li|ne has t|
|00001700| 68 65 20 66 6f 72 6d 0a | 58 2e 49 42 20 76 61 72 |he form.|X.IB var|
|00001710| 20 3d 20 76 61 6c 0a 58 | 69 74 20 69 73 20 74 72 | = val.X|it is tr|
|00001720| 65 61 74 65 64 20 61 73 | 20 61 20 76 61 72 69 61 |eated as| a varia|
|00001730| 62 6c 65 20 61 73 73 69 | 67 6e 6d 65 6e 74 2e 20 |ble assi|gnment. |
|00001740| 54 68 65 20 76 61 72 69 | 61 62 6c 65 0a 58 2e 49 |The vari|able.X.I|
|00001750| 20 76 61 72 0a 58 77 69 | 6c 6c 20 62 65 20 61 73 | var.Xwi|ll be as|
|00001760| 73 69 67 6e 65 64 20 74 | 68 65 20 76 61 6c 75 65 |signed t|he value|
|00001770| 0a 58 2e 49 52 20 76 61 | 6c 20 2e 0a 58 54 68 69 |.X.IR va|l ..XThi|
|00001780| 73 20 69 73 20 6d 6f 73 | 74 20 75 73 65 66 75 6c |s is mos|t useful|
|00001790| 20 66 6f 72 20 64 79 6e | 61 6d 69 63 61 6c 6c 79 | for dyn|amically|
|000017a0| 20 61 73 73 69 67 6e 69 | 6e 67 20 76 61 6c 75 65 | assigni|ng value|
|000017b0| 73 20 74 6f 20 74 68 65 | 20 76 61 72 69 61 62 6c |s to the| variabl|
|000017c0| 65 73 0a 58 41 57 4b 20 | 75 73 65 73 20 74 6f 20 |es.XAWK |uses to |
|000017d0| 63 6f 6e 74 72 6f 6c 20 | 68 6f 77 20 69 6e 70 75 |control |how inpu|
|000017e0| 74 20 69 73 20 62 72 6f | 6b 65 6e 20 69 6e 74 6f |t is bro|ken into|
|000017f0| 20 66 69 65 6c 64 73 20 | 61 6e 64 20 72 65 63 6f | fields |and reco|
|00001800| 72 64 73 2e 20 49 74 0a | 58 69 73 20 61 6c 73 6f |rds. It.|Xis also|
|00001810| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 63 6f 6e 74 | useful |for cont|
|00001820| 72 6f 6c 6c 69 6e 67 20 | 73 74 61 74 65 20 69 66 |rolling |state if|
|00001830| 20 6d 75 6c 74 69 70 6c | 65 20 70 61 73 73 65 73 | multipl|e passes|
|00001840| 20 61 72 65 20 6e 65 65 | 64 65 64 20 6f 76 65 72 | are nee|ded over|
|00001850| 0a 58 61 20 73 69 6e 67 | 6c 65 20 64 61 74 61 20 |.Xa sing|le data |
|00001860| 66 69 6c 65 2e 0a 58 2e | 50 50 0a 58 46 6f 72 20 |file..X.|PP.XFor |
|00001870| 65 61 63 68 20 6c 69 6e | 65 20 69 6e 20 74 68 65 |each lin|e in the|
|00001880| 20 69 6e 70 75 74 2c 0a | 58 2e 49 20 67 61 77 6b | input,.|X.I gawk|
|00001890| 0a 58 74 65 73 74 73 20 | 74 6f 20 73 65 65 20 69 |.Xtests |to see i|
|000018a0| 66 20 69 74 20 6d 61 74 | 63 68 65 73 20 61 6e 79 |f it mat|ches any|
|000018b0| 0a 58 2e 49 20 70 61 74 | 74 65 72 6e 0a 58 69 6e |.X.I pat|tern.Xin|
|000018c0| 20 74 68 65 20 41 57 4b | 20 70 72 6f 67 72 61 6d | the AWK| program|
|000018d0| 2e 0a 58 46 6f 72 20 65 | 61 63 68 20 70 61 74 74 |..XFor e|ach patt|
|000018e0| 65 72 6e 20 74 68 61 74 | 20 74 68 65 20 6c 69 6e |ern that| the lin|
|000018f0| 65 20 6d 61 74 63 68 65 | 73 2c 20 74 68 65 20 61 |e matche|s, the a|
|00001900| 73 73 6f 63 69 61 74 65 | 64 0a 58 2e 49 20 61 63 |ssociate|d.X.I ac|
|00001910| 74 69 6f 6e 0a 58 69 73 | 20 65 78 65 63 75 74 65 |tion.Xis| execute|
|00001920| 64 2e 0a 58 2e 53 48 20 | 56 41 52 49 41 42 4c 45 |d..X.SH |VARIABLE|
|00001930| 53 20 41 4e 44 20 46 49 | 45 4c 44 53 0a 58 41 57 |S AND FI|ELDS.XAW|
|00001940| 4b 20 76 61 72 69 61 62 | 6c 65 73 20 61 72 65 20 |K variab|les are |
|00001950| 64 79 6e 61 6d 69 63 3b | 20 74 68 65 79 20 63 6f |dynamic;| they co|
|00001960| 6d 65 20 69 6e 74 6f 20 | 65 78 69 73 74 65 6e 63 |me into |existenc|
|00001970| 65 20 77 68 65 6e 20 74 | 68 65 79 20 61 72 65 0a |e when t|hey are.|
|00001980| 58 66 69 72 73 74 20 75 | 73 65 64 2e 20 54 68 65 |Xfirst u|sed. The|
|00001990| 69 72 20 76 61 6c 75 65 | 73 20 61 72 65 20 65 69 |ir value|s are ei|
|000019a0| 74 68 65 72 20 66 6c 6f | 61 74 69 6e 67 2d 70 6f |ther flo|ating-po|
|000019b0| 69 6e 74 20 6e 75 6d 62 | 65 72 73 20 6f 72 20 73 |int numb|ers or s|
|000019c0| 74 72 69 6e 67 73 2c 0a | 58 64 65 70 65 6e 64 69 |trings,.|Xdependi|
|000019d0| 6e 67 20 75 70 6f 6e 20 | 68 6f 77 20 74 68 65 79 |ng upon |how they|
|000019e0| 20 61 72 65 20 75 73 65 | 64 2e 20 41 57 4b 20 61 | are use|d. AWK a|
|000019f0| 6c 73 6f 20 68 61 73 20 | 6f 6e 65 20 64 69 6d 65 |lso has |one dime|
|00001a00| 6e 73 69 6f 6e 0a 58 61 | 72 72 61 79 73 3b 20 6d |nsion.Xa|rrays; m|
|00001a10| 75 6c 74 69 70 6c 79 20 | 64 69 6d 65 6e 73 69 6f |ultiply |dimensio|
|00001a20| 6e 65 64 20 61 72 72 61 | 79 73 20 6d 61 79 20 62 |ned arra|ys may b|
|00001a30| 65 20 73 69 6d 75 6c 61 | 74 65 64 2e 0a 58 54 68 |e simula|ted..XTh|
|00001a40| 65 72 65 20 61 72 65 20 | 73 65 76 65 72 61 6c 20 |ere are |several |
|00001a50| 70 72 65 2d 64 65 66 69 | 6e 65 64 20 76 61 72 69 |pre-defi|ned vari|
|00001a60| 61 62 6c 65 73 20 74 68 | 61 74 20 41 57 4b 20 73 |ables th|at AWK s|
|00001a70| 65 74 73 20 61 73 20 61 | 20 70 72 6f 67 72 61 6d |ets as a| program|
|00001a80| 0a 58 72 75 6e 73 3b 20 | 74 68 65 73 65 20 77 69 |.Xruns; |these wi|
|00001a90| 6c 6c 20 62 65 20 64 65 | 73 63 72 69 62 65 64 20 |ll be de|scribed |
|00001aa0| 61 73 20 6e 65 65 64 65 | 64 20 61 6e 64 20 73 75 |as neede|d and su|
|00001ab0| 6d 6d 61 72 69 7a 65 64 | 20 62 65 6c 6f 77 2e 0a |mmarized| below..|
|00001ac0| 58 2e 53 53 20 46 69 65 | 6c 64 73 0a 58 2e 50 50 |X.SS Fie|lds.X.PP|
|00001ad0| 0a 58 41 73 20 65 61 63 | 68 20 69 6e 70 75 74 20 |.XAs eac|h input |
|00001ae0| 6c 69 6e 65 20 69 73 20 | 72 65 61 64 2c 0a 58 2e |line is |read,.X.|
|00001af0| 49 20 67 61 77 6b 0a 58 | 73 70 6c 69 74 73 20 74 |I gawk.X|splits t|
|00001b00| 68 65 20 6c 69 6e 65 20 | 69 6e 74 6f 0a 58 2e 49 |he line |into.X.I|
|00001b10| 52 20 66 69 65 6c 64 73 | 20 2c 0a 58 75 73 69 6e |R fields| ,.Xusin|
|00001b20| 67 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |g the va|lue of t|
|00001b30| 68 65 0a 58 2e 42 20 46 | 53 0a 58 76 61 72 69 61 |he.X.B F|S.Xvaria|
|00001b40| 62 6c 65 20 61 73 20 74 | 68 65 20 66 69 65 6c 64 |ble as t|he field|
|00001b50| 20 73 65 70 61 72 61 74 | 6f 72 2e 0a 58 49 66 0a | separat|or..XIf.|
|00001b60| 58 2e 42 20 46 53 0a 58 | 69 73 20 61 20 73 69 6e |X.B FS.X|is a sin|
|00001b70| 67 6c 65 20 63 68 61 72 | 61 63 74 65 72 2c 20 66 |gle char|acter, f|
|00001b80| 69 65 6c 64 73 20 61 72 | 65 20 73 65 70 61 72 61 |ields ar|e separa|
|00001b90| 74 65 64 20 62 79 20 74 | 68 61 74 20 63 68 61 72 |ted by t|hat char|
|00001ba0| 61 63 74 65 72 2e 0a 58 | 4f 74 68 65 72 77 69 73 |acter..X|Otherwis|
|00001bb0| 65 2c 0a 58 2e 42 20 46 | 53 0a 58 69 73 20 65 78 |e,.X.B F|S.Xis ex|
|00001bc0| 70 65 63 74 65 64 20 74 | 6f 20 62 65 20 61 20 66 |pected t|o be a f|
|00001bd0| 75 6c 6c 20 72 65 67 75 | 6c 61 72 20 65 78 70 72 |ull regu|lar expr|
|00001be0| 65 73 73 69 6f 6e 2e 0a | 58 49 6e 20 74 68 65 20 |ession..|XIn the |
|00001bf0| 73 70 65 63 69 61 6c 20 | 63 61 73 65 20 74 68 61 |special |case tha|
|00001c00| 74 0a 58 2e 42 20 46 53 | 0a 58 69 73 20 61 20 73 |t.X.B FS|.Xis a s|
|00001c10| 69 6e 67 6c 65 20 62 6c | 61 6e 6b 2c 20 66 69 65 |ingle bl|ank, fie|
|00001c20| 6c 64 73 20 61 72 65 20 | 73 65 70 61 72 61 74 65 |lds are |separate|
|00001c30| 64 0a 58 62 79 20 72 75 | 6e 73 20 6f 66 20 62 6c |d.Xby ru|ns of bl|
|00001c40| 61 6e 6b 73 20 61 6e 64 | 2f 6f 72 20 74 61 62 73 |anks and|/or tabs|
|00001c50| 2e 0a 58 4e 6f 74 65 20 | 74 68 61 74 20 74 68 65 |..XNote |that the|
|00001c60| 20 76 61 6c 75 65 20 6f | 66 0a 58 2e 42 20 49 47 | value o|f.X.B IG|
|00001c70| 4e 4f 52 45 43 41 53 45 | 0a 58 28 73 65 65 20 62 |NORECASE|.X(see b|
|00001c80| 65 6c 6f 77 29 20 77 69 | 6c 6c 20 61 6c 73 6f 20 |elow) wi|ll also |
|00001c90| 61 66 66 65 63 74 20 68 | 6f 77 20 66 69 65 6c 64 |affect h|ow field|
|00001ca0| 73 20 61 72 65 20 73 70 | 6c 69 74 20 77 68 65 6e |s are sp|lit when|
|00001cb0| 0a 58 2e 42 20 46 53 0a | 58 69 73 20 61 20 72 65 |.X.B FS.|Xis a re|
|00001cc0| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|00001cd0| 2e 0a 58 2e 50 50 0a 58 | 45 61 63 68 20 66 69 65 |..X.PP.X|Each fie|
|00001ce0| 6c 64 20 69 6e 20 74 68 | 65 20 69 6e 70 75 74 20 |ld in th|e input |
|00001cf0| 6c 69 6e 65 20 6d 61 79 | 20 62 65 20 72 65 66 65 |line may| be refe|
|00001d00| 72 65 6e 63 65 64 20 62 | 79 20 69 74 73 20 70 6f |renced b|y its po|
|00001d10| 73 69 74 69 6f 6e 2c 0a | 58 2e 42 52 20 24 31 20 |sition,.|X.BR $1 |
|00001d20| 2c 0a 58 2e 42 52 20 24 | 32 20 2c 0a 58 61 6e 64 |,.X.BR $|2 ,.Xand|
|00001d30| 20 73 6f 20 6f 6e 2e 0a | 58 2e 42 20 24 30 0a 58 | so on..|X.B $0.X|
|00001d40| 69 73 20 74 68 65 20 77 | 68 6f 6c 65 20 6c 69 6e |is the w|hole lin|
|00001d50| 65 2e 20 54 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |e. The v|alue of |
|00001d60| 61 20 66 69 65 6c 64 20 | 6d 61 79 20 62 65 20 61 |a field |may be a|
|00001d70| 73 73 69 67 6e 65 64 20 | 74 6f 20 61 73 20 77 65 |ssigned |to as we|
|00001d80| 6c 6c 2e 0a 58 46 69 65 | 6c 64 73 20 6e 65 65 64 |ll..XFie|lds need|
|00001d90| 20 6e 6f 74 20 62 65 20 | 72 65 66 65 72 65 6e 63 | not be |referenc|
|00001da0| 65 64 20 62 79 20 63 6f | 6e 73 74 61 6e 74 73 3a |ed by co|nstants:|
|00001db0| 0a 58 2e 52 53 0a 58 2e | 50 50 0a 58 2e 66 74 20 |.X.RS.X.|PP.X.ft |
|00001dc0| 42 0a 58 6e 20 3d 20 35 | 0a 58 2e 62 72 0a 58 70 |B.Xn = 5|.X.br.Xp|
|00001dd0| 72 69 6e 74 20 24 6e 0a | 58 2e 66 74 20 52 0a 58 |rint $n.|X.ft R.X|
|00001de0| 2e 52 45 0a 58 2e 50 50 | 0a 58 70 72 69 6e 74 73 |.RE.X.PP|.Xprints|
|00001df0| 20 74 68 65 20 66 69 66 | 74 68 20 66 69 65 6c 64 | the fif|th field|
|00001e00| 20 69 6e 20 74 68 65 20 | 69 6e 70 75 74 20 6c 69 | in the |input li|
|00001e10| 6e 65 2e 0a 58 54 68 65 | 20 76 61 72 69 61 62 6c |ne..XThe| variabl|
|00001e20| 65 0a 58 2e 42 20 4e 46 | 0a 58 69 73 20 73 65 74 |e.X.B NF|.Xis set|
|00001e30| 20 74 6f 20 74 68 65 20 | 74 6f 74 61 6c 20 6e 75 | to the |total nu|
|00001e40| 6d 62 65 72 20 6f 66 20 | 66 69 65 6c 64 73 20 69 |mber of |fields i|
|00001e50| 6e 20 74 68 65 20 69 6e | 70 75 74 20 6c 69 6e 65 |n the in|put line|
|00001e60| 2e 0a 58 2e 50 50 0a 58 | 52 65 66 65 72 65 6e 63 |..X.PP.X|Referenc|
|00001e70| 65 73 20 74 6f 20 6e 6f | 6e 2d 65 78 69 73 74 65 |es to no|n-existe|
|00001e80| 6e 74 20 66 69 65 6c 64 | 73 20 28 69 2e 65 2e 20 |nt field|s (i.e. |
|00001e90| 66 69 65 6c 64 73 20 61 | 66 74 65 72 0a 58 2e 42 |fields a|fter.X.B|
|00001ea0| 52 20 24 4e 46 20 29 2c | 0a 58 70 72 6f 64 75 63 |R $NF ),|.Xproduc|
|00001eb0| 65 20 74 68 65 20 6e 75 | 6c 6c 2d 73 74 72 69 6e |e the nu|ll-strin|
|00001ec0| 67 2e 20 48 6f 77 65 76 | 65 72 2c 20 61 73 73 69 |g. Howev|er, assi|
|00001ed0| 67 6e 69 6e 67 20 74 6f | 20 61 20 6e 6f 6e 2d 65 |gning to| a non-e|
|00001ee0| 78 69 73 74 65 6e 74 20 | 66 69 65 6c 64 0a 58 28 |xistent |field.X(|
|00001ef0| 65 2e 67 2e 2c 20 0a 58 | 2e 42 52 20 22 24 28 4e |e.g., .X|.BR "$(N|
|00001f00| 46 2b 32 29 20 3d 20 35 | 22 20 29 0a 58 77 69 6c |F+2) = 5|" ).Xwil|
|00001f10| 6c 20 69 6e 63 72 65 61 | 73 65 20 74 68 65 20 76 |l increa|se the v|
|00001f20| 61 6c 75 65 20 6f 66 0a | 58 2e 42 52 20 4e 46 20 |alue of.|X.BR NF |
|00001f30| 2c 0a 58 63 72 65 61 74 | 65 20 61 6e 79 20 69 6e |,.Xcreat|e any in|
|00001f40| 74 65 72 76 65 6e 69 6e | 67 20 66 69 65 6c 64 73 |tervenin|g fields|
|00001f50| 20 77 69 74 68 20 74 68 | 65 20 6e 75 6c 6c 20 73 | with th|e null s|
|00001f60| 74 72 69 6e 67 20 61 73 | 20 74 68 65 69 72 20 76 |tring as| their v|
|00001f70| 61 6c 75 65 2c 20 61 6e | 64 0a 58 63 61 75 73 65 |alue, an|d.Xcause|
|00001f80| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 0a 58 2e | the val|ue of.X.|
|00001f90| 42 20 24 30 0a 58 74 6f | 20 62 65 20 72 65 63 6f |B $0.Xto| be reco|
|00001fa0| 6d 70 75 74 65 64 2c 20 | 77 69 74 68 20 74 68 65 |mputed, |with the|
|00001fb0| 20 66 69 65 6c 64 73 20 | 62 65 69 6e 67 20 73 65 | fields |being se|
|00001fc0| 70 61 72 61 74 65 64 20 | 62 79 20 74 68 65 20 76 |parated |by the v|
|00001fd0| 61 6c 75 65 20 6f 66 0a | 58 2e 42 52 20 4f 46 53 |alue of.|X.BR OFS|
|00001fe0| 20 2e 0a 58 2e 53 53 20 | 42 75 69 6c 74 2d 69 6e | ..X.SS |Built-in|
|00001ff0| 20 56 61 72 69 61 62 6c | 65 73 0a 58 2e 50 50 0a | Variabl|es.X.PP.|
|00002000| 58 41 57 4b 27 73 20 62 | 75 69 6c 74 2d 69 6e 20 |XAWK's b|uilt-in |
|00002010| 76 61 72 69 61 62 6c 65 | 73 20 61 72 65 3a 0a 58 |variable|s are:.X|
|00002020| 2e 50 50 0a 58 2e 52 53 | 0a 58 2e 54 50 20 5c 6c |.PP.X.RS|.X.TP \l|
|00002030| 27 5c 66 42 49 47 4e 4f | 52 45 43 41 53 45 5c 66 |'\fBIGNO|RECASE\f|
|00002040| 52 27 0a 58 2e 42 20 41 | 52 47 43 0a 58 74 68 65 |R'.X.B A|RGC.Xthe|
|00002050| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 6f 6d 6d 61 | number |of comma|
|00002060| 6e 64 20 6c 69 6e 65 20 | 61 72 67 75 6d 65 6e 74 |nd line |argument|
|00002070| 73 20 28 64 6f 65 73 20 | 6e 6f 74 20 69 6e 63 6c |s (does |not incl|
|00002080| 75 64 65 20 6f 70 74 69 | 6f 6e 73 20 74 6f 0a 58 |ude opti|ons to.X|
|00002090| 2e 49 52 20 67 61 77 6b | 20 2c 0a 58 6f 72 20 74 |.IR gawk| ,.Xor t|
|000020a0| 68 65 20 70 72 6f 67 72 | 61 6d 20 73 6f 75 72 63 |he progr|am sourc|
|000020b0| 65 29 2e 0a 58 2e 54 50 | 20 5c 6c 27 5c 66 42 49 |e)..X.TP| \l'\fBI|
|000020c0| 47 4e 4f 52 45 43 41 53 | 45 5c 66 52 27 0a 58 2e |GNORECAS|E\fR'.X.|
|000020d0| 42 20 41 52 47 56 0a 58 | 61 72 72 61 79 20 6f 66 |B ARGV.X|array of|
|000020e0| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 61 72 | command| line ar|
|000020f0| 67 75 6d 65 6e 74 73 2e | 20 54 68 65 20 61 72 72 |guments.| The arr|
|00002100| 61 79 20 69 73 20 69 6e | 64 65 78 65 64 20 66 72 |ay is in|dexed fr|
|00002110| 6f 6d 0a 58 30 20 74 6f | 0a 58 2e 42 20 41 52 47 |om.X0 to|.X.B ARG|
|00002120| 43 0a 58 5c 2d 20 31 2e | 0a 58 44 79 6e 61 6d 69 |C.X\- 1.|.XDynami|
|00002130| 63 61 6c 6c 79 20 63 68 | 61 6e 67 69 6e 67 20 74 |cally ch|anging t|
|00002140| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 0a 58 |he conte|nts of.X|
|00002150| 2e 42 20 41 52 47 56 0a | 58 63 61 6e 20 63 6f 6e |.B ARGV.|Xcan con|
|00002160| 74 72 6f 6c 20 74 68 65 | 20 66 69 6c 65 73 20 75 |trol the| files u|
|00002170| 73 65 64 20 66 6f 72 20 | 64 61 74 61 2e 0a 58 2e |sed for |data..X.|
|00002180| 54 50 20 5c 6c 27 5c 66 | 42 49 47 4e 4f 52 45 43 |TP \l'\f|BIGNOREC|
|00002190| 41 53 45 5c 66 52 27 0a | 58 2e 42 20 45 4e 56 49 |ASE\fR'.|X.B ENVI|
|000021a0| 52 4f 4e 0a 58 41 6e 20 | 61 72 72 61 79 20 63 6f |RON.XAn |array co|
|000021b0| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 76 61 6c |ntaining| the val|
|000021c0| 75 65 73 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |ues of t|he curre|
|000021d0| 6e 74 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 2e 0a |nt envir|onment..|
|000021e0| 58 54 68 65 20 61 72 72 | 61 79 20 69 73 20 69 6e |XThe arr|ay is in|
|000021f0| 64 65 78 65 64 20 62 79 | 20 74 68 65 20 65 6e 76 |dexed by| the env|
|00002200| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00002210| 65 73 2c 20 65 61 63 68 | 20 65 6c 65 6d 65 6e 74 |es, each| element|
|00002220| 20 62 65 69 6e 67 0a 58 | 74 68 65 20 76 61 6c 75 | being.X|the valu|
|00002230| 65 20 6f 66 20 74 68 61 | 74 20 76 61 72 69 61 62 |e of tha|t variab|
|00002240| 6c 65 20 28 65 2e 67 2e | 2c 20 5c 66 42 45 4e 56 |le (e.g.|, \fBENV|
|00002250| 49 52 4f 4e 5b 22 48 4f | 4d 45 22 5d 5c 66 50 20 |IRON["HO|ME"]\fP |
|00002260| 6d 69 67 68 74 20 62 65 | 0a 58 2e 42 52 20 2f 75 |might be|.X.BR /u|
|00002270| 2f 61 72 6e 6f 6c 64 20 | 29 2e 0a 58 43 68 61 6e |/arnold |)..XChan|
|00002280| 67 69 6e 67 20 74 68 69 | 73 20 61 72 72 61 79 20 |ging thi|s array |
|00002290| 64 6f 65 73 20 6e 6f 74 | 20 61 66 66 65 63 74 20 |does not| affect |
|000022a0| 74 68 65 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |the envi|ronment |
|000022b0| 73 65 65 6e 20 62 79 20 | 70 72 6f 67 72 61 6d 73 |seen by |programs|
|000022c0| 20 77 68 69 63 68 0a 58 | 2e 49 20 67 61 77 6b 0a | which.X|.I gawk.|
|000022d0| 58 73 70 61 77 6e 73 20 | 76 69 61 20 72 65 64 69 |Xspawns |via redi|
|000022e0| 72 65 63 74 69 6f 6e 20 | 6f 72 20 74 68 65 0a 58 |rection |or the.X|
|000022f0| 2e 42 20 73 79 73 74 65 | 6d 0a 58 66 75 6e 63 74 |.B syste|m.Xfunct|
|00002300| 69 6f 6e 2e 0a 58 28 54 | 68 69 73 20 6d 61 79 20 |ion..X(T|his may |
|00002310| 63 68 61 6e 67 65 20 69 | 6e 20 61 20 66 75 74 75 |change i|n a futu|
|00002320| 72 65 20 76 65 72 73 69 | 6f 6e 20 6f 66 0a 58 2e |re versi|on of.X.|
|00002330| 49 52 20 67 61 77 6b 20 | 2e 29 0a 58 2e 54 50 20 |IR gawk |.).X.TP |
|00002340| 5c 6c 27 5c 66 42 49 47 | 4e 4f 52 45 43 41 53 45 |\l'\fBIG|NORECASE|
|00002350| 5c 66 52 27 0a 58 2e 42 | 20 46 49 4c 45 4e 41 4d |\fR'.X.B| FILENAM|
|00002360| 45 0a 58 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |E.Xthe n|ame of t|
|00002370| 68 65 20 63 75 72 72 65 | 6e 74 20 69 6e 70 75 74 |he curre|nt input|
|00002380| 20 66 69 6c 65 2e 0a 58 | 49 66 20 6e 6f 20 66 69 | file..X|If no fi|
|00002390| 6c 65 73 20 61 72 65 20 | 73 70 65 63 69 66 69 65 |les are |specifie|
|000023a0| 64 20 6f 6e 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |d on the| command|
|000023b0| 20 6c 69 6e 65 2c 20 74 | 68 65 20 76 61 6c 75 65 | line, t|he value|
|000023c0| 20 6f 66 0a 58 2e 42 20 | 46 49 4c 45 4e 41 4d 45 | of.X.B |FILENAME|
|000023d0| 0a 58 69 73 20 60 60 5c | 2d 27 27 2e 0a 58 2e 54 |.Xis ``\|-''..X.T|
|000023e0| 50 20 5c 6c 27 5c 66 42 | 49 47 4e 4f 52 45 43 41 |P \l'\fB|IGNORECA|
|000023f0| 53 45 5c 66 52 27 0a 58 | 2e 42 20 46 4e 52 0a 58 |SE\fR'.X|.B FNR.X|
|00002400| 74 68 65 20 69 6e 70 75 | 74 20 72 65 63 6f 72 64 |the inpu|t record|
|00002410| 20 6e 75 6d 62 65 72 20 | 69 6e 20 74 68 65 20 63 | number |in the c|
|00002420| 75 72 72 65 6e 74 20 69 | 6e 70 75 74 20 66 69 6c |urrent i|nput fil|
|00002430| 65 2e 0a 58 2e 54 50 20 | 5c 6c 27 5c 66 42 49 47 |e..X.TP |\l'\fBIG|
|00002440| 4e 4f 52 45 43 41 53 45 | 5c 66 52 27 0a 58 2e 42 |NORECASE|\fR'.X.B|
|00002450| 20 46 53 0a 58 74 68 65 | 20 69 6e 70 75 74 20 66 | FS.Xthe| input f|
|00002460| 69 65 6c 64 20 73 65 70 | 61 72 61 74 6f 72 2c 20 |ield sep|arator, |
|00002470| 61 20 62 6c 61 6e 6b 20 | 62 79 20 64 65 66 61 75 |a blank |by defau|
|00002480| 6c 74 2e 0a 58 2e 54 50 | 20 5c 6c 27 5c 66 42 49 |lt..X.TP| \l'\fBI|
|00002490| 47 4e 4f 52 45 43 41 53 | 45 5c 66 52 27 0a 58 2e |GNORECAS|E\fR'.X.|
|000024a0| 42 20 49 47 4e 4f 52 45 | 43 41 53 45 0a 58 43 6f |B IGNORE|CASE.XCo|
|000024b0| 6e 74 72 6f 6c 73 20 74 | 68 65 20 63 61 73 65 2d |ntrols t|he case-|
|000024c0| 73 65 6e 73 69 74 69 76 | 69 74 79 20 6f 66 20 61 |sensitiv|ity of a|
|000024d0| 6c 6c 20 72 65 67 75 6c | 61 72 20 65 78 70 72 65 |ll regul|ar expre|
|000024e0| 73 73 69 6f 6e 20 6f 70 | 65 72 61 74 69 6f 6e 73 |ssion op|erations|
|000024f0| 2e 20 49 66 0a 58 2e 42 | 20 49 47 4e 4f 52 45 43 |. If.X.B| IGNOREC|
|00002500| 41 53 45 0a 58 68 61 73 | 20 61 20 6e 6f 6e 2d 7a |ASE.Xhas| a non-z|
|00002510| 65 72 6f 20 76 61 6c 75 | 65 2c 20 74 68 65 6e 20 |ero valu|e, then |
|00002520| 70 61 74 74 65 72 6e 20 | 6d 61 74 63 68 69 6e 67 |pattern |matching|
|00002530| 20 69 6e 20 72 75 6c 65 | 73 2c 0a 58 66 69 65 6c | in rule|s,.Xfiel|
|00002540| 64 20 73 70 6c 69 74 74 | 69 6e 67 20 77 69 74 68 |d splitt|ing with|
|00002550| 0a 58 2e 42 52 20 46 53 | 20 2c 0a 58 72 65 67 75 |.X.BR FS| ,.Xregu|
|00002560| 6c 61 72 20 65 78 70 72 | 65 73 73 69 6f 6e 0a 58 |lar expr|ession.X|
|00002570| 6d 61 74 63 68 69 6e 67 | 20 77 69 74 68 0a 58 2e |matching| with.X.|
|00002580| 42 20 7e 0a 58 61 6e 64 | 0a 58 2e 42 52 20 21 7e |B ~.Xand|.X.BR !~|
|00002590| 20 2c 0a 58 61 6e 64 20 | 74 68 65 0a 58 2e 42 52 | ,.Xand |the.X.BR|
|000025a0| 20 67 73 75 62 28 29 20 | 2c 0a 58 2e 42 52 20 69 | gsub() |,.X.BR i|
|000025b0| 6e 64 65 78 28 29 20 2c | 0a 58 2e 42 52 20 6d 61 |ndex() ,|.X.BR ma|
|000025c0| 74 63 68 28 29 20 2c 0a | 58 2e 42 52 20 73 70 6c |tch() ,.|X.BR spl|
|000025d0| 69 74 28 29 20 2c 0a 58 | 61 6e 64 0a 58 2e 42 20 |it() ,.X|and.X.B |
|000025e0| 73 75 62 28 29 0a 58 70 | 72 65 2d 64 65 66 69 6e |sub().Xp|re-defin|
|000025f0| 65 64 20 66 75 6e 63 74 | 69 6f 6e 73 20 77 69 6c |ed funct|ions wil|
|00002600| 6c 20 61 6c 6c 20 69 67 | 6e 6f 72 65 20 63 61 73 |l all ig|nore cas|
|00002610| 65 20 77 68 65 6e 20 64 | 6f 69 6e 67 20 72 65 67 |e when d|oing reg|
|00002620| 75 6c 61 72 20 65 78 70 | 72 65 73 73 69 6f 6e 0a |ular exp|ression.|
|00002630| 58 6f 70 65 72 61 74 69 | 6f 6e 73 2e 20 20 54 68 |Xoperati|ons. Th|
|00002640| 75 73 2c 20 69 66 0a 58 | 2e 42 20 49 47 4e 4f 52 |us, if.X|.B IGNOR|
|00002650| 45 43 41 53 45 0a 58 69 | 73 20 6e 6f 74 20 65 71 |ECASE.Xi|s not eq|
|00002660| 75 61 6c 20 74 6f 20 7a | 65 72 6f 2c 0a 58 2e 42 |ual to z|ero,.X.B|
|00002670| 20 2f 61 42 2f 0a 58 6d | 61 74 63 68 65 73 20 61 | /aB/.Xm|atches a|
|00002680| 6c 6c 20 6f 66 20 74 68 | 65 20 73 74 72 69 6e 67 |ll of th|e string|
|00002690| 73 20 5c 66 42 22 61 62 | 22 5c 66 50 2c 20 5c 66 |s \fB"ab|"\fP, \f|
|000026a0| 42 22 61 42 22 5c 66 50 | 2c 20 5c 66 42 22 41 62 |B"aB"\fP|, \fB"Ab|
|000026b0| 22 5c 66 50 2c 0a 58 61 | 6e 64 20 5c 66 42 22 41 |"\fP,.Xa|nd \fB"A|
|000026c0| 42 22 5c 66 50 2e 0a 58 | 41 73 20 77 69 74 68 20 |B"\fP..X|As with |
|000026d0| 61 6c 6c 20 41 57 4b 20 | 76 61 72 69 61 62 6c 65 |all AWK |variable|
|000026e0| 73 2c 20 74 68 65 20 69 | 6e 69 74 69 61 6c 20 76 |s, the i|nitial v|
|000026f0| 61 6c 75 65 20 6f 66 0a | 58 2e 42 20 49 47 4e 4f |alue of.|X.B IGNO|
|00002700| 52 45 43 41 53 45 0a 58 | 69 73 20 7a 65 72 6f 2c |RECASE.X|is zero,|
|00002710| 20 73 6f 20 61 6c 6c 20 | 72 65 67 75 6c 61 72 20 | so all |regular |
|00002720| 65 78 70 72 65 73 73 69 | 6f 6e 20 6f 70 65 72 61 |expressi|on opera|
|00002730| 74 69 6f 6e 73 20 61 72 | 65 20 6e 6f 72 6d 61 6c |tions ar|e normal|
|00002740| 6c 79 20 63 61 73 65 2d | 73 65 6e 73 69 74 69 76 |ly case-|sensitiv|
|00002750| 65 2e 0a 58 2e 54 50 20 | 5c 6c 27 5c 66 42 49 47 |e..X.TP |\l'\fBIG|
|00002760| 4e 4f 52 45 43 41 53 45 | 5c 66 52 27 0a 58 2e 42 |NORECASE|\fR'.X.B|
|00002770| 20 4e 46 0a 58 74 68 65 | 20 6e 75 6d 62 65 72 20 | NF.Xthe| number |
|00002780| 6f 66 20 66 69 65 6c 64 | 73 20 69 6e 20 74 68 65 |of field|s in the|
|00002790| 20 63 75 72 72 65 6e 74 | 20 69 6e 70 75 74 20 72 | current| input r|
|000027a0| 65 63 6f 72 64 2e 0a 58 | 2e 54 50 20 5c 6c 27 5c |ecord..X|.TP \l'\|
|000027b0| 66 42 49 47 4e 4f 52 45 | 43 41 53 45 5c 66 52 27 |fBIGNORE|CASE\fR'|
|000027c0| 0a 58 2e 42 20 4e 52 0a | 58 74 68 65 20 74 6f 74 |.X.B NR.|Xthe tot|
|000027d0| 61 6c 20 6e 75 6d 62 65 | 72 20 6f 66 20 69 6e 70 |al numbe|r of inp|
|000027e0| 75 74 20 72 65 63 6f 72 | 64 73 20 73 65 65 6e 20 |ut recor|ds seen |
|000027f0| 73 6f 20 66 61 72 2e 0a | 58 2e 54 50 20 5c 6c 27 |so far..|X.TP \l'|
|00002800| 5c 66 42 49 47 4e 4f 52 | 45 43 41 53 45 5c 66 52 |\fBIGNOR|ECASE\fR|
|00002810| 27 0a 58 2e 42 20 4f 46 | 4d 54 0a 58 74 68 65 20 |'.X.B OF|MT.Xthe |
|00002820| 6f 75 74 70 75 74 20 66 | 6f 72 6d 61 74 20 66 6f |output f|ormat fo|
|00002830| 72 20 6e 75 6d 62 65 72 | 73 2c 0a 58 2e 42 20 25 |r number|s,.X.B %|
|00002840| 2e 36 67 0a 58 62 79 20 | 64 65 66 61 75 6c 74 2e |.6g.Xby |default.|
|00002850| 0a 58 2e 54 50 20 5c 6c | 27 5c 66 42 49 47 4e 4f |.X.TP \l|'\fBIGNO|
|00002860| 52 45 43 41 53 45 5c 66 | 52 27 0a 58 2e 42 20 4f |RECASE\f|R'.X.B O|
|00002870| 46 53 0a 58 74 68 65 20 | 6f 75 74 70 75 74 20 66 |FS.Xthe |output f|
|00002880| 69 65 6c 64 20 73 65 70 | 61 72 61 74 6f 72 2c 20 |ield sep|arator, |
|00002890| 61 20 62 6c 61 6e 6b 20 | 62 79 20 64 65 66 61 75 |a blank |by defau|
|000028a0| 6c 74 2e 0a 58 2e 54 50 | 20 5c 6c 27 5c 66 42 49 |lt..X.TP| \l'\fBI|
|000028b0| 47 4e 4f 52 45 43 41 53 | 45 5c 66 52 27 0a 58 2e |GNORECAS|E\fR'.X.|
|000028c0| 42 20 4f 52 53 0a 58 74 | 68 65 20 6f 75 74 70 75 |B ORS.Xt|he outpu|
|000028d0| 74 20 72 65 63 6f 72 64 | 20 73 65 70 61 72 61 74 |t record| separat|
|000028e0| 6f 72 2c 20 62 79 20 64 | 65 66 61 75 6c 74 20 61 |or, by d|efault a|
|000028f0| 20 6e 65 77 6c 69 6e 65 | 2e 0a 58 2e 54 50 20 5c | newline|..X.TP \|
|00002900| 6c 27 5c 66 42 49 47 4e | 4f 52 45 43 41 53 45 5c |l'\fBIGN|ORECASE\|
|00002910| 66 52 27 0a 58 2e 42 20 | 52 53 0a 58 74 68 65 20 |fR'.X.B |RS.Xthe |
|00002920| 69 6e 70 75 74 20 72 65 | 63 6f 72 64 20 73 65 70 |input re|cord sep|
|00002930| 61 72 61 74 6f 72 2c 20 | 62 79 20 64 65 66 61 75 |arator, |by defau|
|00002940| 6c 74 20 61 20 6e 65 77 | 6c 69 6e 65 2e 0a 58 2e |lt a new|line..X.|
|00002950| 42 20 52 53 0a 58 69 73 | 20 65 78 63 65 70 74 69 |B RS.Xis| excepti|
|00002960| 6f 6e 61 6c 20 69 6e 20 | 74 68 61 74 20 6f 6e 6c |onal in |that onl|
|00002970| 79 20 74 68 65 20 66 69 | 72 73 74 20 63 68 61 72 |y the fi|rst char|
|00002980| 61 63 74 65 72 20 6f 66 | 20 69 74 73 20 73 74 72 |acter of| its str|
|00002990| 69 6e 67 0a 58 76 61 6c | 75 65 20 69 73 20 75 73 |ing.Xval|ue is us|
|000029a0| 65 64 20 66 6f 72 20 73 | 65 70 61 72 61 74 69 6e |ed for s|eparatin|
|000029b0| 67 20 72 65 63 6f 72 64 | 73 2e 20 49 66 0a 58 2e |g record|s. If.X.|
|000029c0| 42 20 52 53 0a 58 69 73 | 20 73 65 74 20 74 6f 20 |B RS.Xis| set to |
|000029d0| 74 68 65 20 6e 75 6c 6c | 20 73 74 72 69 6e 67 2c |the null| string,|
|000029e0| 20 74 68 65 6e 20 72 65 | 63 6f 72 64 73 20 61 72 | then re|cords ar|
|000029f0| 65 20 73 65 70 61 72 61 | 74 65 64 20 62 79 0a 58 |e separa|ted by.X|
|00002a00| 62 6c 61 6e 6b 20 6c 69 | 6e 65 73 2e 0a 58 57 68 |blank li|nes..XWh|
|00002a10| 65 6e 0a 58 2e 42 20 52 | 53 0a 58 69 73 20 73 65 |en.X.B R|S.Xis se|
|00002a20| 74 20 74 6f 20 74 68 65 | 20 6e 75 6c 6c 20 73 74 |t to the| null st|
|00002a30| 72 69 6e 67 2c 20 74 68 | 65 6e 20 74 68 65 20 6e |ring, th|en the n|
|00002a40| 65 77 6c 69 6e 65 20 63 | 68 61 72 61 63 74 65 72 |ewline c|haracter|
|00002a50| 20 61 6c 77 61 79 73 20 | 61 63 74 73 20 61 73 0a | always |acts as.|
|00002a60| 58 61 20 66 69 65 6c 64 | 20 73 65 70 61 72 61 74 |Xa field| separat|
|00002a70| 6f 72 2c 20 69 6e 20 61 | 64 64 69 74 69 6f 6e 20 |or, in a|ddition |
|00002a80| 74 6f 20 77 68 61 74 65 | 76 65 72 20 76 61 6c 75 |to whate|ver valu|
|00002a90| 65 0a 58 2e 42 20 46 53 | 0a 58 6d 61 79 20 68 61 |e.X.B FS|.Xmay ha|
|00002aa0| 76 65 2e 0a 58 2e 54 50 | 20 5c 6c 27 5c 66 42 49 |ve..X.TP| \l'\fBI|
|00002ab0| 47 4e 4f 52 45 43 41 53 | 45 5c 66 52 27 0a 58 2e |GNORECAS|E\fR'.X.|
|00002ac0| 42 20 52 53 54 41 52 54 | 0a 58 74 68 65 20 69 6e |B RSTART|.Xthe in|
|00002ad0| 64 65 78 20 6f 66 20 74 | 68 65 20 66 69 72 73 74 |dex of t|he first|
|00002ae0| 20 63 68 61 72 61 63 74 | 65 72 20 6d 61 74 63 68 | charact|er match|
|00002af0| 65 64 20 62 79 0a 58 2e | 42 52 20 6d 61 74 63 68 |ed by.X.|BR match|
|00002b00| 28 29 20 3b 0a 58 30 20 | 69 66 20 6e 6f 20 6d 61 |() ;.X0 |if no ma|
|00002b10| 74 63 68 2e 0a 58 2e 54 | 50 20 5c 6c 27 5c 66 42 |tch..X.T|P \l'\fB|
|00002b20| 49 47 4e 4f 52 45 43 41 | 53 45 5c 66 52 27 0a 58 |IGNORECA|SE\fR'.X|
|00002b30| 2e 42 20 52 4c 45 4e 47 | 54 48 0a 58 74 68 65 20 |.B RLENG|TH.Xthe |
|00002b40| 6c 65 6e 67 74 68 20 6f | 66 20 74 68 65 20 73 74 |length o|f the st|
|00002b50| 72 69 6e 67 20 6d 61 74 | 63 68 65 64 20 62 79 0a |ring mat|ched by.|
|00002b60| 58 2e 42 52 20 6d 61 74 | 63 68 28 29 20 3b 0a 58 |X.BR mat|ch() ;.X|
|00002b70| 5c 2d 31 20 69 66 20 6e | 6f 20 6d 61 74 63 68 2e |\-1 if n|o match.|
|00002b80| 0a 58 2e 54 50 20 5c 6c | 27 5c 66 42 49 47 4e 4f |.X.TP \l|'\fBIGNO|
|00002b90| 52 45 43 41 53 45 5c 66 | 52 27 0a 58 2e 42 20 53 |RECASE\f|R'.X.B S|
|00002ba0| 55 42 53 45 50 0a 58 74 | 68 65 20 63 68 61 72 61 |UBSEP.Xt|he chara|
|00002bb0| 63 74 65 72 20 75 73 65 | 64 20 74 6f 20 73 65 70 |cter use|d to sep|
|00002bc0| 61 72 61 74 65 20 6d 75 | 6c 74 69 70 6c 65 20 73 |arate mu|ltiple s|
|00002bd0| 75 62 73 63 72 69 70 74 | 73 20 69 6e 20 61 72 72 |ubscript|s in arr|
|00002be0| 61 79 0a 58 65 6c 65 6d | 65 6e 74 73 2c 20 62 79 |ay.Xelem|ents, by|
|00002bf0| 20 64 65 66 61 75 6c 74 | 20 5c 66 42 22 5c 65 30 | default| \fB"\e0|
|00002c00| 33 34 22 5c 66 52 2e 0a | 58 2e 52 45 0a 58 2e 53 |34"\fR..|X.RE.X.S|
|00002c10| 53 20 41 72 72 61 79 73 | 0a 58 2e 50 50 0a 58 41 |S Arrays|.X.PP.XA|
|00002c20| 72 72 61 79 73 20 61 72 | 65 20 73 75 62 73 63 72 |rrays ar|e subscr|
|00002c30| 69 70 74 65 64 20 77 69 | 74 68 20 61 6e 20 65 78 |ipted wi|th an ex|
|00002c40| 70 72 65 73 73 69 6f 6e | 20 62 65 74 77 65 65 6e |pression| between|
|00002c50| 20 73 71 75 61 72 65 20 | 62 72 61 63 6b 65 74 73 | square |brackets|
|00002c60| 0a 58 2e 52 42 20 28 20 | 5b 20 22 20 61 6e 64 20 |.X.RB ( |[ " and |
|00002c70| 22 20 5d 20 29 2e 0a 58 | 49 66 20 74 68 65 20 65 |" ] )..X|If the e|
|00002c80| 78 70 72 65 73 73 69 6f | 6e 20 69 73 20 61 6e 20 |xpressio|n is an |
|00002c90| 65 78 70 72 65 73 73 69 | 6f 6e 20 6c 69 73 74 0a |expressi|on list.|
|00002ca0| 58 2e 52 49 20 28 20 65 | 78 70 72 20 22 2c 20 22 |X.RI ( e|xpr ", "|
|00002cb0| 20 65 78 70 72 20 22 20 | 2e 2e 2e 29 22 0a 58 74 | expr " |...)".Xt|
|00002cc0| 68 65 6e 20 74 68 65 20 | 61 72 72 61 79 20 73 75 |hen the |array su|
|00002cd0| 62 73 63 72 69 70 74 20 | 69 73 20 61 20 73 74 72 |bscript |is a str|
|00002ce0| 69 6e 67 20 63 6f 6e 73 | 69 73 74 69 6e 67 20 6f |ing cons|isting o|
|00002cf0| 66 20 74 68 65 0a 58 63 | 6f 6e 63 61 74 65 6e 61 |f the.Xc|oncatena|
|00002d00| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 28 73 74 72 |tion of |the (str|
|00002d10| 69 6e 67 29 20 76 61 6c | 75 65 20 6f 66 20 65 61 |ing) val|ue of ea|
|00002d20| 63 68 20 65 78 70 72 65 | 73 73 69 6f 6e 2c 0a 58 |ch expre|ssion,.X|
|00002d30| 73 65 70 61 72 61 74 65 | 64 20 62 79 20 74 68 65 |separate|d by the|
|00002d40| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 0a 58 2e | value o|f the.X.|
|00002d50| 42 20 53 55 42 53 45 50 | 0a 58 76 61 72 69 61 62 |B SUBSEP|.Xvariab|
|00002d60| 6c 65 2e 0a 58 54 68 69 | 73 20 66 61 63 69 6c 69 |le..XThi|s facili|
|00002d70| 74 79 20 69 73 20 75 73 | 65 64 20 74 6f 20 73 69 |ty is us|ed to si|
|00002d80| 6d 75 6c 61 74 65 20 6d | 75 6c 74 69 70 6c 79 20 |mulate m|ultiply |
|00002d90| 64 69 6d 65 6e 73 69 6f | 6e 65 64 0a 58 61 72 72 |dimensio|ned.Xarr|
|00002da0| 61 79 73 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ays. For| example|
|00002db0| 3a 0a 58 2e 50 50 0a 58 | 2e 52 53 0a 58 2e 66 74 |:.X.PP.X|.RS.X.ft|
|00002dc0| 20 42 0a 58 69 20 3d 20 | 22 41 22 20 3b 5c 5e 20 | B.Xi = |"A" ;\^ |
|00002dd0| 6a 20 3d 20 22 42 22 20 | 3b 5c 5e 20 6b 20 3d 20 |j = "B" |;\^ k = |
|00002de0| 22 43 22 0a 58 2e 62 72 | 0a 58 78 5b 69 2c 20 6a |"C".X.br|.Xx[i, j|
|00002df0| 2c 20 6b 5d 20 3d 20 22 | 68 65 6c 6c 6f 2c 20 77 |, k] = "|hello, w|
|00002e00| 6f 72 6c 64 5c 65 6e 22 | 0a 58 2e 66 74 20 52 0a |orld\en"|.X.ft R.|
|00002e10| 58 2e 52 45 0a 58 2e 50 | 50 0a 58 61 73 73 69 67 |X.RE.X.P|P.Xassig|
|00002e20| 6e 73 20 74 68 65 20 73 | 74 72 69 6e 67 20 5c 66 |ns the s|tring \f|
|00002e30| 42 22 68 65 6c 6c 6f 2c | 20 77 6f 72 6c 64 5c 65 |B"hello,| world\e|
|00002e40| 6e 22 5c 66 52 20 74 6f | 20 74 68 65 20 65 6c 65 |n"\fR to| the ele|
|00002e50| 6d 65 6e 74 20 6f 66 20 | 74 68 65 20 61 72 72 61 |ment of |the arra|
|00002e60| 79 0a 58 2e 42 20 78 0a | 58 77 68 69 63 68 20 69 |y.X.B x.|Xwhich i|
|00002e70| 73 20 69 6e 64 65 78 65 | 64 20 62 79 20 74 68 65 |s indexe|d by the|
|00002e80| 20 73 74 72 69 6e 67 20 | 5c 66 42 22 41 5c 65 30 | string |\fB"A\e0|
|00002e90| 33 34 42 5c 65 30 33 34 | 43 22 5c 66 52 2e 20 41 |34B\e034|C"\fR. A|
|00002ea0| 6c 6c 20 61 72 72 61 79 | 73 20 69 6e 20 41 57 4b |ll array|s in AWK|
|00002eb0| 0a 58 61 72 65 20 61 73 | 73 6f 63 69 61 74 69 76 |.Xare as|sociativ|
|00002ec0| 65 2c 20 69 2e 65 2e 20 | 69 6e 64 65 78 65 64 20 |e, i.e. |indexed |
|00002ed0| 62 79 20 73 74 72 69 6e | 67 20 76 61 6c 75 65 73 |by strin|g values|
|00002ee0| 2e 0a 58 2e 50 50 0a 58 | 54 68 65 20 73 70 65 63 |..X.PP.X|The spec|
|00002ef0| 69 61 6c 20 6f 70 65 72 | 61 74 6f 72 0a 58 2e 42 |ial oper|ator.X.B|
|00002f00| 20 69 6e 0a 58 6d 61 79 | 20 62 65 20 75 73 65 64 | in.Xmay| be used|
|00002f10| 20 69 6e 20 61 6e 0a 58 | 2e 42 20 69 66 0a 58 6f | in an.X|.B if.Xo|
|00002f20| 72 0a 58 2e 42 20 77 68 | 69 6c 65 0a 58 73 74 61 |r.X.B wh|ile.Xsta|
|00002f30| 74 65 6d 65 6e 74 20 74 | 6f 20 73 65 65 20 69 66 |tement t|o see if|
|00002f40| 20 61 6e 20 61 72 72 61 | 79 20 68 61 73 20 61 6e | an arra|y has an|
|00002f50| 20 69 6e 64 65 78 20 63 | 6f 6e 73 69 73 74 69 6e | index c|onsistin|
|00002f60| 67 20 6f 66 20 61 20 70 | 61 72 74 69 63 75 6c 61 |g of a p|articula|
|00002f70| 72 0a 58 76 61 6c 75 65 | 2e 0a 58 2e 50 50 0a 58 |r.Xvalue|..X.PP.X|
|00002f80| 2e 52 53 0a 58 2e 66 74 | 20 42 0a 58 2e 6e 66 0a |.RS.X.ft| B.X.nf.|
|00002f90| 58 69 66 20 28 76 61 6c | 20 69 6e 20 61 72 72 61 |Xif (val| in arra|
|00002fa0| 79 29 0a 58 09 70 72 69 | 6e 74 20 61 72 72 61 79 |y).X.pri|nt array|
|00002fb0| 5b 76 61 6c 5d 0a 58 2e | 66 69 0a 58 2e 66 74 0a |[val].X.|fi.X.ft.|
|00002fc0| 58 2e 52 45 0a 58 2e 50 | 50 0a 58 49 66 20 74 68 |X.RE.X.P|P.XIf th|
|00002fd0| 65 20 61 72 72 61 79 20 | 68 61 73 20 6d 75 6c 74 |e array |has mult|
|00002fe0| 69 70 6c 65 20 73 75 62 | 73 63 72 69 70 74 73 2c |iple sub|scripts,|
|00002ff0| 20 75 73 65 0a 58 2e 42 | 52 20 22 28 69 2c 20 6a | use.X.B|R "(i, j|
|00003000| 29 20 69 6e 20 61 72 72 | 61 79 22 20 2e 0a 58 2e |) in arr|ay" ..X.|
|00003010| 50 50 0a 58 54 68 65 0a | 58 2e 42 20 69 6e 0a 58 |PP.XThe.|X.B in.X|
|00003020| 63 6f 6e 73 74 72 75 63 | 74 20 6d 61 79 20 61 6c |construc|t may al|
|00003030| 73 6f 20 62 65 20 75 73 | 65 64 20 69 6e 20 61 0a |so be us|ed in a.|
|00003040| 58 2e 42 20 66 6f 72 0a | 58 6c 6f 6f 70 20 74 6f |X.B for.|Xloop to|
|00003050| 20 69 74 65 72 61 74 65 | 20 6f 76 65 72 20 61 6c | iterate| over al|
|00003060| 6c 20 74 68 65 20 65 6c | 65 6d 65 6e 74 73 20 6f |l the el|ements o|
|00003070| 66 20 61 6e 20 61 72 72 | 61 79 2e 0a 58 2e 50 50 |f an arr|ay..X.PP|
|00003080| 0a 58 41 6e 20 65 6c 65 | 6d 65 6e 74 20 6d 61 79 |.XAn ele|ment may|
|00003090| 20 62 65 20 64 65 6c 65 | 74 65 64 20 66 72 6f 6d | be dele|ted from|
|000030a0| 20 61 6e 20 61 72 72 61 | 79 20 75 73 69 6e 67 20 | an arra|y using |
|000030b0| 74 68 65 0a 58 2e 42 20 | 64 65 6c 65 74 65 0a 58 |the.X.B |delete.X|
|000030c0| 73 74 61 74 65 6d 65 6e | 74 2e 0a 58 2e 53 53 20 |statemen|t..X.SS |
|000030d0| 56 61 72 69 61 62 6c 65 | 20 54 79 70 69 6e 67 0a |Variable| Typing.|
|000030e0| 58 2e 50 50 0a 58 56 61 | 72 69 61 62 6c 65 73 20 |X.PP.XVa|riables |
|000030f0| 61 6e 64 20 66 69 65 6c | 64 73 0a 58 6d 61 79 20 |and fiel|ds.Xmay |
|00003100| 62 65 20 28 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |be (floa|ting poi|
|00003110| 6e 74 29 20 6e 75 6d 62 | 65 72 73 2c 20 6f 72 20 |nt) numb|ers, or |
|00003120| 73 74 72 69 6e 67 73 2c | 20 6f 72 20 62 6f 74 68 |strings,| or both|
|00003130| 2e 20 48 6f 77 20 74 68 | 65 0a 58 76 61 6c 75 65 |. How th|e.Xvalue|
|00003140| 20 6f 66 20 61 20 76 61 | 72 69 61 62 6c 65 20 69 | of a va|riable i|
|00003150| 73 20 69 6e 74 65 72 70 | 72 65 74 65 64 20 64 65 |s interp|reted de|
|00003160| 70 65 6e 64 73 20 75 70 | 6f 6e 20 69 74 73 20 63 |pends up|on its c|
|00003170| 6f 6e 74 65 78 74 2e 20 | 49 66 20 75 73 65 64 20 |ontext. |If used |
|00003180| 69 6e 0a 58 61 20 6e 75 | 6d 65 72 69 63 20 65 78 |in.Xa nu|meric ex|
|00003190| 70 72 65 73 73 69 6f 6e | 2c 20 69 74 20 77 69 6c |pression|, it wil|
|000031a0| 6c 20 62 65 20 74 72 65 | 61 74 65 64 20 61 73 20 |l be tre|ated as |
|000031b0| 61 20 6e 75 6d 62 65 72 | 2c 20 69 66 20 75 73 65 |a number|, if use|
|000031c0| 64 20 61 73 20 61 20 73 | 74 72 69 6e 67 0a 58 69 |d as a s|tring.Xi|
|000031d0| 74 20 77 69 6c 6c 20 62 | 65 20 74 72 65 61 74 65 |t will b|e treate|
|000031e0| 64 20 61 73 20 61 20 73 | 74 72 69 6e 67 2e 0a 58 |d as a s|tring..X|
|000031f0| 2e 50 50 0a 58 54 6f 20 | 66 6f 72 63 65 20 61 20 |.PP.XTo |force a |
|00003200| 76 61 72 69 61 62 6c 65 | 20 74 6f 20 62 65 20 74 |variable| to be t|
|00003210| 72 65 61 74 65 64 20 61 | 73 20 61 20 6e 75 6d 62 |reated a|s a numb|
|00003220| 65 72 2c 20 61 64 64 20 | 30 20 74 6f 20 69 74 3b |er, add |0 to it;|
|00003230| 20 74 6f 20 66 6f 72 63 | 65 20 69 74 0a 58 74 6f | to forc|e it.Xto|
|00003240| 20 62 65 20 74 72 65 61 | 74 65 64 20 61 73 20 61 | be trea|ted as a|
|00003250| 20 73 74 72 69 6e 67 2c | 20 63 6f 6e 63 61 74 65 | string,| concate|
|00003260| 6e 61 74 65 20 69 74 20 | 77 69 74 68 20 74 68 65 |nate it |with the|
|00003270| 20 6e 75 6c 6c 20 73 74 | 72 69 6e 67 2e 0a 58 2e | null st|ring..X.|
|00003280| 50 50 0a 58 54 68 65 20 | 41 57 4b 20 6c 61 6e 67 |PP.XThe |AWK lang|
|00003290| 75 61 67 65 20 64 65 66 | 69 6e 65 73 20 63 6f 6d |uage def|ines com|
|000032a0| 70 61 72 69 73 6f 6e 73 | 20 61 73 20 62 65 69 6e |parisons| as bein|
|000032b0| 67 20 64 6f 6e 65 20 6e | 75 6d 65 72 69 63 61 6c |g done n|umerical|
|000032c0| 6c 79 20 69 66 0a 58 70 | 6f 73 73 69 62 6c 65 2c |ly if.Xp|ossible,|
|000032d0| 20 6f 74 68 65 72 77 69 | 73 65 20 6f 6e 65 20 6f | otherwi|se one o|
|000032e0| 72 20 62 6f 74 68 20 6f | 70 65 72 61 6e 64 73 20 |r both o|perands |
|000032f0| 61 72 65 20 63 6f 6e 76 | 65 72 74 65 64 20 74 6f |are conv|erted to|
|00003300| 20 73 74 72 69 6e 67 73 | 20 61 6e 64 0a 58 61 20 | strings| and.Xa |
|00003310| 73 74 72 69 6e 67 20 63 | 6f 6d 70 61 72 69 73 6f |string c|ompariso|
|00003320| 6e 20 69 73 20 70 65 72 | 66 6f 72 6d 65 64 2e 0a |n is per|formed..|
|00003330| 58 2e 50 50 0a 58 55 6e | 69 6e 69 74 69 61 6c 69 |X.PP.XUn|initiali|
|00003340| 7a 65 64 20 76 61 72 69 | 61 62 6c 65 73 20 68 61 |zed vari|ables ha|
|00003350| 76 65 20 74 68 65 20 6e | 75 6d 65 72 69 63 20 76 |ve the n|umeric v|
|00003360| 61 6c 75 65 20 30 20 61 | 6e 64 20 74 68 65 20 73 |alue 0 a|nd the s|
|00003370| 74 72 69 6e 67 20 76 61 | 6c 75 65 20 22 22 0a 58 |tring va|lue "".X|
|00003380| 28 74 68 65 20 6e 75 6c | 6c 2c 20 6f 72 20 65 6d |(the nul|l, or em|
|00003390| 70 74 79 2c 20 73 74 72 | 69 6e 67 29 2e 0a 58 2e |pty, str|ing)..X.|
|000033a0| 53 48 20 50 41 54 54 45 | 52 4e 53 20 41 4e 44 20 |SH PATTE|RNS AND |
|000033b0| 41 43 54 49 4f 4e 53 0a | 58 41 57 4b 20 69 73 20 |ACTIONS.|XAWK is |
|000033c0| 61 20 6c 69 6e 65 20 6f | 72 69 65 6e 74 65 64 20 |a line o|riented |
|000033d0| 6c 61 6e 67 75 61 67 65 | 2e 20 54 68 65 20 70 61 |language|. The pa|
|000033e0| 74 74 65 72 6e 20 63 6f | 6d 65 73 20 66 69 72 73 |ttern co|mes firs|
|000033f0| 74 2c 20 61 6e 64 20 74 | 68 65 6e 20 74 68 65 0a |t, and t|hen the.|
|00003400| 58 61 63 74 69 6f 6e 2e | 20 41 63 74 69 6f 6e 20 |Xaction.| Action |
|00003410| 73 74 61 74 65 6d 65 6e | 74 73 20 61 72 65 20 65 |statemen|ts are e|
|00003420| 6e 63 6c 6f 73 65 64 20 | 69 6e 0a 58 2e 42 20 7b |nclosed |in.X.B {|
|00003430| 0a 58 61 6e 64 0a 58 2e | 42 52 20 7d 20 2e 0a 58 |.Xand.X.|BR } ..X|
|00003440| 45 69 74 68 65 72 20 74 | 68 65 20 70 61 74 74 65 |Either t|he patte|
|00003450| 72 6e 20 6d 61 79 20 62 | 65 20 6d 69 73 73 69 6e |rn may b|e missin|
|00003460| 67 2c 20 6f 72 20 74 68 | 65 20 61 63 74 69 6f 6e |g, or th|e action|
|00003470| 20 6d 61 79 20 62 65 20 | 6d 69 73 73 69 6e 67 2c | may be |missing,|
|00003480| 20 62 75 74 2c 0a 58 6f | 66 20 63 6f 75 72 73 65 | but,.Xo|f course|
|00003490| 2c 20 6e 6f 74 20 62 6f | 74 68 2e 20 49 66 20 74 |, not bo|th. If t|
|000034a0| 68 65 20 70 61 74 74 65 | 72 6e 20 69 73 20 6d 69 |he patte|rn is mi|
|000034b0| 73 73 69 6e 67 2c 20 74 | 68 65 20 61 63 74 69 6f |ssing, t|he actio|
|000034c0| 6e 20 77 69 6c 6c 20 62 | 65 0a 58 65 78 65 63 75 |n will b|e.Xexecu|
|000034d0| 74 65 64 20 66 6f 72 20 | 65 76 65 72 79 20 73 69 |ted for |every si|
|000034e0| 6e 67 6c 65 20 6c 69 6e | 65 20 6f 66 20 69 6e 70 |ngle lin|e of inp|
|000034f0| 75 74 2e 0a 58 41 20 6d | 69 73 73 69 6e 67 20 61 |ut..XA m|issing a|
|00003500| 63 74 69 6f 6e 20 69 73 | 20 65 71 75 69 76 61 6c |ction is| equival|
|00003510| 65 6e 74 20 74 6f 0a 58 | 2e 52 53 0a 58 2e 50 50 |ent to.X|.RS.X.PP|
|00003520| 0a 58 2e 42 20 22 7b 20 | 70 72 69 6e 74 20 7d 22 |.X.B "{ |print }"|
|00003530| 0a 58 2e 52 45 0a 58 2e | 50 50 0a 58 77 68 69 63 |.X.RE.X.|PP.Xwhic|
|00003540| 68 20 70 72 69 6e 74 73 | 20 74 68 65 20 65 6e 74 |h prints| the ent|
|00003550| 69 72 65 20 6c 69 6e 65 | 2e 0a 58 2e 50 50 0a 58 |ire line|..X.PP.X|
|00003560| 43 6f 6d 6d 65 6e 74 73 | 20 62 65 67 69 6e 20 77 |Comments| begin w|
|00003570| 69 74 68 20 74 68 65 20 | 60 60 23 27 27 20 63 68 |ith the |``#'' ch|
|00003580| 61 72 61 63 74 65 72 2c | 20 61 6e 64 20 63 6f 6e |aracter,| and con|
|00003590| 74 69 6e 75 65 20 75 6e | 74 69 6c 20 74 68 65 0a |tinue un|til the.|
|000035a0| 58 65 6e 64 20 6f 66 20 | 74 68 65 20 6c 69 6e 65 |Xend of |the line|
|000035b0| 2e 0a 58 42 6c 61 6e 6b | 20 6c 69 6e 65 73 20 6d |..XBlank| lines m|
|000035c0| 61 79 20 62 65 20 75 73 | 65 64 20 74 6f 20 73 65 |ay be us|ed to se|
|000035d0| 70 61 72 61 74 65 20 73 | 74 61 74 65 6d 65 6e 74 |parate s|tatement|
|000035e0| 73 2e 0a 58 4e 6f 72 6d | 61 6c 6c 79 2c 20 61 20 |s..XNorm|ally, a |
|000035f0| 73 74 61 74 65 6d 65 6e | 74 20 65 6e 64 73 20 77 |statemen|t ends w|
|00003600| 69 74 68 20 61 20 6e 65 | 77 6c 69 6e 65 2c 20 68 |ith a ne|wline, h|
|00003610| 6f 77 65 76 65 72 2c 20 | 74 68 69 73 20 69 73 20 |owever, |this is |
|00003620| 6e 6f 74 20 74 68 65 0a | 58 63 61 73 65 20 66 6f |not the.|Xcase fo|
|00003630| 72 20 6c 69 6e 65 73 20 | 65 6e 64 69 6e 67 20 69 |r lines |ending i|
|00003640| 6e 0a 58 61 20 60 60 2c | 27 27 2c 20 60 60 7b 27 |n.Xa ``,|'', ``{'|
|00003650| 27 2c 20 60 60 3f 27 27 | 2c 20 60 60 3a 27 27 2c |', ``?''|, ``:'',|
|00003660| 20 60 60 26 26 27 27 2c | 20 6f 72 20 60 60 7c 7c | ``&&'',| or ``|||
|00003670| 27 27 2e 0a 58 4c 69 6e | 65 73 20 65 6e 64 69 6e |''..XLin|es endin|
|00003680| 67 20 69 6e 0a 58 2e 42 | 20 64 6f 0a 58 6f 72 0a |g in.X.B| do.Xor.|
|00003690| 58 2e 42 20 65 6c 73 65 | 0a 58 61 6c 73 6f 20 68 |X.B else|.Xalso h|
|000036a0| 61 76 65 20 74 68 65 69 | 72 20 73 74 61 74 65 6d |ave thei|r statem|
|000036b0| 65 6e 74 73 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |ents aut|omatical|
|000036c0| 6c 79 20 63 6f 6e 74 69 | 6e 75 65 64 20 6f 6e 20 |ly conti|nued on |
|000036d0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6c 69 |the foll|owing li|
|000036e0| 6e 65 2e 0a 58 49 6e 20 | 6f 74 68 65 72 20 63 61 |ne..XIn |other ca|
|000036f0| 73 65 73 2c 20 61 20 6c | 69 6e 65 20 63 61 6e 20 |ses, a l|ine can |
|00003700| 62 65 20 63 6f 6e 74 69 | 6e 75 65 64 20 62 79 20 |be conti|nued by |
|00003710| 65 6e 64 69 6e 67 20 69 | 74 20 77 69 74 68 20 61 |ending i|t with a|
|00003720| 20 60 60 5c 65 27 27 2c | 0a 58 69 6e 20 77 68 69 | ``\e'',|.Xin whi|
|00003730| 63 68 20 63 61 73 65 20 | 74 68 65 20 6e 65 77 6c |ch case |the newl|
|00003740| 69 6e 65 20 77 69 6c 6c | 20 62 65 20 69 67 6e 6f |ine will| be igno|
|00003750| 72 65 64 2e 0a 58 2e 50 | 50 0a 58 4d 75 6c 74 69 |red..X.P|P.XMulti|
|00003760| 70 6c 65 20 73 74 61 74 | 65 6d 65 6e 74 73 20 6d |ple stat|ements m|
|00003770| 61 79 0a 58 62 65 20 70 | 75 74 20 6f 6e 20 6f 6e |ay.Xbe p|ut on on|
|00003780| 65 20 6c 69 6e 65 20 62 | 79 20 73 65 70 61 72 61 |e line b|y separa|
|00003790| 74 69 6e 67 20 74 68 65 | 6d 20 77 69 74 68 20 61 |ting the|m with a|
|000037a0| 20 60 60 3b 27 27 2e 0a | 58 54 68 69 73 20 61 70 | ``;''..|XThis ap|
|000037b0| 70 6c 69 65 73 20 74 6f | 20 62 6f 74 68 20 74 68 |plies to| both th|
|000037c0| 65 20 73 74 61 74 65 6d | 65 6e 74 73 20 77 69 74 |e statem|ents wit|
|000037d0| 68 69 6e 20 74 68 65 20 | 61 63 74 69 6f 6e 20 70 |hin the |action p|
|000037e0| 61 72 74 20 6f 66 20 61 | 0a 58 70 61 74 74 65 72 |art of a|.Xpatter|
|000037f0| 6e 2d 61 63 74 69 6f 6e | 20 70 61 69 72 20 28 74 |n-action| pair (t|
|00003800| 68 65 20 75 73 75 61 6c | 20 63 61 73 65 29 2c 0a |he usual| case),.|
|00003810| 58 61 6e 64 20 74 6f 20 | 74 68 65 20 70 61 74 74 |Xand to |the patt|
|00003820| 65 72 6e 2d 61 63 74 69 | 6f 6e 20 73 74 61 74 65 |ern-acti|on state|
|00003830| 6d 65 6e 74 73 20 74 68 | 65 6d 73 65 6c 76 65 73 |ments th|emselves|
|00003840| 2e 0a 58 2e 53 53 20 50 | 61 74 74 65 72 6e 73 0a |..X.SS P|atterns.|
|00003850| 58 41 57 4b 20 70 61 74 | 74 65 72 6e 73 20 6d 61 |XAWK pat|terns ma|
|00003860| 79 20 62 65 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |y be one| of the |
|00003870| 66 6f 6c 6c 6f 77 69 6e | 67 3a 0a 58 2e 50 50 0a |followin|g:.X.PP.|
|00003880| 58 2e 52 53 0a 58 2e 6e | 66 0a 58 2e 42 20 42 45 |X.RS.X.n|f.X.B BE|
|00003890| 47 49 4e 0a 58 2e 42 20 | 45 4e 44 0a 58 2e 42 49 |GIN.X.B |END.X.BI|
|000038a0| 20 2f 20 22 72 65 67 75 | 6c 61 72 20 65 78 70 72 | / "regu|lar expr|
|000038b0| 65 73 73 69 6f 6e 22 20 | 2f 0a 58 2e 49 20 22 72 |ession" |/.X.I "r|
|000038c0| 65 6c 61 74 69 6f 6e 61 | 6c 20 65 78 70 72 65 73 |elationa|l expres|
|000038d0| 73 69 6f 6e 22 0a 58 2e | 49 42 20 70 61 74 74 65 |sion".X.|IB patte|
|000038e0| 72 6e 20 22 20 26 26 20 | 22 20 70 61 74 74 65 72 |rn " && |" patter|
|000038f0| 6e 0a 58 2e 49 42 20 70 | 61 74 74 65 72 6e 20 22 |n.X.IB p|attern "|
|00003900| 20 7c 7c 20 22 20 70 61 | 74 74 65 72 6e 0a 58 2e | || " pa|ttern.X.|
|00003910| 49 42 20 70 61 74 74 65 | 72 6e 20 22 20 3f 20 22 |IB patte|rn " ? "|
|00003920| 20 70 61 74 74 65 72 6e | 20 22 20 3a 20 22 20 70 | pattern| " : " p|
|00003930| 61 74 74 65 72 6e 0a 58 | 2e 42 49 20 28 20 70 61 |attern.X|.BI ( pa|
|00003940| 74 74 65 72 6e 20 29 0a | 58 2e 42 49 20 21 20 22 |ttern ).|X.BI ! "|
|00003950| 20 70 61 74 74 65 72 6e | 22 0a 58 2e 49 42 20 70 | pattern|".X.IB p|
|00003960| 61 74 74 65 72 6e 31 20 | 22 2c 20 22 20 70 61 74 |attern1 |", " pat|
|00003970| 74 65 72 6e 32 22 0a 58 | 2e 66 69 0a 58 2e 52 45 |tern2".X|.fi.X.RE|
|00003980| 0a 58 2e 50 50 0a 58 2e | 42 20 42 45 47 49 4e 0a |.X.PP.X.|B BEGIN.|
|00003990| 58 61 6e 64 0a 58 2e 42 | 20 45 4e 44 0a 58 61 72 |Xand.X.B| END.Xar|
|000039a0| 65 20 74 77 6f 20 73 70 | 65 63 69 61 6c 20 6b 69 |e two sp|ecial ki|
|000039b0| 6e 64 73 20 6f 66 20 70 | 61 74 74 65 72 6e 73 20 |nds of p|atterns |
|000039c0| 77 68 69 63 68 20 61 72 | 65 20 6e 6f 74 20 74 65 |which ar|e not te|
|000039d0| 73 74 65 64 20 61 67 61 | 69 6e 73 74 0a 58 74 68 |sted aga|inst.Xth|
|000039e0| 65 20 69 6e 70 75 74 2e | 0a 58 54 68 65 20 61 63 |e input.|.XThe ac|
|000039f0| 74 69 6f 6e 20 70 61 72 | 74 73 20 6f 66 20 61 6c |tion par|ts of al|
|00003a00| 6c 0a 58 2e 42 20 42 45 | 47 49 4e 0a 58 70 61 74 |l.X.B BE|GIN.Xpat|
|00003a10| 74 65 72 6e 73 20 61 72 | 65 20 6d 65 72 67 65 64 |terns ar|e merged|
|00003a20| 20 61 73 20 69 66 20 61 | 6c 6c 20 74 68 65 20 73 | as if a|ll the s|
|00003a30| 74 61 74 65 6d 65 6e 74 | 73 20 68 61 64 0a 58 62 |tatement|s had.Xb|
|00003a40| 65 65 6e 20 77 72 69 74 | 74 65 6e 20 69 6e 20 61 |een writ|ten in a|
|00003a50| 20 73 69 6e 67 6c 65 0a | 58 2e 42 20 42 45 47 49 | single.|X.B BEGI|
|00003a60| 4e 0a 58 62 6c 6f 63 6b | 2e 20 54 68 65 79 20 61 |N.Xblock|. They a|
|00003a70| 72 65 20 65 78 65 63 75 | 74 65 64 20 62 65 66 6f |re execu|ted befo|
|00003a80| 72 65 20 61 6e 79 0a 58 | 6f 66 20 74 68 65 20 69 |re any.X|of the i|
|00003a90| 6e 70 75 74 20 69 73 20 | 72 65 61 64 2e 20 53 69 |nput is |read. Si|
|00003aa0| 6d 69 6c 61 72 6c 79 2c | 20 61 6c 6c 20 74 68 65 |milarly,| all the|
|00003ab0| 0a 58 2e 42 20 45 4e 44 | 0a 58 62 6c 6f 63 6b 73 |.X.B END|.Xblocks|
|00003ac0| 20 61 72 65 20 6d 65 72 | 67 65 64 2c 0a 58 61 6e | are mer|ged,.Xan|
|00003ad0| 64 20 65 78 65 63 75 74 | 65 64 20 77 68 65 6e 20 |d execut|ed when |
|00003ae0| 61 6c 6c 20 74 68 65 20 | 69 6e 70 75 74 20 69 73 |all the |input is|
|00003af0| 20 65 78 68 61 75 73 74 | 65 64 20 28 6f 72 20 77 | exhaust|ed (or w|
|00003b00| 68 65 6e 20 61 6e 0a 58 | 2e 42 20 65 78 69 74 0a |hen an.X|.B exit.|
|00003b10| 58 73 74 61 74 65 6d 65 | 6e 74 20 69 73 20 65 78 |Xstateme|nt is ex|
|00003b20| 65 63 75 74 65 64 29 2e | 0a 58 2e 42 20 42 45 47 |ecuted).|.X.B BEG|
|00003b30| 49 4e 0a 58 61 6e 64 0a | 58 2e 42 20 45 4e 44 0a |IN.Xand.|X.B END.|
|00003b40| 58 70 61 74 74 65 72 6e | 73 20 63 61 6e 6e 6f 74 |Xpattern|s cannot|
|00003b50| 20 62 65 20 63 6f 6d 62 | 69 6e 65 64 20 77 69 74 | be comb|ined wit|
|00003b60| 68 20 6f 74 68 65 72 20 | 70 61 74 74 65 72 6e 73 |h other |patterns|
|00003b70| 20 69 6e 20 70 61 74 74 | 65 72 6e 20 65 78 70 72 | in patt|ern expr|
|00003b80| 65 73 73 69 6f 6e 73 2e | 0a 58 2e 42 20 42 45 47 |essions.|.X.B BEG|
|00003b90| 49 4e 0a 58 61 6e 64 0a | 58 2e 42 20 45 4e 44 0a |IN.Xand.|X.B END.|
|00003ba0| 58 70 61 74 74 65 72 6e | 73 20 63 61 6e 6e 6f 74 |Xpattern|s cannot|
|00003bb0| 20 68 61 76 65 20 6d 69 | 73 73 69 6e 67 20 61 63 | have mi|ssing ac|
|00003bc0| 74 69 6f 6e 20 70 61 72 | 74 73 2e 0a 58 2e 50 50 |tion par|ts..X.PP|
|00003bd0| 0a 58 46 6f 72 0a 58 2e | 42 49 20 2f 20 22 72 65 |.XFor.X.|BI / "re|
|00003be0| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|00003bf0| 22 20 2f 0a 58 70 61 74 | 74 65 72 6e 73 2c 20 74 |" /.Xpat|terns, t|
|00003c00| 68 65 20 61 73 73 6f 63 | 69 61 74 65 64 20 73 74 |he assoc|iated st|
|00003c10| 61 74 65 6d 65 6e 74 20 | 69 73 20 65 78 65 63 75 |atement |is execu|
|00003c20| 74 65 64 20 66 6f 72 20 | 65 61 63 68 20 69 6e 70 |ted for |each inp|
|00003c30| 75 74 20 6c 69 6e 65 20 | 74 68 61 74 20 6d 61 74 |ut line |that mat|
|00003c40| 63 68 65 73 0a 58 74 68 | 65 20 72 65 67 75 6c 61 |ches.Xth|e regula|
|00003c50| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 2e 0a 58 52 |r expres|sion..XR|
|00003c60| 65 67 75 6c 61 72 20 65 | 78 70 72 65 73 73 69 6f |egular e|xpressio|
|00003c70| 6e 73 20 61 72 65 20 74 | 68 65 20 73 61 6d 65 20 |ns are t|he same |
|00003c80| 61 73 20 74 68 6f 73 65 | 20 69 6e 0a 58 2e 49 52 |as those| in.X.IR|
|00003c90| 20 65 67 72 65 70 20 28 | 31 29 2c 0a 58 61 6e 64 | egrep (|1),.Xand|
|00003ca0| 20 61 72 65 20 73 75 6d | 6d 61 72 69 7a 65 64 20 | are sum|marized |
|00003cb0| 62 65 6c 6f 77 2e 0a 58 | 2e 50 50 0a 58 41 0a 58 |below..X|.PP.XA.X|
|00003cc0| 2e 49 20 22 72 65 6c 61 | 74 69 6f 6e 61 6c 20 65 |.I "rela|tional e|
|00003cd0| 78 70 72 65 73 73 69 6f | 6e 22 0a 58 6d 61 79 20 |xpressio|n".Xmay |
|00003ce0| 75 73 65 20 61 6e 79 20 | 6f 66 20 74 68 65 20 6f |use any |of the o|
|00003cf0| 70 65 72 61 74 6f 72 73 | 20 64 65 66 69 6e 65 64 |perators| defined|
|00003d00| 20 62 65 6c 6f 77 20 69 | 6e 20 74 68 65 20 73 65 | below i|n the se|
|00003d10| 63 74 69 6f 6e 20 6f 6e | 20 61 63 74 69 6f 6e 73 |ction on| actions|
|00003d20| 2e 0a 58 54 68 65 73 65 | 20 67 65 6e 65 72 61 6c |..XThese| general|
|00003d30| 6c 79 20 74 65 73 74 20 | 77 68 65 74 68 65 72 20 |ly test |whether |
|00003d40| 63 65 72 74 61 69 6e 20 | 66 69 65 6c 64 73 20 6d |certain |fields m|
|00003d50| 61 74 63 68 20 63 65 72 | 74 61 69 6e 20 72 65 67 |atch cer|tain reg|
|00003d60| 75 6c 61 72 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |ular exp|ressions|
|00003d70| 2e 0a 58 2e 50 50 0a 58 | 54 68 65 0a 58 2e 42 52 |..X.PP.X|The.X.BR|
|00003d80| 20 26 26 20 2c 0a 58 2e | 42 52 20 7c 7c 20 2c 0a | && ,.X.|BR || ,.|
|00003d90| 58 61 6e 64 0a 58 2e 42 | 20 21 0a 58 6f 70 65 72 |Xand.X.B| !.Xoper|
|00003da0| 61 74 6f 72 73 20 61 72 | 65 20 6c 6f 67 69 63 61 |ators ar|e logica|
|00003db0| 6c 20 41 4e 44 2c 20 6c | 6f 67 69 63 61 6c 20 4f |l AND, l|ogical O|
|00003dc0| 52 2c 20 61 6e 64 20 6c | 6f 67 69 63 61 6c 20 4e |R, and l|ogical N|
|00003dd0| 4f 54 2c 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |OT, resp|ectively|
|00003de0| 2c 20 61 73 20 69 6e 20 | 43 2e 0a 58 54 68 65 79 |, as in |C..XThey|
|00003df0| 20 64 6f 20 73 68 6f 72 | 74 2d 63 69 72 63 75 69 | do shor|t-circui|
|00003e00| 74 20 65 76 61 6c 75 61 | 74 69 6f 6e 2c 20 61 6c |t evalua|tion, al|
|00003e10| 73 6f 20 61 73 20 69 6e | 20 43 2c 20 61 6e 64 20 |so as in| C, and |
|00003e20| 61 72 65 20 75 73 65 64 | 20 66 6f 72 20 63 6f 6d |are used| for com|
|00003e30| 62 69 6e 69 6e 67 0a 58 | 6d 6f 72 65 20 70 72 69 |bining.X|more pri|
|00003e40| 6d 69 74 69 76 65 20 70 | 61 74 74 65 72 6e 20 65 |mitive p|attern e|
|00003e50| 78 70 72 65 73 73 69 6f | 6e 73 2e 20 41 73 20 69 |xpressio|ns. As i|
|00003e60| 6e 20 6d 6f 73 74 20 6c | 61 6e 67 75 61 67 65 73 |n most l|anguages|
|00003e70| 2c 20 70 61 72 65 6e 74 | 68 65 73 65 73 0a 58 6d |, parent|heses.Xm|
|00003e80| 61 79 20 62 65 20 75 73 | 65 64 20 74 6f 20 63 68 |ay be us|ed to ch|
|00003e90| 61 6e 67 65 20 74 68 65 | 20 6f 72 64 65 72 20 6f |ange the| order o|
|00003ea0| 66 20 65 76 61 6c 75 61 | 74 69 6f 6e 2e 0a 58 2e |f evalua|tion..X.|
|00003eb0| 50 50 0a 58 54 68 65 0a | 58 2e 42 20 3f 5c 5e 3a |PP.XThe.|X.B ?\^:|
|00003ec0| 0a 58 6f 70 65 72 61 74 | 6f 72 20 69 73 20 6c 69 |.Xoperat|or is li|
|00003ed0| 6b 65 20 74 68 65 20 73 | 61 6d 65 20 6f 70 65 72 |ke the s|ame oper|
|00003ee0| 61 74 6f 72 20 69 6e 20 | 43 2e 20 49 66 20 74 68 |ator in |C. If th|
|00003ef0| 65 20 66 69 72 73 74 20 | 70 61 74 74 65 72 6e 20 |e first |pattern |
|00003f00| 69 73 20 74 72 75 65 0a | 58 74 68 65 6e 20 74 68 |is true.|Xthen th|
|00003f10| 65 20 70 61 74 74 65 72 | 6e 20 75 73 65 64 20 66 |e patter|n used f|
|00003f20| 6f 72 20 74 65 73 74 69 | 6e 67 20 69 73 20 74 68 |or testi|ng is th|
|00003f30| 65 20 73 65 63 6f 6e 64 | 20 70 61 74 74 65 72 6e |e second| pattern|
|00003f40| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 69 74 20 69 |, otherw|ise it i|
|00003f50| 73 0a 58 74 68 65 20 74 | 68 69 72 64 2e 20 4f 6e |s.Xthe t|hird. On|
|00003f60| 6c 79 20 6f 6e 65 20 6f | 66 20 74 68 65 20 73 65 |ly one o|f the se|
|00003f70| 63 6f 6e 64 20 61 6e 64 | 20 74 68 69 72 64 20 70 |cond and| third p|
|00003f80| 61 74 74 65 72 6e 73 20 | 69 73 20 65 76 61 6c 75 |atterns |is evalu|
|00003f90| 61 74 65 64 2e 0a 58 2e | 50 50 0a 58 54 68 65 20 |ated..X.|PP.XThe |
|00003fa0| 0a 58 2e 49 42 20 70 61 | 74 74 65 72 6e 31 20 22 |.X.IB pa|ttern1 "|
|00003fb0| 2c 20 22 20 70 61 74 74 | 65 72 6e 32 22 0a 58 66 |, " patt|ern2".Xf|
|00003fc0| 6f 72 6d 20 6f 66 20 61 | 6e 20 65 78 70 72 65 73 |orm of a|n expres|
|00003fd0| 73 69 6f 6e 20 69 73 20 | 63 61 6c 6c 65 64 20 61 |sion is |called a|
|00003fe0| 20 72 61 6e 67 65 20 70 | 61 74 74 65 72 6e 2e 0a | range p|attern..|
|00003ff0| 58 49 74 20 6d 61 74 63 | 68 65 73 20 61 6c 6c 20 |XIt matc|hes all |
|00004000| 69 6e 70 75 74 20 6c 69 | 6e 65 73 20 73 74 61 72 |input li|nes star|
|00004010| 74 69 6e 67 20 77 69 74 | 68 20 61 20 6c 69 6e 65 |ting wit|h a line|
|00004020| 20 74 68 61 74 20 6d 61 | 74 63 68 65 73 0a 58 2e | that ma|tches.X.|
|00004030| 49 52 20 70 61 74 74 65 | 72 6e 31 20 2c 0a 58 61 |IR patte|rn1 ,.Xa|
|00004040| 6e 64 20 63 6f 6e 74 69 | 6e 75 69 6e 67 20 75 6e |nd conti|nuing un|
|00004050| 74 69 6c 20 61 20 6c 69 | 6e 65 20 74 68 61 74 20 |til a li|ne that |
|00004060| 6d 61 74 63 68 65 73 0a | 58 2e 49 52 20 70 61 74 |matches.|X.IR pat|
|00004070| 74 65 72 6e 32 20 2c 0a | 58 69 6e 63 6c 75 73 69 |tern2 ,.|Xinclusi|
|00004080| 76 65 2e 20 49 74 20 64 | 6f 65 73 20 6e 6f 74 20 |ve. It d|oes not |
|00004090| 63 6f 6d 62 69 6e 65 20 | 77 69 74 68 20 61 6e 79 |combine |with any|
|000040a0| 20 6f 74 68 65 72 20 73 | 6f 72 74 20 6f 66 20 70 | other s|ort of p|
|000040b0| 61 74 74 65 72 6e 20 65 | 78 70 72 65 73 73 69 6f |attern e|xpressio|
|000040c0| 6e 2e 0a 58 2e 53 53 20 | 52 65 67 75 6c 61 72 20 |n..X.SS |Regular |
|000040d0| 45 78 70 72 65 73 73 69 | 6f 6e 73 0a 58 52 65 67 |Expressi|ons.XReg|
|000040e0| 75 6c 61 72 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |ular exp|ressions|
|000040f0| 20 61 72 65 20 74 68 65 | 20 65 78 74 65 6e 64 65 | are the| extende|
|00004100| 64 20 6b 69 6e 64 20 66 | 6f 75 6e 64 20 69 6e 0a |d kind f|ound in.|
|00004110| 58 2e 49 52 20 65 67 72 | 65 70 20 2e 0a 58 54 68 |X.IR egr|ep ..XTh|
|00004120| 65 79 20 61 72 65 20 63 | 6f 6d 70 6f 73 65 64 20 |ey are c|omposed |
|00004130| 6f 66 20 63 68 61 72 61 | 63 74 65 72 73 20 61 73 |of chara|cters as|
|00004140| 20 66 6f 6c 6c 6f 77 73 | 3a 0a 58 2e 52 53 0a 58 | follows|:.X.RS.X|
|00004150| 2e 54 50 20 5c 6c 27 5b | 5e 61 62 63 2e 2e 2e 5d |.TP \l'[|^abc...]|
|00004160| 27 0a 58 2e 49 20 63 0a | 58 6d 61 74 63 68 65 73 |'.X.I c.|Xmatches|
|00004170| 20 74 68 65 20 6e 6f 6e | 2d 6d 65 74 61 63 68 61 | the non|-metacha|
|00004180| 72 61 63 74 65 72 0a 58 | 2e 49 52 20 63 20 2e 0a |racter.X|.IR c ..|
|00004190| 58 2e 54 50 20 5c 6c 27 | 5b 5e 61 62 63 2e 2e 2e |X.TP \l'|[^abc...|
|000041a0| 5d 27 0a 58 2e 49 20 5c | 65 63 0a 58 6d 61 74 63 |]'.X.I \|ec.Xmatc|
|000041b0| 68 65 73 20 74 68 65 20 | 6c 69 74 65 72 61 6c 20 |hes the |literal |
|000041c0| 63 68 61 72 61 63 74 65 | 72 0a 58 2e 49 52 20 63 |characte|r.X.IR c|
|000041d0| 20 2e 0a 58 2e 54 50 20 | 5c 6c 27 5b 5e 61 62 63 | ..X.TP |\l'[^abc|
|000041e0| 2e 2e 2e 5d 27 0a 58 2e | 42 20 2e 0a 58 6d 61 74 |...]'.X.|B ..Xmat|
|000041f0| 63 68 65 73 20 61 6e 79 | 20 63 68 61 72 61 63 74 |ches any| charact|
|00004200| 65 72 20 65 78 63 65 70 | 74 20 6e 65 77 6c 69 6e |er excep|t newlin|
|00004210| 65 2e 0a 58 2e 54 50 20 | 5c 6c 27 5b 5e 61 62 63 |e..X.TP |\l'[^abc|
|00004220| 2e 2e 2e 5d 27 0a 58 2e | 42 20 5e 0a 58 6d 61 74 |...]'.X.|B ^.Xmat|
|00004230| 63 68 65 73 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |ches the| beginni|
|00004240| 6e 67 20 6f 66 20 61 20 | 6c 69 6e 65 20 6f 72 20 |ng of a |line or |
|00004250| 61 20 73 74 72 69 6e 67 | 2e 0a 58 2e 54 50 20 5c |a string|..X.TP \|
|00004260| 6c 27 5b 5e 61 62 63 2e | 2e 2e 5d 27 0a 58 2e 42 |l'[^abc.|..]'.X.B|
|00004270| 20 24 0a 58 6d 61 74 63 | 68 65 73 20 74 68 65 20 | $.Xmatc|hes the |
|00004280| 65 6e 64 20 6f 66 20 61 | 20 6c 69 6e 65 20 6f 72 |end of a| line or|
|00004290| 20 61 20 73 74 72 69 6e | 67 2e 0a 58 2e 54 50 20 | a strin|g..X.TP |
|000042a0| 5c 6c 27 5b 5e 61 62 63 | 2e 2e 2e 5d 27 0a 58 2e |\l'[^abc|...]'.X.|
|000042b0| 42 49 20 5b 20 61 62 63 | 2e 2e 2e 20 5d 0a 58 63 |BI [ abc|... ].Xc|
|000042c0| 68 61 72 61 63 74 65 72 | 20 63 6c 61 73 73 2c 20 |haracter| class, |
|000042d0| 6d 61 74 63 68 65 73 20 | 61 6e 79 20 6f 66 20 74 |matches |any of t|
|000042e0| 68 65 20 63 68 61 72 61 | 63 74 65 72 73 0a 58 2e |he chara|cters.X.|
|000042f0| 49 52 20 61 62 63 2e 2e | 2e 20 2e 0a 58 2e 54 50 |IR abc..|. ..X.TP|
|00004300| 20 5c 6c 27 5b 5e 61 62 | 63 2e 2e 2e 5d 27 0a 58 | \l'[^ab|c...]'.X|
|00004310| 2e 42 49 20 5b 5e 20 61 | 62 63 2e 2e 2e 20 5d 0a |.BI [^ a|bc... ].|
|00004320| 58 6e 65 67 61 74 65 64 | 20 63 68 61 72 61 63 74 |Xnegated| charact|
|00004330| 65 72 20 63 6c 61 73 73 | 2c 20 6d 61 74 63 68 65 |er class|, matche|
|00004340| 73 20 61 6e 79 20 63 68 | 61 72 61 63 74 65 72 20 |s any ch|aracter |
|00004350| 65 78 63 65 70 74 0a 58 | 2e 49 20 61 62 63 2e 2e |except.X|.I abc..|
|00004360| 2e 0a 58 61 6e 64 20 6e | 65 77 6c 69 6e 65 2e 0a |..Xand n|ewline..|
|00004370| 58 2e 54 50 20 5c 6c 27 | 5b 5e 61 62 63 2e 2e 2e |X.TP \l'|[^abc...|
|00004380| 5d 27 0a 58 2e 49 42 20 | 72 31 20 7c 20 72 32 0a |]'.X.IB |r1 | r2.|
|00004390| 58 61 6c 74 65 72 6e 61 | 74 69 6f 6e 3a 20 6d 61 |Xalterna|tion: ma|
|000043a0| 74 63 68 65 73 20 65 69 | 74 68 65 72 0a 58 2e 49 |tches ei|ther.X.I|
|000043b0| 20 72 31 0a 58 6f 72 0a | 58 2e 49 52 20 72 32 20 | r1.Xor.|X.IR r2 |
|000043c0| 2e 0a 58 2e 54 50 20 5c | 6c 27 5b 5e 61 62 63 2e |..X.TP \|l'[^abc.|
|000043d0| 2e 2e 5d 27 0a 58 2e 49 | 20 72 31 72 32 0a 58 63 |..]'.X.I| r1r2.Xc|
|000043e0| 6f 6e 63 61 74 65 6e 61 | 74 69 6f 6e 3a 20 6d 61 |oncatena|tion: ma|
|000043f0| 74 63 68 65 73 0a 58 2e | 49 52 20 72 31 20 2c 0a |tches.X.|IR r1 ,.|
|00004400| 58 61 6e 64 20 74 68 65 | 6e 0a 58 2e 49 52 20 72 |Xand the|n.X.IR r|
|00004410| 32 20 2e 0a 58 2e 54 50 | 20 5c 6c 27 5b 5e 61 62 |2 ..X.TP| \l'[^ab|
|00004420| 63 2e 2e 2e 5d 27 0a 58 | 2e 49 42 20 72 20 2b 0a |c...]'.X|.IB r +.|
|00004430| 58 6d 61 74 63 68 65 73 | 20 6f 6e 65 20 6f 72 20 |Xmatches| one or |
|00004440| 6d 6f 72 65 0a 58 2e 49 | 52 20 72 20 27 73 2e 20 |more.X.I|R r 's. |
|00004450| 0a 58 2e 54 50 20 5c 6c | 27 5b 5e 61 62 63 2e 2e |.X.TP \l|'[^abc..|
|00004460| 2e 5d 27 0a 58 2e 49 42 | 20 72 20 2a 0a 58 6d 61 |.]'.X.IB| r *.Xma|
|00004470| 74 63 68 65 73 20 7a 65 | 72 6f 20 6f 72 20 6d 6f |tches ze|ro or mo|
|00004480| 72 65 0a 58 2e 49 52 20 | 72 20 27 73 2e 20 0a 58 |re.X.IR |r 's. .X|
|00004490| 2e 54 50 20 5c 6c 27 5b | 5e 61 62 63 2e 2e 2e 5d |.TP \l'[|^abc...]|
|000044a0| 27 0a 58 2e 49 42 20 72 | 20 3f 0a 58 6d 61 74 63 |'.X.IB r| ?.Xmatc|
|000044b0| 68 65 73 20 7a 65 72 6f | 20 6f 72 20 6f 6e 65 0a |hes zero| or one.|
|000044c0| 58 2e 49 52 20 72 20 27 | 73 2e 20 0a 58 2e 54 50 |X.IR r '|s. .X.TP|
|000044d0| 20 5c 6c 27 5b 5e 61 62 | 63 2e 2e 2e 5d 27 0a 58 | \l'[^ab|c...]'.X|
|000044e0| 2e 42 49 20 28 20 72 20 | 29 0a 58 67 72 6f 75 70 |.BI ( r |).Xgroup|
|000044f0| 69 6e 67 3a 20 6d 61 74 | 63 68 65 73 0a 58 2e 49 |ing: mat|ches.X.I|
|00004500| 52 20 72 20 2e 0a 58 2e | 52 45 0a 58 54 68 65 20 |R r ..X.|RE.XThe |
|00004510| 65 73 63 61 70 65 20 73 | 65 71 75 65 6e 63 65 73 |escape s|equences|
|00004520| 20 74 68 61 74 20 61 72 | 65 20 76 61 6c 69 64 20 | that ar|e valid |
|00004530| 69 6e 20 73 74 72 69 6e | 67 20 63 6f 6e 73 74 61 |in strin|g consta|
|00004540| 6e 74 73 20 28 73 65 65 | 20 62 65 6c 6f 77 29 0a |nts (see| below).|
|00004550| 58 61 72 65 20 61 6c 73 | 6f 20 6c 65 67 61 6c 20 |Xare als|o legal |
|00004560| 69 6e 20 72 65 67 75 6c | 61 72 20 65 78 70 72 65 |in regul|ar expre|
|00004570| 73 73 69 6f 6e 73 2e 0a | 58 2e 53 53 20 41 63 74 |ssions..|X.SS Act|
|00004580| 69 6f 6e 73 0a 58 41 63 | 74 69 6f 6e 20 73 74 61 |ions.XAc|tion sta|
|00004590| 74 65 6d 65 6e 74 73 20 | 61 72 65 20 65 6e 63 6c |tements |are encl|
|000045a0| 6f 73 65 64 20 69 6e 20 | 62 72 61 63 65 73 2c 0a |osed in |braces,.|
|000045b0| 58 2e 42 20 7b 0a 58 61 | 6e 64 0a 58 2e 42 52 20 |X.B {.Xa|nd.X.BR |
|000045c0| 7d 20 2e 0a 58 41 63 74 | 69 6f 6e 20 73 74 61 74 |} ..XAct|ion stat|
|000045d0| 65 6d 65 6e 74 73 20 63 | 6f 6e 73 69 73 74 20 6f |ements c|onsist o|
|000045e0| 66 20 74 68 65 20 75 73 | 75 61 6c 20 61 73 73 69 |f the us|ual assi|
|000045f0| 67 6e 6d 65 6e 74 2c 20 | 63 6f 6e 64 69 74 69 6f |gnment, |conditio|
|00004600| 6e 61 6c 2c 20 61 6e 64 | 20 6c 6f 6f 70 69 6e 67 |nal, and| looping|
|00004610| 0a 58 73 74 61 74 65 6d | 65 6e 74 73 20 66 6f 75 |.Xstatem|ents fou|
|00004620| 6e 64 20 69 6e 20 6d 6f | 73 74 20 6c 61 6e 67 75 |nd in mo|st langu|
|00004630| 61 67 65 73 2e 20 54 68 | 65 20 6f 70 65 72 61 74 |ages. Th|e operat|
|00004640| 6f 72 73 2c 20 63 6f 6e | 74 72 6f 6c 20 73 74 61 |ors, con|trol sta|
|00004650| 74 65 6d 65 6e 74 73 2c | 0a 58 61 6e 64 20 69 6e |tements,|.Xand in|
|00004660| 70 75 74 2f 6f 75 74 70 | 75 74 20 73 74 61 74 65 |put/outp|ut state|
|00004670| 6d 65 6e 74 73 0a 58 61 | 76 61 69 6c 61 62 6c 65 |ments.Xa|vailable|
|00004680| 20 61 72 65 20 70 61 74 | 74 65 72 6e 65 64 20 61 | are pat|terned a|
|00004690| 66 74 65 72 20 74 68 6f | 73 65 20 69 6e 20 43 2e |fter tho|se in C.|
|000046a0| 0a 58 2e 53 53 20 4f 70 | 65 72 61 74 6f 72 73 0a |.X.SS Op|erators.|
|000046b0| 58 2e 50 50 0a 58 54 68 | 65 20 6f 70 65 72 61 74 |X.PP.XTh|e operat|
|000046c0| 6f 72 73 20 69 6e 20 41 | 57 4b 2c 20 69 6e 20 6f |ors in A|WK, in o|
|000046d0| 72 64 65 72 20 6f 66 20 | 69 6e 63 72 65 61 73 69 |rder of |increasi|
|000046e0| 6e 67 20 70 72 65 63 65 | 64 65 6e 63 65 2c 20 61 |ng prece|dence, a|
|000046f0| 72 65 0a 58 2e 50 50 0a | 58 2e 52 53 0a 58 2e 54 |re.X.PP.|X.RS.X.T|
|00004700| 50 20 5c 6c 27 5c 66 42 | 3d 20 2b 3d 20 5c 2d 3d |P \l'\fB|= += \-=|
|00004710| 20 2a 3d 20 2f 3d 20 25 | 3d 20 5e 3d 5c 66 52 27 | *= /= %|= ^=\fR'|
|00004720| 0a 58 2e 42 20 22 3d 20 | 2b 3d 20 5c 2d 3d 20 2a |.X.B "= |+= \-= *|
|00004730| 3d 20 2f 3d 20 25 3d 20 | 5e 3d 22 0a 58 41 73 73 |= /= %= |^=".XAss|
|00004740| 69 67 6e 6d 65 6e 74 2e | 20 42 6f 74 68 20 61 62 |ignment.| Both ab|
|00004750| 73 6f 6c 75 74 65 20 61 | 73 73 69 67 6e 6d 65 6e |solute a|ssignmen|
|00004760| 74 0a 58 2e 42 49 20 28 | 20 76 61 72 20 22 20 3d |t.X.BI (| var " =|
|00004770| 20 22 20 76 61 6c 75 65 | 20 29 0a 58 61 6e 64 20 | " value| ).Xand |
|00004780| 6f 70 65 72 61 74 6f 72 | 2d 61 73 73 69 67 6e 6d |operator|-assignm|
|00004790| 65 6e 74 20 28 74 68 65 | 20 6f 74 68 65 72 20 66 |ent (the| other f|
|000047a0| 6f 72 6d 73 29 20 61 72 | 65 20 73 75 70 70 6f 72 |orms) ar|e suppor|
|000047b0| 74 65 64 2e 0a 58 2e 54 | 50 20 5c 6c 27 5c 66 42 |ted..X.T|P \l'\fB|
|000047c0| 3d 20 2b 3d 20 5c 2d 3d | 20 2a 3d 20 2f 3d 20 25 |= += \-=| *= /= %|
|000047d0| 3d 20 5e 3d 5c 66 52 27 | 0a 58 2e 42 20 3f 3a 0a |= ^=\fR'|.X.B ?:.|
|000047e0| 58 54 68 65 20 43 20 63 | 6f 6e 64 69 74 69 6f 6e |XThe C c|ondition|
|000047f0| 61 6c 20 65 78 70 72 65 | 73 73 69 6f 6e 2e 20 54 |al expre|ssion. T|
|00004800| 68 69 73 20 68 61 73 20 | 74 68 65 20 66 6f 72 6d |his has |the form|
|00004810| 0a 58 2e 49 42 20 65 78 | 70 72 31 20 22 20 3f 20 |.X.IB ex|pr1 " ? |
|00004820| 22 20 65 78 70 72 32 20 | 22 20 3a 20 22 20 65 78 |" expr2 |" : " ex|
|00004830| 70 72 33 5c 63 0a 58 5c | 26 2e 20 49 66 0a 58 2e |pr3\c.X\|&. If.X.|
|00004840| 49 20 65 78 70 72 31 0a | 58 69 73 20 74 72 75 65 |I expr1.|Xis true|
|00004850| 2c 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |, the va|lue of t|
|00004860| 68 65 20 65 78 70 72 65 | 73 73 69 6f 6e 20 69 73 |he expre|ssion is|
|00004870| 0a 58 2e 49 52 20 65 78 | 70 72 32 20 2c 0a 58 6f |.X.IR ex|pr2 ,.Xo|
|00004880| 74 68 65 72 77 69 73 65 | 20 69 74 20 69 73 0a 58 |therwise| it is.X|
|00004890| 2e 49 52 20 65 78 70 72 | 33 20 2e 0a 58 4f 6e 6c |.IR expr|3 ..XOnl|
|000048a0| 79 20 6f 6e 65 20 6f 66 | 0a 58 2e 49 20 65 78 70 |y one of|.X.I exp|
|000048b0| 72 32 0a 58 61 6e 64 0a | 58 2e 49 20 65 78 70 72 |r2.Xand.|X.I expr|
|000048c0| 33 0a 58 69 73 20 65 76 | 61 6c 75 61 74 65 64 2e |3.Xis ev|aluated.|
|000048d0| 0a 58 2e 54 50 20 5c 6c | 27 5c 66 42 3d 20 2b 3d |.X.TP \l|'\fB= +=|
|000048e0| 20 5c 2d 3d 20 2a 3d 20 | 2f 3d 20 25 3d 20 5e 3d | \-= *= |/= %= ^=|
|000048f0| 5c 66 52 27 0a 58 2e 42 | 20 7c 7c 0a 58 6c 6f 67 |\fR'.X.B| ||.Xlog|
|00004900| 69 63 61 6c 20 4f 52 2e | 0a 58 2e 54 50 20 5c 6c |ical OR.|.X.TP \l|
|00004910| 27 5c 66 42 3d 20 2b 3d | 20 5c 2d 3d 20 2a 3d 20 |'\fB= +=| \-= *= |
|00004920| 2f 3d 20 25 3d 20 5e 3d | 5c 66 52 27 0a 58 2e 42 |/= %= ^=|\fR'.X.B|
|00004930| 20 26 26 0a 58 6c 6f 67 | 69 63 61 6c 20 41 4e 44 | &&.Xlog|ical AND|
|00004940| 2e 0a 58 2e 54 50 20 5c | 6c 27 5c 66 42 3d 20 2b |..X.TP \|l'\fB= +|
|00004950| 3d 20 5c 2d 3d 20 2a 3d | 20 2f 3d 20 25 3d 20 5e |= \-= *=| /= %= ^|
|00004960| 3d 5c 66 52 27 0a 58 2e | 42 20 22 7e 20 21 7e 22 |=\fR'.X.|B "~ !~"|
|00004970| 0a 58 72 65 67 75 6c 61 | 72 20 65 78 70 72 65 73 |.Xregula|r expres|
|00004980| 73 69 6f 6e 20 6d 61 74 | 63 68 2c 20 6e 65 67 61 |sion mat|ch, nega|
|00004990| 74 65 64 20 6d 61 74 63 | 68 2e 0a 58 2e 54 50 20 |ted matc|h..X.TP |
|000049a0| 5c 6c 27 5c 66 42 3d 20 | 2b 3d 20 5c 2d 3d 20 2a |\l'\fB= |+= \-= *|
|000049b0| 3d 20 2f 3d 20 25 3d 20 | 5e 3d 5c 66 52 27 0a 58 |= /= %= |^=\fR'.X|
|000049c0| 2e 42 20 22 3c 20 3c 3d | 20 3e 20 3e 3d 20 21 3d |.B "< <=| > >= !=|
|000049d0| 20 3d 3d 22 0a 58 74 68 | 65 20 72 65 67 75 6c 61 | ==".Xth|e regula|
|000049e0| 72 20 72 65 6c 61 74 69 | 6f 6e 61 6c 20 6f 70 65 |r relati|onal ope|
|000049f0| 72 61 74 6f 72 73 2e 0a | 58 2e 54 50 20 5c 6c 27 |rators..|X.TP \l'|
|00004a00| 5c 66 42 3d 20 2b 3d 20 | 5c 2d 3d 20 2a 3d 20 2f |\fB= += |\-= *= /|
|00004a10| 3d 20 25 3d 20 5e 3d 5c | 66 52 27 0a 58 2e 49 20 |= %= ^=\|fR'.X.I |
|00004a20| 62 6c 61 6e 6b 0a 58 73 | 74 72 69 6e 67 20 63 6f |blank.Xs|tring co|
|00004a30| 6e 63 61 74 65 6e 61 74 | 69 6f 6e 2e 0a 58 2e 54 |ncatenat|ion..X.T|
|00004a40| 50 20 5c 6c 27 5c 66 42 | 3d 20 2b 3d 20 5c 2d 3d |P \l'\fB|= += \-=|
|00004a50| 20 2a 3d 20 2f 3d 20 25 | 3d 20 5e 3d 5c 66 52 27 | *= /= %|= ^=\fR'|
|00004a60| 0a 58 2e 42 20 22 2b 20 | 5c 2d 22 0a 58 61 64 64 |.X.B "+ |\-".Xadd|
|00004a70| 69 74 69 6f 6e 20 61 6e | 64 20 73 75 62 74 72 61 |ition an|d subtra|
|00004a80| 63 74 69 6f 6e 2e 0a 58 | 2e 54 50 20 5c 6c 27 5c |ction..X|.TP \l'\|
|00004a90| 66 42 3d 20 2b 3d 20 5c | 2d 3d 20 2a 3d 20 2f 3d |fB= += \|-= *= /=|
|00004aa0| 20 25 3d 20 5e 3d 5c 66 | 52 27 0a 58 2e 42 20 22 | %= ^=\f|R'.X.B "|
|00004ab0| 2a 20 2f 20 25 22 0a 58 | 6d 75 6c 74 69 70 6c 69 |* / %".X|multipli|
|00004ac0| 63 61 74 69 6f 6e 2c 20 | 64 69 76 69 73 69 6f 6e |cation, |division|
|00004ad0| 2c 20 61 6e 64 20 6d 6f | 64 75 6c 75 73 2e 0a 58 |, and mo|dulus..X|
|00004ae0| 2e 54 50 20 5c 6c 27 5c | 66 42 3d 20 2b 3d 20 5c |.TP \l'\|fB= += \|
|00004af0| 2d 3d 20 2a 3d 20 2f 3d | 20 25 3d 20 5e 3d 5c 66 |-= *= /=| %= ^=\f|
|00004b00| 52 27 0a 58 2e 42 20 22 | 2b 20 5c 2d 20 21 22 0a |R'.X.B "|+ \- !".|
|00004b10| 58 75 6e 61 72 79 20 70 | 6c 75 73 2c 20 75 6e 61 |Xunary p|lus, una|
|00004b20| 72 79 20 6d 69 6e 75 73 | 2c 20 61 6e 64 20 6c 6f |ry minus|, and lo|
|00004b30| 67 69 63 61 6c 20 6e 65 | 67 61 74 69 6f 6e 2e 0a |gical ne|gation..|
|00004b40| 58 2e 54 50 20 5c 6c 27 | 5c 66 42 3d 20 2b 3d 20 |X.TP \l'|\fB= += |
|00004b50| 5c 2d 3d 20 2a 3d 20 2f | 3d 20 25 3d 20 5e 3d 5c |\-= *= /|= %= ^=\|
|00004b60| 66 52 27 0a 58 2e 42 20 | 5e 0a 58 65 78 70 6f 6e |fR'.X.B |^.Xexpon|
|00004b70| 65 6e 74 69 61 74 69 6f | 6e 20 28 5c 66 42 2a 2a |entiatio|n (\fB**|
|00004b80| 5c 66 52 20 6d 61 79 20 | 61 6c 73 6f 20 62 65 20 |\fR may |also be |
|00004b90| 75 73 65 64 2c 20 61 6e | 64 20 5c 66 42 2a 2a 3d |used, an|d \fB**=|
|00004ba0| 5c 66 52 20 66 6f 72 0a | 58 74 68 65 20 61 73 73 |\fR for.|Xthe ass|
|00004bb0| 69 67 6e 6d 65 6e 74 20 | 6f 70 65 72 61 74 6f 72 |ignment |operator|
|00004bc0| 29 2e 0a 58 2e 54 50 20 | 5c 6c 27 5c 66 42 3d 20 |)..X.TP |\l'\fB= |
|00004bd0| 2b 3d 20 5c 2d 3d 20 2a | 3d 20 2f 3d 20 25 3d 20 |+= \-= *|= /= %= |
|00004be0| 5e 3d 5c 66 52 27 0a 58 | 2e 42 20 22 2b 2b 20 5c |^=\fR'.X|.B "++ \|
|00004bf0| 2d 5c 5e 5c 2d 22 0a 58 | 69 6e 63 72 65 6d 65 6e |-\^\-".X|incremen|
|00004c00| 74 20 61 6e 64 20 64 65 | 63 72 65 6d 65 6e 74 2c |t and de|crement,|
|00004c10| 20 62 6f 74 68 20 70 72 | 65 66 69 78 20 61 6e 64 | both pr|efix and|
|00004c20| 20 70 6f 73 74 66 69 78 | 2e 0a 58 2e 54 50 20 5c | postfix|..X.TP \|
|00004c30| 6c 27 5c 66 42 3d 20 2b | 3d 20 5c 2d 3d 20 2a 3d |l'\fB= +|= \-= *=|
|00004c40| 20 2f 3d 20 25 3d 20 5e | 3d 5c 66 52 27 0a 58 2e | /= %= ^|=\fR'.X.|
|00004c50| 42 20 24 0a 58 66 69 65 | 6c 64 20 72 65 66 65 72 |B $.Xfie|ld refer|
|00004c60| 65 6e 63 65 2e 0a 58 2e | 52 45 0a 58 2e 53 53 20 |ence..X.|RE.X.SS |
|00004c70| 43 6f 6e 74 72 6f 6c 20 | 53 74 61 74 65 6d 65 6e |Control |Statemen|
|00004c80| 74 73 0a 58 2e 50 50 0a | 58 54 68 65 20 63 6f 6e |ts.X.PP.|XThe con|
|00004c90| 74 72 6f 6c 20 73 74 61 | 74 65 6d 65 6e 74 73 20 |trol sta|tements |
|00004ca0| 61 72 65 0a 58 61 73 20 | 66 6f 6c 6c 6f 77 73 3a |are.Xas |follows:|
|00004cb0| 0a 58 2e 50 50 0a 58 2e | 52 53 0a 58 2e 6e 66 0a |.X.PP.X.|RS.X.nf.|
|00004cc0| 58 5c 66 42 69 66 20 28 | 5c 66 49 63 6f 6e 64 69 |X\fBif (|\fIcondi|
|00004cd0| 74 69 6f 6e 5c 66 42 29 | 20 5c 66 49 73 74 61 74 |tion\fB)| \fIstat|
|00004ce0| 65 6d 65 6e 74 5c 66 52 | 20 5b 20 5c 66 42 65 6c |ement\fR| [ \fBel|
|00004cf0| 73 65 5c 66 49 20 73 74 | 61 74 65 6d 65 6e 74 20 |se\fI st|atement |
|00004d00| 5c 66 52 5d 0a 58 5c 66 | 42 77 68 69 6c 65 20 28 |\fR].X\f|Bwhile (|
|00004d10| 5c 66 49 63 6f 6e 64 69 | 74 69 6f 6e 5c 66 42 29 |\fIcondi|tion\fB)|
|00004d20| 20 5c 66 49 73 74 61 74 | 65 6d 65 6e 74 20 5c 66 | \fIstat|ement \f|
|00004d30| 52 0a 58 5c 66 42 64 6f | 20 5c 66 49 73 74 61 74 |R.X\fBdo| \fIstat|
|00004d40| 65 6d 65 6e 74 20 5c 66 | 42 77 68 69 6c 65 20 28 |ement \f|Bwhile (|
|00004d50| 5c 66 49 63 6f 6e 64 69 | 74 69 6f 6e 5c 66 42 29 |\fIcondi|tion\fB)|
|00004d60| 5c 66 52 0a 58 5c 66 42 | 66 6f 72 20 28 5c 66 49 |\fR.X\fB|for (\fI|
|00004d70| 65 78 70 72 31 5c 66 42 | 3b 20 5c 66 49 65 78 70 |expr1\fB|; \fIexp|
|00004d80| 72 32 5c 66 42 3b 20 5c | 66 49 65 78 70 72 33 5c |r2\fB; \|fIexpr3\|
|00004d90| 66 42 29 20 5c 66 49 73 | 74 61 74 65 6d 65 6e 74 |fB) \fIs|tatement|
|00004da0| 5c 66 52 0a 58 5c 66 42 | 66 6f 72 20 28 5c 66 49 |\fR.X\fB|for (\fI|
|00004db0| 76 61 72 20 5c 66 42 69 | 6e 5c 66 49 20 61 72 72 |var \fBi|n\fI arr|
|00004dc0| 61 79 5c 66 42 29 20 5c | 66 49 73 74 61 74 65 6d |ay\fB) \|fIstatem|
|00004dd0| 65 6e 74 5c 66 52 0a 58 | 5c 66 42 62 72 65 61 6b |ent\fR.X|\fBbreak|
|00004de0| 5c 66 52 0a 58 5c 66 42 | 63 6f 6e 74 69 6e 75 65 |\fR.X\fB|continue|
|00004df0| 5c 66 52 0a 58 5c 66 42 | 64 65 6c 65 74 65 20 5c |\fR.X\fB|delete \|
|00004e00| 66 49 61 72 72 61 79 5c | 5e 5c 66 42 5b 5c 5e 5c |fIarray\|^\fB[\^\|
|00004e10| 66 49 69 6e 64 65 78 5c | 5e 5c 66 42 5d 5c 66 52 |fIindex\|^\fB]\fR|
|00004e20| 0a 58 5c 66 42 65 78 69 | 74 5c 66 52 20 5b 20 5c |.X\fBexi|t\fR [ \|
|00004e30| 66 49 65 78 70 72 65 73 | 73 69 6f 6e 5c 66 52 20 |fIexpres|sion\fR |
|00004e40| 5d 0a 58 5c 66 42 7b 20 | 5c 66 49 73 74 61 74 65 |].X\fB{ |\fIstate|
|00004e50| 6d 65 6e 74 73 20 5c 66 | 42 7d 0a 58 2e 66 69 0a |ments \f|B}.X.fi.|
|00004e60| 58 2e 52 45 0a 58 2e 53 | 53 20 22 49 2f 4f 20 53 |X.RE.X.S|S "I/O S|
|00004e70| 74 61 74 65 6d 65 6e 74 | 73 22 0a 58 2e 50 50 0a |tatement|s".X.PP.|
|00004e80| 58 54 68 65 20 69 6e 70 | 75 74 2f 6f 75 74 70 75 |XThe inp|ut/outpu|
|00004e90| 74 20 73 74 61 74 65 6d | 65 6e 74 73 20 61 72 65 |t statem|ents are|
|00004ea0| 20 61 73 20 66 6f 6c 6c | 6f 77 73 3a 0a 58 2e 50 | as foll|ows:.X.P|
|00004eb0| 50 0a 58 2e 52 53 0a 58 | 2e 54 50 20 5c 6c 27 5c |P.X.RS.X|.TP \l'\|
|00004ec0| 66 42 70 72 69 6e 74 66 | 20 5c 66 49 66 6d 74 2c |fBprintf| \fIfmt,|
|00004ed0| 20 65 78 70 72 2d 6c 69 | 73 74 5c 66 52 27 0a 58 | expr-li|st\fR'.X|
|00004ee0| 2e 42 49 20 63 6c 6f 73 | 65 28 20 66 69 6c 65 6e |.BI clos|e( filen|
|00004ef0| 61 6d 65 20 29 0a 58 63 | 6c 6f 73 65 20 66 69 6c |ame ).Xc|lose fil|
|00004f00| 65 20 28 6f 72 20 70 69 | 70 65 2c 20 73 65 65 20 |e (or pi|pe, see |
|00004f10| 62 65 6c 6f 77 29 2e 0a | 58 2e 54 50 20 5c 6c 27 |below)..|X.TP \l'|
|00004f20| 5c 66 42 70 72 69 6e 74 | 66 20 5c 66 49 66 6d 74 |\fBprint|f \fIfmt|
|00004f30| 2c 20 65 78 70 72 2d 6c | 69 73 74 5c 66 52 27 0a |, expr-l|ist\fR'.|
|00004f40| 58 2e 42 20 67 65 74 6c | 69 6e 65 0a 58 73 65 74 |X.B getl|ine.Xset|
|00004f50| 0a 58 2e 42 20 24 30 0a | 58 66 72 6f 6d 20 6e 65 |.X.B $0.|Xfrom ne|
|00004f60| 78 74 20 69 6e 70 75 74 | 20 72 65 63 6f 72 64 3b |xt input| record;|
|00004f70| 20 73 65 74 0a 58 2e 42 | 52 20 4e 46 20 2c 0a 58 | set.X.B|R NF ,.X|
|00004f80| 2e 42 52 20 4e 52 20 2c | 0a 58 2e 42 52 20 46 4e |.BR NR ,|.X.BR FN|
|00004f90| 52 20 2e 0a 58 2e 54 50 | 20 5c 6c 27 5c 66 42 70 |R ..X.TP| \l'\fBp|
|00004fa0| 72 69 6e 74 66 20 5c 66 | 49 66 6d 74 2c 20 65 78 |rintf \f|Ifmt, ex|
|00004fb0| 70 72 2d 6c 69 73 74 5c | 66 52 27 0a 58 2e 42 49 |pr-list\|fR'.X.BI|
|00004fc0| 20 22 67 65 74 6c 69 6e | 65 20 3c 22 20 66 69 6c | "getlin|e <" fil|
|00004fd0| 65 0a 58 73 65 74 0a 58 | 2e 42 20 24 30 0a 58 66 |e.Xset.X|.B $0.Xf|
|00004fe0| 72 6f 6d 20 6e 65 78 74 | 20 72 65 63 6f 72 64 20 |rom next| record |
|00004ff0| 6f 66 0a 58 2e 49 52 20 | 66 69 6c 65 20 3b 0a 58 |of.X.IR |file ;.X|
|00005000| 73 65 74 0a 58 2e 42 52 | 20 4e 46 20 2e 0a 58 2e |set.X.BR| NF ..X.|
|00005010| 54 50 20 5c 6c 27 5c 66 | 42 70 72 69 6e 74 66 20 |TP \l'\f|Bprintf |
|00005020| 5c 66 49 66 6d 74 2c 20 | 65 78 70 72 2d 6c 69 73 |\fIfmt, |expr-lis|
|00005030| 74 5c 66 52 27 0a 58 2e | 42 49 20 67 65 74 6c 69 |t\fR'.X.|BI getli|
|00005040| 6e 65 20 22 20 76 61 72 | 22 0a 58 73 65 74 0a 58 |ne " var|".Xset.X|
|00005050| 2e 49 20 76 61 72 0a 58 | 66 72 6f 6d 20 6e 65 78 |.I var.X|from nex|
|00005060| 74 20 69 6e 70 75 74 20 | 72 65 63 6f 72 64 3b 20 |t input |record; |
|00005070| 73 65 74 0a 58 2e 42 52 | 20 4e 46 20 2c 0a 58 2e |set.X.BR| NF ,.X.|
|00005080| 42 52 20 46 4e 52 20 2e | 0a 58 2e 54 50 20 5c 6c |BR FNR .|.X.TP \l|
|00005090| 27 5c 66 42 70 72 69 6e | 74 66 20 5c 66 49 66 6d |'\fBprin|tf \fIfm|
|000050a0| 74 2c 20 65 78 70 72 2d | 6c 69 73 74 5c 66 52 27 |t, expr-|list\fR'|
|000050b0| 0a 58 2e 42 49 20 67 65 | 74 6c 69 6e 65 20 22 20 |.X.BI ge|tline " |
|000050c0| 76 61 72 22 20 22 20 3c | 22 20 66 69 6c 65 0a 58 |var" " <|" file.X|
|000050d0| 73 65 74 0a 58 2e 49 20 | 76 61 72 0a 58 66 72 6f |set.X.I |var.Xfro|
|000050e0| 6d 20 6e 65 78 74 20 72 | 65 63 6f 72 64 20 6f 66 |m next r|ecord of|
|000050f0| 0a 58 2e 49 52 20 66 69 | 6c 65 20 2e 0a 58 2e 54 |.X.IR fi|le ..X.T|
|00005100| 50 20 5c 6c 27 5c 66 42 | 70 72 69 6e 74 66 20 5c |P \l'\fB|printf \|
|00005110| 66 49 66 6d 74 2c 20 65 | 78 70 72 2d 6c 69 73 74 |fIfmt, e|xpr-list|
|00005120| 5c 66 52 27 0a 58 2e 42 | 20 6e 65 78 74 0a 58 53 |\fR'.X.B| next.XS|
|00005130| 74 6f 70 20 70 72 6f 63 | 65 73 73 69 6e 67 20 74 |top proc|essing t|
|00005140| 68 65 20 63 75 72 72 65 | 6e 74 20 69 6e 70 75 74 |he curre|nt input|
|00005150| 20 72 65 63 6f 72 64 2e | 20 54 68 65 20 6e 65 78 | record.| The nex|
|00005160| 74 20 69 6e 70 75 74 20 | 72 65 63 6f 72 64 0a 58 |t input |record.X|
|00005170| 69 73 20 72 65 61 64 20 | 61 6e 64 20 70 72 6f 63 |is read |and proc|
|00005180| 65 73 73 69 6e 67 20 73 | 74 61 72 74 73 20 6f 76 |essing s|tarts ov|
|00005190| 65 72 20 77 69 74 68 20 | 74 68 65 20 66 69 72 73 |er with |the firs|
|000051a0| 74 20 70 61 74 74 65 72 | 6e 20 69 6e 20 74 68 65 |t patter|n in the|
|000051b0| 0a 58 41 57 4b 20 70 72 | 6f 67 72 61 6d 2e 20 49 |.XAWK pr|ogram. I|
|000051c0| 66 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |f the en|d of the|
|000051d0| 20 69 6e 70 75 74 20 64 | 61 74 61 20 69 73 20 72 | input d|ata is r|
|000051e0| 65 61 63 68 65 64 2c 20 | 74 68 65 0a 58 2e 42 20 |eached, |the.X.B |
|000051f0| 45 4e 44 0a 58 62 6c 6f | 63 6b 28 73 29 2c 20 69 |END.Xblo|ck(s), i|
|00005200| 66 20 61 6e 79 2c 20 61 | 72 65 20 65 78 65 63 75 |f any, a|re execu|
|00005210| 74 65 64 2e 0a 58 2e 54 | 50 20 5c 6c 27 5c 66 42 |ted..X.T|P \l'\fB|
|00005220| 70 72 69 6e 74 66 20 5c | 66 49 66 6d 74 2c 20 65 |printf \|fIfmt, e|
|00005230| 78 70 72 2d 6c 69 73 74 | 5c 66 52 27 0a 58 2e 42 |xpr-list|\fR'.X.B|
|00005240| 20 70 72 69 6e 74 0a 58 | 70 72 69 6e 74 73 20 74 | print.X|prints t|
|00005250| 68 65 20 63 75 72 72 65 | 6e 74 20 72 65 63 6f 72 |he curre|nt recor|
|00005260| 64 2e 0a 58 2e 54 50 20 | 5c 6c 27 5c 66 42 70 72 |d..X.TP |\l'\fBpr|
|00005270| 69 6e 74 66 20 5c 66 49 | 66 6d 74 2c 20 65 78 70 |intf \fI|fmt, exp|
|00005280| 72 2d 6c 69 73 74 5c 66 | 52 27 0a 58 2e 42 49 20 |r-list\f|R'.X.BI |
|00005290| 70 72 69 6e 74 20 22 20 | 65 78 70 72 2d 6c 69 73 |print " |expr-lis|
|000052a0| 74 22 0a 58 70 72 69 6e | 74 73 20 65 78 70 72 65 |t".Xprin|ts expre|
|000052b0| 73 73 69 6f 6e 73 2e 0a | 58 2e 54 50 20 5c 6c 27 |ssions..|X.TP \l'|
|000052c0| 5c 66 42 70 72 69 6e 74 | 66 20 5c 66 49 66 6d 74 |\fBprint|f \fIfmt|
|000052d0| 2c 20 65 78 70 72 2d 6c | 69 73 74 5c 66 52 27 0a |, expr-l|ist\fR'.|
|000052e0| 58 2e 42 49 20 70 72 69 | 6e 74 20 22 20 65 78 70 |X.BI pri|nt " exp|
|000052f0| 72 2d 6c 69 73 74 22 20 | 22 20 3e 22 20 66 69 6c |r-list" |" >" fil|
|00005300| 65 0a 58 70 72 69 6e 74 | 73 20 65 78 70 72 65 73 |e.Xprint|s expres|
|00005310| 73 69 6f 6e 73 20 6f 6e | 0a 58 2e 49 52 20 66 69 |sions on|.X.IR fi|
|00005320| 6c 65 20 2e 0a 58 2e 54 | 50 20 5c 6c 27 5c 66 42 |le ..X.T|P \l'\fB|
|00005330| 70 72 69 6e 74 66 20 5c | 66 49 66 6d 74 2c 20 65 |printf \|fIfmt, e|
|00005340| 78 70 72 2d 6c 69 73 74 | 5c 66 52 27 0a 58 2e 42 |xpr-list|\fR'.X.B|
|00005350| 49 20 70 72 69 6e 74 66 | 20 22 20 66 6d 74 2c 20 |I printf| " fmt, |
|00005360| 65 78 70 72 2d 6c 69 73 | 74 22 0a 58 66 6f 72 6d |expr-lis|t".Xform|
|00005370| 61 74 20 61 6e 64 20 70 | 72 69 6e 74 2e 0a 58 2e |at and p|rint..X.|
|00005380| 54 50 20 5c 6c 27 5c 66 | 42 70 72 69 6e 74 66 20 |TP \l'\f|Bprintf |
|00005390| 5c 66 49 66 6d 74 2c 20 | 65 78 70 72 2d 6c 69 73 |\fIfmt, |expr-lis|
|000053a0| 74 5c 66 52 27 0a 58 2e | 42 49 20 70 72 69 6e 74 |t\fR'.X.|BI print|
|000053b0| 66 20 22 20 66 6d 74 2c | 20 65 78 70 72 2d 6c 69 |f " fmt,| expr-li|
|000053c0| 73 74 22 20 22 20 3e 22 | 20 66 69 6c 65 0a 58 66 |st" " >"| file.Xf|
|000053d0| 6f 72 6d 61 74 20 61 6e | 64 20 70 72 69 6e 74 20 |ormat an|d print |
|000053e0| 6f 6e 0a 58 2e 49 52 20 | 66 69 6c 65 20 2e 0a 58 |on.X.IR |file ..X|
|000053f0| 2e 54 50 20 5c 6c 27 5c | 66 42 70 72 69 6e 74 66 |.TP \l'\|fBprintf|
|00005400| 20 5c 66 49 66 6d 74 2c | 20 65 78 70 72 2d 6c 69 | \fIfmt,| expr-li|
|00005410| 73 74 5c 66 52 27 0a 58 | 2e 42 49 20 73 79 73 74 |st\fR'.X|.BI syst|
|00005420| 65 6d 28 20 63 6d 64 2d | 6c 69 6e 65 20 29 0a 58 |em( cmd-|line ).X|
|00005430| 65 78 65 63 75 74 65 20 | 74 68 65 20 63 6f 6d 6d |execute |the comm|
|00005440| 61 6e 64 0a 58 2e 49 52 | 20 63 6d 64 2d 6c 69 6e |and.X.IR| cmd-lin|
|00005450| 65 20 2c 0a 58 61 6e 64 | 20 72 65 74 75 72 6e 20 |e ,.Xand| return |
|00005460| 74 68 65 20 65 78 69 74 | 20 73 74 61 74 75 73 2e |the exit| status.|
|00005470| 0a 58 28 54 68 69 73 20 | 6d 61 79 20 6e 6f 74 20 |.X(This |may not |
|00005480| 62 65 20 61 76 61 69 6c | 61 62 6c 65 20 6f 6e 20 |be avail|able on |
|00005490| 0a 58 73 79 73 74 65 6d | 73 20 62 65 73 69 64 65 |.Xsystem|s beside|
|000054a0| 73 20 5c 73 2d 31 55 4e | 49 58 5c 73 2b 31 20 61 |s \s-1UN|IX\s+1 a|
|000054b0| 6e 64 20 5c 73 2d 31 47 | 4e 55 5c 73 2b 31 2e 29 |nd \s-1G|NU\s+1.)|
|000054c0| 0a 58 2e 52 45 0a 58 2e | 50 50 0a 58 4f 74 68 65 |.X.RE.X.|PP.XOthe|
|000054d0| 72 20 69 6e 70 75 74 2f | 6f 75 74 70 75 74 20 72 |r input/|output r|
|000054e0| 65 64 69 72 65 63 74 69 | 6f 6e 73 20 61 72 65 20 |edirecti|ons are |
|000054f0| 61 6c 73 6f 20 61 6c 6c | 6f 77 65 64 2e 20 46 6f |also all|owed. Fo|
|00005500| 72 0a 58 2e 42 20 70 72 | 69 6e 74 0a 58 61 6e 64 |r.X.B pr|int.Xand|
|00005510| 0a 58 2e 42 52 20 70 72 | 69 6e 74 66 20 2c 0a 58 |.X.BR pr|intf ,.X|
|00005520| 2e 42 49 20 3e 3e 20 66 | 69 6c 65 0a 58 61 70 70 |.BI >> f|ile.Xapp|
|00005530| 65 6e 64 73 20 6f 75 74 | 70 75 74 20 74 6f 20 74 |ends out|put to t|
|00005540| 68 65 0a 58 2e 49 52 20 | 66 69 6c 65 20 2c 0a 58 |he.X.IR |file ,.X|
|00005550| 77 68 69 6c 65 0a 58 2e | 42 49 20 7c 20 22 20 63 |while.X.|BI | " c|
|00005560| 6f 6d 6d 61 6e 64 22 0a | 58 77 72 69 74 65 73 20 |ommand".|Xwrites |
|00005570| 6f 6e 20 61 20 70 69 70 | 65 2e 0a 58 49 6e 20 61 |on a pip|e..XIn a|
|00005580| 20 73 69 6d 69 6c 61 72 | 20 66 61 73 68 69 6f 6e | similar| fashion|
|00005590| 2c 0a 58 2e 49 42 20 63 | 6f 6d 6d 61 6e 64 20 22 |,.X.IB c|ommand "|
|000055a0| 20 7c 20 67 65 74 6c 69 | 6e 65 22 0a 58 70 69 70 | | getli|ne".Xpip|
|000055b0| 65 73 20 69 6e 74 6f 0a | 58 2e 42 52 20 67 65 74 |es into.|X.BR get|
|000055c0| 6c 69 6e 65 20 2e 0a 58 | 2e 42 52 20 47 65 74 6c |line ..X|.BR Getl|
|000055d0| 69 6e 65 0a 58 77 69 6c | 6c 20 72 65 74 75 72 6e |ine.Xwil|l return|
|000055e0| 20 30 20 6f 6e 20 65 6e | 64 20 6f 66 20 66 69 6c | 0 on en|d of fil|
|000055f0| 65 2c 20 61 6e 64 20 5c | 2d 31 20 6f 6e 20 61 6e |e, and \|-1 on an|
|00005600| 20 65 72 72 6f 72 2e 0a | 58 2e 53 53 20 54 68 65 | error..|X.SS The|
|00005610| 20 5c 66 49 70 72 69 6e | 74 66 5c 66 50 20 53 74 | \fIprin|tf\fP St|
|00005620| 61 74 65 6d 65 6e 74 0a | 58 2e 50 50 0a 58 54 68 |atement.|X.PP.XTh|
|00005630| 65 20 41 57 4b 20 76 65 | 72 73 69 6f 6e 73 20 6f |e AWK ve|rsions o|
|00005640| 66 20 74 68 65 0a 58 2e | 42 20 70 72 69 6e 74 66 |f the.X.|B printf|
|00005650| 0a 58 61 6e 64 0a 58 2e | 42 20 73 70 72 69 6e 74 |.Xand.X.|B sprint|
|00005660| 66 0a 58 28 73 65 65 20 | 62 65 6c 6f 77 29 0a 58 |f.X(see |below).X|
|00005670| 66 75 6e 63 74 69 6f 6e | 73 20 61 63 63 65 70 74 |function|s accept|
|00005680| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | the fol|lowing c|
|00005690| 6f 6e 76 65 72 73 69 6f | 6e 20 73 70 65 63 69 66 |onversio|n specif|
|000056a0| 69 63 61 74 69 6f 6e 20 | 66 6f 72 6d 61 74 73 3a |ication |formats:|
|000056b0| 0a 58 2e 52 53 0a 58 2e | 54 50 0a 58 2e 42 20 25 |.X.RS.X.|TP.X.B %|
|000056c0| 63 0a 58 41 6e 20 41 53 | 43 49 49 20 63 68 61 72 |c.XAn AS|CII char|
|000056d0| 61 63 74 65 72 2e 0a 58 | 49 66 20 74 68 65 20 61 |acter..X|If the a|
|000056e0| 72 67 75 6d 65 6e 74 20 | 75 73 65 64 20 66 6f 72 |rgument |used for|
|000056f0| 0a 58 2e 42 20 25 63 0a | 58 69 73 20 6e 75 6d 65 |.X.B %c.|Xis nume|
|00005700| 72 69 63 2c 20 69 74 20 | 69 73 20 74 72 65 61 74 |ric, it |is treat|
|00005710| 65 64 20 61 73 20 61 20 | 63 68 61 72 61 63 74 65 |ed as a |characte|
|00005720| 72 20 61 6e 64 20 70 72 | 69 6e 74 65 64 2e 0a 58 |r and pr|inted..X|
|00005730| 4f 74 68 65 72 77 69 73 | 65 2c 20 74 68 65 20 61 |Otherwis|e, the a|
|00005740| 72 67 75 6d 65 6e 74 20 | 69 73 20 61 73 73 75 6d |rgument |is assum|
|00005750| 65 64 20 74 6f 20 62 65 | 20 61 20 73 74 72 69 6e |ed to be| a strin|
|00005760| 67 2c 20 61 6e 64 20 74 | 68 65 20 6f 6e 6c 79 20 |g, and t|he only |
|00005770| 66 69 72 73 74 0a 58 63 | 68 61 72 61 63 74 65 72 |first.Xc|haracter|
|00005780| 20 6f 66 20 74 68 61 74 | 20 73 74 72 69 6e 67 20 | of that| string |
|00005790| 69 73 20 70 72 69 6e 74 | 65 64 2e 0a 58 2e 54 50 |is print|ed..X.TP|
|000057a0| 0a 58 2e 42 20 25 64 0a | 58 41 20 64 65 63 69 6d |.X.B %d.|XA decim|
|000057b0| 61 6c 20 6e 75 6d 62 65 | 72 20 28 74 68 65 20 69 |al numbe|r (the i|
|000057c0| 6e 74 65 67 65 72 20 70 | 61 72 74 29 2e 0a 58 2e |nteger p|art)..X.|
|000057d0| 54 50 0a 58 2e 42 20 25 | 69 0a 58 4a 75 73 74 20 |TP.X.B %|i.XJust |
|000057e0| 6c 69 6b 65 0a 58 2e 42 | 52 20 25 64 20 2e 0a 58 |like.X.B|R %d ..X|
|000057f0| 2e 54 50 0a 58 2e 42 20 | 25 65 0a 58 41 20 66 6c |.TP.X.B |%e.XA fl|
|00005800| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 6e 75 6d |oating p|oint num|
|00005810| 62 65 72 20 6f 66 20 74 | 68 65 20 66 6f 72 6d 0a |ber of t|he form.|
|00005820| 58 2e 42 52 20 5b 5c 2d | 5d 64 2e 64 64 64 64 64 |X.BR [\-|]d.ddddd|
|00005830| 64 45 5b 2b 5c 5e 5c 2d | 5d 64 64 20 2e 0a 58 2e |dE[+\^\-|]dd ..X.|
|00005840| 54 50 0a 58 2e 42 20 25 | 66 0a 58 41 20 66 6c 6f |TP.X.B %|f.XA flo|
|00005850| 61 74 69 6e 67 20 70 6f | 69 6e 74 20 6e 75 6d 62 |ating po|int numb|
|00005860| 65 72 20 6f 66 20 74 68 | 65 20 66 6f 72 6d 0a 58 |er of th|e form.X|
|00005870| 2e 42 52 20 5b 5c 2d 5d | 64 64 64 2e 64 64 64 64 |.BR [\-]|ddd.dddd|
|00005880| 64 64 20 2e 0a 58 2e 54 | 50 0a 58 2e 42 20 25 67 |dd ..X.T|P.X.B %g|
|00005890| 0a 58 55 73 65 0a 58 2e | 42 20 65 0a 58 6f 72 0a |.XUse.X.|B e.Xor.|
|000058a0| 58 2e 42 20 66 0a 58 63 | 6f 6e 76 65 72 73 69 6f |X.B f.Xc|onversio|
|000058b0| 6e 2c 20 77 68 69 63 68 | 65 76 65 72 20 69 73 20 |n, which|ever is |
|000058c0| 73 68 6f 72 74 65 72 2c | 20 77 69 74 68 20 6e 6f |shorter,| with no|
|000058d0| 6e 73 69 67 6e 69 66 69 | 63 61 6e 74 20 7a 65 72 |nsignifi|cant zer|
|000058e0| 6f 73 20 73 75 70 70 72 | 65 73 73 65 64 2e 0a 58 |os suppr|essed..X|
|000058f0| 2e 54 50 0a 58 2e 42 20 | 25 6f 0a 58 41 6e 20 75 |.TP.X.B |%o.XAn u|
|00005900| 6e 73 69 67 6e 65 64 20 | 6f 63 74 61 6c 20 6e 75 |nsigned |octal nu|
|00005910| 6d 62 65 72 20 28 61 67 | 61 69 6e 2c 20 61 6e 20 |mber (ag|ain, an |
|00005920| 69 6e 74 65 67 65 72 29 | 2e 0a 58 2e 54 50 0a 58 |integer)|..X.TP.X|
|00005930| 2e 42 20 25 73 0a 58 41 | 20 63 68 61 72 61 63 74 |.B %s.XA| charact|
|00005940| 65 72 20 73 74 72 69 6e | 67 2e 0a 58 2e 54 50 0a |er strin|g..X.TP.|
|00005950| 58 2e 42 20 25 78 0a 58 | 41 6e 20 75 6e 73 69 67 |X.B %x.X|An unsig|
|00005960| 6e 65 64 20 68 65 78 61 | 64 65 63 69 6d 61 6c 20 |ned hexa|decimal |
|00005970| 6e 75 6d 62 65 72 20 28 | 61 6e 20 69 6e 74 65 67 |number (|an integ|
|00005980| 65 72 29 2e 0a 58 2e 54 | 50 0a 58 2e 42 20 25 58 |er)..X.T|P.X.B %X|
|00005990| 0a 58 4c 69 6b 65 0a 58 | 2e 42 52 20 25 78 20 2c |.XLike.X|.BR %x ,|
|000059a0| 0a 58 62 75 74 20 75 73 | 69 6e 67 0a 58 2e 42 20 |.Xbut us|ing.X.B |
|000059b0| 41 42 43 44 45 46 0a 58 | 69 6e 73 74 65 61 64 20 |ABCDEF.X|instead |
|000059c0| 6f 66 0a 58 2e 42 52 20 | 61 62 63 64 65 66 20 2e |of.X.BR |abcdef .|
|000059d0| 0a 58 2e 54 50 0a 58 2e | 42 20 25 25 0a 58 41 20 |.X.TP.X.|B %%.XA |
|000059e0| 73 69 6e 67 6c 65 0a 58 | 2e 42 20 25 0a 58 63 68 |single.X|.B %.Xch|
|000059f0| 61 72 61 63 74 65 72 3b | 20 6e 6f 20 61 72 67 75 |aracter;| no argu|
|00005a00| 6d 65 6e 74 20 69 73 20 | 63 6f 6e 76 65 72 74 65 |ment is |converte|
|00005a10| 64 2e 0a 58 2e 52 45 0a | 58 2e 50 50 0a 58 54 68 |d..X.RE.|X.PP.XTh|
|00005a20| 65 72 65 20 61 72 65 20 | 6f 70 74 69 6f 6e 61 6c |ere are |optional|
|00005a30| 2c 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 70 61 72 |, additi|onal par|
|00005a40| 61 6d 65 74 65 72 73 20 | 74 68 61 74 20 6d 61 79 |ameters |that may|
|00005a50| 20 6c 69 65 20 62 65 74 | 77 65 65 6e 20 74 68 65 | lie bet|ween the|
|00005a60| 0a 58 2e 42 20 25 0a 58 | 61 6e 64 20 74 68 65 20 |.X.B %.X|and the |
|00005a70| 63 6f 6e 74 72 6f 6c 20 | 6c 65 74 74 65 72 3a 0a |control |letter:.|
|00005a80| 58 2e 52 53 0a 58 2e 54 | 50 0a 58 2e 42 20 5c 2d |X.RS.X.T|P.X.B \-|
|00005a90| 0a 58 54 68 65 20 65 78 | 70 72 65 73 73 69 6f 6e |.XThe ex|pression|
|00005aa0| 20 73 68 6f 75 6c 64 20 | 62 65 20 6c 65 66 74 2d | should |be left-|
|00005ab0| 6a 75 73 74 69 66 69 65 | 64 20 77 69 74 68 69 6e |justifie|d within|
|00005ac0| 20 69 74 73 20 66 69 65 | 6c 64 2e 0a 58 2e 54 50 | its fie|ld..X.TP|
|00005ad0| 0a 58 2e 49 20 77 69 64 | 74 68 0a 58 54 68 65 20 |.X.I wid|th.XThe |
|00005ae0| 66 69 65 6c 64 20 73 68 | 6f 75 6c 64 20 62 65 20 |field sh|ould be |
|00005af0| 70 61 64 64 65 64 20 74 | 6f 20 74 68 69 73 20 77 |padded t|o this w|
|00005b00| 69 64 74 68 2e 20 49 66 | 20 74 68 65 20 6e 75 6d |idth. If| the num|
|00005b10| 62 65 72 20 68 61 73 20 | 61 20 6c 65 61 64 69 6e |ber has |a leadin|
|00005b20| 67 0a 58 7a 65 72 6f 2c | 20 74 68 65 6e 20 74 68 |g.Xzero,| then th|
|00005b30| 65 20 66 69 65 6c 64 20 | 77 69 6c 6c 20 62 65 20 |e field |will be |
|00005b40| 70 61 64 64 65 64 20 77 | 69 74 68 20 7a 65 72 6f |padded w|ith zero|
|00005b50| 73 2e 0a 58 4f 74 68 65 | 72 77 69 73 65 20 69 74 |s..XOthe|rwise it|
|00005b60| 20 69 73 20 70 61 64 64 | 65 64 20 77 69 74 68 20 | is padd|ed with |
|00005b70| 62 6c 61 6e 6b 73 2e 0a | 58 2e 54 50 0a 58 2e 42 |blanks..|X.TP.X.B|
|00005b80| 49 20 2e 20 70 72 65 63 | 0a 58 41 20 6e 75 6d 62 |I . prec|.XA numb|
|00005b90| 65 72 20 69 6e 64 69 63 | 61 74 69 6e 67 20 74 68 |er indic|ating th|
|00005ba0| 65 20 6d 61 78 69 6d 75 | 6d 20 77 69 64 74 68 20 |e maximu|m width |
|00005bb0| 6f 66 20 73 74 72 69 6e | 67 73 20 6f 72 20 64 69 |of strin|gs or di|
|00005bc0| 67 69 74 73 20 74 6f 20 | 74 68 65 20 72 69 67 68 |gits to |the righ|
|00005bd0| 74 0a 58 6f 66 20 74 68 | 65 20 64 65 63 69 6d 61 |t.Xof th|e decima|
|00005be0| 6c 20 70 6f 69 6e 74 2e | 0a 58 2e 52 45 0a 58 2e |l point.|.X.RE.X.|
|00005bf0| 50 50 0a 58 54 68 65 20 | 64 79 6e 61 6d 69 63 0a |PP.XThe |dynamic.|
|00005c00| 58 2e 49 20 77 69 64 74 | 68 0a 58 61 6e 64 0a 58 |X.I widt|h.Xand.X|
|00005c10| 2e 49 20 70 72 65 63 0a | 58 63 61 70 61 62 69 6c |.I prec.|Xcapabil|
|00005c20| 69 74 69 65 73 20 6f 66 | 20 74 68 65 20 43 20 6c |ities of| the C l|
|00005c30| 69 62 72 61 72 79 0a 58 | 2e 42 20 70 72 69 6e 74 |ibrary.X|.B print|
|00005c40| 66 0a 58 72 6f 75 74 69 | 6e 65 73 20 61 72 65 20 |f.Xrouti|nes are |
|00005c50| 6e 6f 74 20 73 75 70 70 | 6f 72 74 65 64 2e 0a 58 |not supp|orted..X|
|00005c60| 48 6f 77 65 76 65 72 2c | 20 74 68 65 79 20 6d 61 |However,| they ma|
|00005c70| 79 20 62 65 20 73 69 6d | 75 6c 61 74 65 64 20 62 |y be sim|ulated b|
|00005c80| 79 20 75 73 69 6e 67 0a | 58 74 68 65 20 41 57 4b |y using.|Xthe AWK|
|00005c90| 20 63 6f 6e 63 61 74 65 | 6e 61 74 69 6f 6e 20 6f | concate|nation o|
|00005ca0| 70 65 72 61 74 69 6f 6e | 20 74 6f 20 62 75 69 6c |peration| to buil|
|00005cb0| 64 20 75 70 0a 58 61 20 | 66 6f 72 6d 61 74 20 73 |d up.Xa |format s|
|00005cc0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 64 79 6e |pecifica|tion dyn|
|00005cd0| 61 6d 69 63 61 6c 6c 79 | 2e 0a 58 2e 53 53 20 53 |amically|..X.SS S|
|00005ce0| 70 65 63 69 61 6c 20 46 | 69 6c 65 20 4e 61 6d 65 |pecial F|ile Name|
|00005cf0| 73 0a 58 2e 50 50 0a 58 | 57 68 65 6e 20 64 6f 69 |s.X.PP.X|When doi|
|00005d00| 6e 67 20 49 2f 4f 20 72 | 65 64 69 72 65 63 74 69 |ng I/O r|edirecti|
|00005d10| 6f 6e 20 66 72 6f 6d 20 | 65 69 74 68 65 72 0a 58 |on from |either.X|
|00005d20| 2e 42 20 70 72 69 6e 74 | 0a 58 6f 72 0a 58 2e 42 |.B print|.Xor.X.B|
|00005d30| 20 70 72 69 6e 74 66 0a | 58 69 6e 74 6f 20 61 20 | printf.|Xinto a |
|00005d40| 66 69 6c 65 2c 0a 58 6f | 72 20 76 69 61 0a 58 2e |file,.Xo|r via.X.|
|00005d50| 42 20 67 65 74 6c 69 6e | 65 0a 58 66 72 6f 6d 20 |B getlin|e.Xfrom |
|00005d60| 61 20 66 69 6c 65 2c 0a | 58 2e 49 20 67 61 77 6b |a file,.|X.I gawk|
|00005d70| 0a 58 72 65 63 6f 67 6e | 69 7a 65 73 20 63 65 72 |.Xrecogn|izes cer|
|00005d80| 74 61 69 6e 20 73 70 65 | 63 69 61 6c 20 66 69 6c |tain spe|cial fil|
|00005d90| 65 6e 61 6d 65 73 20 69 | 6e 74 65 72 6e 61 6c 6c |enames i|nternall|
|00005da0| 79 2e 20 20 54 68 65 73 | 65 20 66 69 6c 65 6e 61 |y. Thes|e filena|
|00005db0| 6d 65 73 0a 58 61 6c 6c | 6f 77 20 61 63 63 65 73 |mes.Xall|ow acces|
|00005dc0| 73 20 74 6f 20 6f 70 65 | 6e 20 66 69 6c 65 20 64 |s to ope|n file d|
|00005dd0| 65 73 63 72 69 70 74 6f | 72 73 20 69 6e 68 65 72 |escripto|rs inher|
|00005de0| 69 74 65 64 20 66 72 6f | 6d 0a 58 2e 49 52 20 67 |ited fro|m.X.IR g|
|00005df0| 61 77 6b 20 27 73 0a 58 | 70 61 72 65 6e 74 20 70 |awk 's.X|parent p|
|00005e00| 72 6f 63 65 73 73 20 28 | 75 73 75 61 6c 6c 79 20 |rocess (|usually |
|00005e10| 74 68 65 20 73 68 65 6c | 6c 29 2e 20 20 54 68 65 |the shel|l). The|
|00005e20| 20 66 69 6c 65 6e 61 6d | 65 73 20 61 72 65 3a 0a | filenam|es are:.|
|00005e30| 58 2e 52 53 0a 58 2e 54 | 50 0a 58 2e 42 20 2f 64 |X.RS.X.T|P.X.B /d|
|00005e40| 65 76 2f 73 74 64 69 6e | 0a 58 54 68 65 20 73 74 |ev/stdin|.XThe st|
|00005e50| 61 6e 64 61 72 64 20 69 | 6e 70 75 74 2e 0a 58 2e |andard i|nput..X.|
|00005e60| 54 50 0a 58 2e 42 20 2f | 64 65 76 2f 73 74 64 6f |TP.X.B /|dev/stdo|
|00005e70| 75 74 0a 58 54 68 65 20 | 73 74 61 6e 64 61 72 64 |ut.XThe |standard|
|00005e80| 20 6f 75 74 70 75 74 2e | 0a 58 2e 54 50 0a 58 2e | output.|.X.TP.X.|
|00005e90| 42 20 2f 64 65 76 2f 73 | 74 64 65 72 72 0a 58 54 |B /dev/s|tderr.XT|
|00005ea0| 68 65 20 73 74 61 6e 64 | 61 72 64 20 65 72 72 6f |he stand|ard erro|
|00005eb0| 72 20 6f 75 74 70 75 74 | 2e 0a 58 2e 54 50 0a 58 |r output|..X.TP.X|
|00005ec0| 2e 42 49 20 2f 64 65 76 | 2f 66 64 2f 5c 5e 20 6e |.BI /dev|/fd/\^ n|
|00005ed0| 0a 58 54 68 65 20 66 69 | 6c 65 20 64 65 6e 6f 74 |.XThe fi|le denot|
|00005ee0| 65 64 20 62 79 20 74 68 | 65 20 6f 70 65 6e 20 66 |ed by th|e open f|
|00005ef0| 69 6c 65 20 64 65 73 63 | 72 69 70 74 6f 72 0a 58 |ile desc|riptor.X|
|00005f00| 2e 49 52 20 6e 20 2e 0a | 58 2e 52 45 0a 58 2e 50 |.IR n ..|X.RE.X.P|
|00005f10| 50 0a 58 54 68 65 73 65 | 20 61 72 65 20 70 61 72 |P.XThese| are par|
|00005f20| 74 69 63 75 6c 61 72 6c | 79 20 75 73 65 66 75 6c |ticularl|y useful|
|00005f30| 20 66 6f 72 20 65 72 72 | 6f 72 20 6d 65 73 73 61 | for err|or messa|
|00005f40| 67 65 73 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ges. For| example|
|00005f50| 3a 0a 58 2e 50 50 0a 58 | 2e 52 53 0a 58 2e 66 74 |:.X.PP.X|.RS.X.ft|
|00005f60| 20 42 0a 58 70 72 69 6e | 74 20 22 59 6f 75 20 62 | B.Xprin|t "You b|
|00005f70| 6c 65 77 20 69 74 21 22 | 20 3e 20 22 2f 64 65 76 |lew it!"| > "/dev|
|00005f80| 2f 73 74 64 65 72 72 22 | 0a 58 2e 66 74 20 52 0a |/stderr"|.X.ft R.|
|00005f90| 58 2e 52 45 0a 58 2e 50 | 50 0a 58 77 68 65 72 65 |X.RE.X.P|P.Xwhere|
|00005fa0| 61 73 20 79 6f 75 20 77 | 6f 75 6c 64 20 6f 74 68 |as you w|ould oth|
|00005fb0| 65 72 77 69 73 65 20 68 | 61 76 65 20 74 6f 20 75 |erwise h|ave to u|
|00005fc0| 73 65 0a 58 2e 50 50 0a | 58 2e 52 53 0a 58 2e 66 |se.X.PP.|X.RS.X.f|
|00005fd0| 74 20 42 0a 58 70 72 69 | 6e 74 20 22 59 6f 75 20 |t B.Xpri|nt "You |
|00005fe0| 62 6c 65 77 20 69 74 21 | 22 20 7c 20 22 63 61 74 |blew it!|" | "cat|
|00005ff0| 20 31 3e 26 32 22 0a 58 | 2e 66 74 20 52 0a 58 2e | 1>&2".X|.ft R.X.|
|00006000| 52 45 0a 58 2e 50 50 0a | 58 54 68 65 73 65 20 66 |RE.X.PP.|XThese f|
|00006010| 69 6c 65 20 6e 61 6d 65 | 73 20 6d 61 79 20 61 6c |ile name|s may al|
|00006020| 73 6f 20 62 65 20 75 73 | 65 64 20 6f 6e 20 74 68 |so be us|ed on th|
|00006030| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 74 |e comman|d line t|
|00006040| 6f 20 6e 61 6d 65 20 64 | 61 74 61 20 66 69 6c 65 |o name d|ata file|
|00006050| 73 2e 0a 58 2e 53 53 20 | 4e 75 6d 65 72 69 63 20 |s..X.SS |Numeric |
|00006060| 46 75 6e 63 74 69 6f 6e | 73 0a 58 2e 50 50 0a 58 |Function|s.X.PP.X|
|00006070| 41 57 4b 20 68 61 73 20 | 74 68 65 20 66 6f 6c 6c |AWK has |the foll|
|00006080| 6f 77 69 6e 67 20 70 72 | 65 2d 64 65 66 69 6e 65 |owing pr|e-define|
|00006090| 64 20 61 72 69 74 68 6d | 65 74 69 63 20 66 75 6e |d arithm|etic fun|
|000060a0| 63 74 69 6f 6e 73 3a 0a | 58 2e 50 50 0a 58 2e 52 |ctions:.|X.PP.X.R|
|000060b0| 53 0a 58 2e 54 50 20 5c | 6c 27 5c 66 42 73 72 61 |S.X.TP \|l'\fBsra|
|000060c0| 6e 64 28 5c 66 49 65 78 | 70 72 5c 66 42 29 5c 66 |nd(\fIex|pr\fB)\f|
|000060d0| 52 27 0a 58 2e 42 49 20 | 61 74 61 6e 32 28 20 79 |R'.X.BI |atan2( y|
|000060e0| 20 2c 20 22 20 78 22 20 | 29 0a 58 72 65 74 75 72 | , " x" |).Xretur|
|000060f0| 6e 73 20 74 68 65 20 61 | 72 63 74 61 6e 67 65 6e |ns the a|rctangen|
|00006100| 74 20 6f 66 0a 58 2e 49 | 20 79 2f 78 0a 58 69 6e |t of.X.I| y/x.Xin|
|00006110| 20 72 61 64 69 61 6e 73 | 2e 0a 58 2e 54 50 20 5c | radians|..X.TP \|
|00006120| 6c 27 5c 66 42 73 72 61 | 6e 64 28 5c 66 49 65 78 |l'\fBsra|nd(\fIex|
|00006130| 70 72 5c 66 42 29 5c 66 | 52 27 0a 58 2e 42 49 20 |pr\fB)\f|R'.X.BI |
|00006140| 63 6f 73 28 20 65 78 70 | 72 20 29 0a 58 72 65 74 |cos( exp|r ).Xret|
|00006150| 75 72 6e 73 20 74 68 65 | 20 63 6f 73 69 6e 65 20 |urns the| cosine |
|00006160| 69 6e 20 72 61 64 69 61 | 6e 73 2e 0a 58 2e 54 50 |in radia|ns..X.TP|
|00006170| 20 5c 6c 27 5c 66 42 73 | 72 61 6e 64 28 5c 66 49 | \l'\fBs|rand(\fI|
|00006180| 65 78 70 72 5c 66 42 29 | 5c 66 52 27 0a 58 2e 42 |expr\fB)|\fR'.X.B|
|00006190| 49 20 65 78 70 28 20 65 | 78 70 72 20 29 0a 58 74 |I exp( e|xpr ).Xt|
|000061a0| 68 65 20 65 78 70 6f 6e | 65 6e 74 69 61 6c 20 66 |he expon|ential f|
|000061b0| 75 6e 63 74 69 6f 6e 2e | 0a 58 2e 54 50 20 5c 6c |unction.|.X.TP \l|
|000061c0| 27 5c 66 42 73 72 61 6e | 64 28 5c 66 49 65 78 70 |'\fBsran|d(\fIexp|
|000061d0| 72 5c 66 42 29 5c 66 52 | 27 0a 58 2e 42 49 20 69 |r\fB)\fR|'.X.BI i|
|000061e0| 6e 74 28 20 65 78 70 72 | 20 29 0a 58 74 72 75 6e |nt( expr| ).Xtrun|
|000061f0| 63 61 74 65 73 20 74 6f | 20 69 6e 74 65 67 65 72 |cates to| integer|
|00006200| 2e 0a 58 2e 54 50 20 5c | 6c 27 5c 66 42 73 72 61 |..X.TP \|l'\fBsra|
|00006210| 6e 64 28 5c 66 49 65 78 | 70 72 5c 66 42 29 5c 66 |nd(\fIex|pr\fB)\f|
|00006220| 52 27 0a 58 2e 42 49 20 | 6c 6f 67 28 20 65 78 70 |R'.X.BI |log( exp|
|00006230| 72 20 29 0a 58 74 68 65 | 20 6e 61 74 75 72 61 6c |r ).Xthe| natural|
|00006240| 20 6c 6f 67 61 72 69 74 | 68 6d 20 66 75 6e 63 74 | logarit|hm funct|
|00006250| 69 6f 6e 2e 0a 58 2e 54 | 50 20 5c 6c 27 5c 66 42 |ion..X.T|P \l'\fB|
|00006260| 73 72 61 6e 64 28 5c 66 | 49 65 78 70 72 5c 66 42 |srand(\f|Iexpr\fB|
|00006270| 29 5c 66 52 27 0a 58 2e | 42 20 72 61 6e 64 28 29 |)\fR'.X.|B rand()|
|00006280| 0a 58 72 65 74 75 72 6e | 73 20 61 20 72 61 6e 64 |.Xreturn|s a rand|
|00006290| 6f 6d 20 6e 75 6d 62 65 | 72 20 62 65 74 77 65 65 |om numbe|r betwee|
|000062a0| 6e 20 30 20 61 6e 64 20 | 31 2e 0a 58 2e 54 50 20 |n 0 and |1..X.TP |
|000062b0| 5c 6c 27 5c 66 42 73 72 | 61 6e 64 28 5c 66 49 65 |\l'\fBsr|and(\fIe|
|000062c0| 78 70 72 5c 66 42 29 5c | 66 52 27 0a 58 2e 42 49 |xpr\fB)\|fR'.X.BI|
|000062d0| 20 73 69 6e 28 20 65 78 | 70 72 20 29 0a 58 72 65 | sin( ex|pr ).Xre|
|000062e0| 74 75 72 6e 73 20 74 68 | 65 20 73 69 6e 65 20 69 |turns th|e sine i|
|000062f0| 6e 20 72 61 64 69 61 6e | 73 2e 0a 58 2e 54 50 20 |n radian|s..X.TP |
|00006300| 5c 6c 27 5c 66 42 73 72 | 61 6e 64 28 5c 66 49 65 |\l'\fBsr|and(\fIe|
|00006310| 78 70 72 5c 66 42 29 5c | 66 52 27 0a 58 2e 42 49 |xpr\fB)\|fR'.X.BI|
|00006320| 20 73 71 72 74 28 20 65 | 78 70 72 20 29 0a 58 74 | sqrt( e|xpr ).Xt|
|00006330| 68 65 20 73 71 75 61 72 | 65 20 72 6f 6f 74 20 66 |he squar|e root f|
|00006340| 75 6e 63 74 69 6f 6e 2e | 0a 58 2e 54 50 20 5c 6c |unction.|.X.TP \l|
|00006350| 27 5c 66 42 73 72 61 6e | 64 28 5c 66 49 65 78 70 |'\fBsran|d(\fIexp|
|00006360| 72 5c 66 42 29 5c 66 52 | 27 0a 58 2e 42 49 20 73 |r\fB)\fR|'.X.BI s|
|00006370| 72 61 6e 64 28 20 65 78 | 70 72 20 29 0a 58 75 73 |rand( ex|pr ).Xus|
|00006380| 65 0a 58 2e 49 20 65 78 | 70 72 0a 58 61 73 20 61 |e.X.I ex|pr.Xas a|
|00006390| 20 6e 65 77 20 73 65 65 | 64 20 66 6f 72 20 74 68 | new see|d for th|
|000063a0| 65 20 72 61 6e 64 6f 6d | 20 6e 75 6d 62 65 72 20 |e random| number |
|000063b0| 67 65 6e 65 72 61 74 6f | 72 2e 20 49 66 20 6e 6f |generato|r. If no|
|000063c0| 0a 58 2e 49 20 65 78 70 | 72 0a 58 69 73 20 70 72 |.X.I exp|r.Xis pr|
|000063d0| 6f 76 69 64 65 64 2c 20 | 74 68 65 20 74 69 6d 65 |ovided, |the time|
|000063e0| 20 6f 66 20 64 61 79 20 | 77 69 6c 6c 20 62 65 20 | of day |will be |
|000063f0| 75 73 65 64 2e 0a 58 54 | 68 65 20 72 65 74 75 72 |used..XT|he retur|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.