The awk utility can take its input from [[standard_input?]] or from files. If no input files are specified at the command line, then awk will take its input from [[standard_input?]].
In awk all input is separated into records and each record is sequentially processed according to the rules defined within the awk script. By default, each line of input is treated as a single [record] (or row of data).
In awk, records are further divided into fields, making them easy to manage, because processing can take place against a particular data field.
The awk utility reads its input files in the order provided and performs its [[pattern_matching?]] cycle until all lines of input have been read.
The getline command enables awk to take input from a particular file without the need to specify the filename as a command line parameter.
The following special variables are related to input:
Powered by sdf Creative Commons License <pierre.gaston+awk@gmail.com>
Awk Wiki by #awk is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.