Lines Matching +refs:po +refs:edited +refs:fields
260 * Reading Files:: How to read files and manipulate fields.
339 * Fields:: An introduction to fields.
1031 It introduces the concepts of records and fields, as well
2462 sixth, seventh, and eighth fields contain the month, day, and time,
2486 your input and displays your output. By manipulating fields and using
3915 @cindex fields
3919 record is automatically split into chunks called @dfn{fields}.
3931 * Fields:: An introduction to fields.
3951 program into records and fields.
4071 variable @code{NF} is the number of fields in the current record.
4201 @cindex examining fields
4202 @cindex fields
4203 @cindex accessing fields
4205 @cindex fields, examining
4211 called @dfn{fields}. By default, fields are separated by @dfn{whitespace},
4215 considered whitespace for separating fields.} other characters, such as
4220 The purpose of fields is to make it more convenient for you to refer to
4222 operate on the whole record if you want---but fields are what make
4251 @cindex fields, number of
4252 @code{NF} is a built-in variable whose value is the number of fields
4254 of @code{NF} each time it reads a record. No matter how many fields
4258 one (such as @code{$8} when the record has only seven fields), you get
4263 when you are not interested in specific fields.
4297 @cindex fields, numbers
4315 the record has fewer than 20 fields, so this prints a blank line.
4342 @command{awk} stores the current record's number of fields in the built-in
4351 @cindex fields, changing contents of
4399 It is also possible to also assign contents to fields that are out
4411 @cindex adding, fields
4412 @cindex fields, adding
4414 We've just created @code{$6}, whose value is the sum of fields
4423 existing fields.
4429 @code{NF} (the number of fields; @pxref{Fields}).
4434 used to separate the fields (@pxref{Output Separators}).
4487 Decrementing @code{NF} throws away the values of the fields
4506 value of the fields and @code{OFS}. To do this, use the
4519 the fields. Any assignment to @code{$0} causes the record to be
4520 reparsed into fields using the @emph{current} value of @code{FS}.
4537 @cindex fields, separating
4541 @cindex fields, separating
4543 expression, controls the way @command{awk} splits an input record into fields.
4545 match the separator; the fields themselves are the text between the matches.
4556 is split into three fields: @samp{m}, @samp{@bullet{}g}, and
4558 Note the leading spaces in the values of the second and third fields.
4597 separate fields the way you thought they would. For instance, the
4621 fields, so two spaces in a row would make an empty field between them.
4624 of delimiting fields.
4627 each occurrence of that character separates two fields. Two consecutive
4645 expression separates fields. For example, the assignment:
4662 single spaces to separate fields the way single commas are used.
4670 For both values of @code{FS}, fields are separated by @dfn{runs}
4674 the record and then decides where the fields are.
4720 @cindex differences in @command{awk} and @command{gawk}, single-character fields
4721 @cindex single-character fields
4722 @cindex fields, single-character
4803 figures that you really want your fields to be separated with tabs and
4805 if you really do want to separate your fields with @samp{t}s.
4878 ``fields are separated by occurrences of any two characters.''
4879 If instead you want fields to be separated by a literal period followed
4882 The following table summarizes how fields are split, based on the value
4892 successive occurrences delimit empty fields, as do leading and
4899 Leading and trailing matches of @var{regexp} delimit empty fields.
4913 as if each record is split into fields at the time it is read.
4915 after a record is read, the value of the fields (i.e., how they were split)
4922 they defer splitting the fields until a field is actually
4923 referenced. The fields are split
4969 The output is @samp{aCa}. If you really want to split fields on an
4996 fixed-width fields with no distinctive field separator. For example,
5002 the use of a variable number of spaces and @emph{empty fields are just
5007 this is awkward and inefficient for a large number of fields.
5013 The splitting of an input record into fixed-width fields is specified by
5016 @emph{including} columns between fields. If you want to ignore the columns
5017 between fields, you can specify the width as a separate field that is
5039 number of seconds, and prints out the first two fields and the calculated
5091 @cindex @command{gawk}, splitting fields and
5170 separate the fields in the record. One way to do this is to divide each
5171 of the lines into fields in the normal manner. This happens by default
5184 want the newline character to separate fields, because there is no way to
5194 Another way to separate fields is to
5342 input record and split it up into fields. This is useful if you've
5440 split into fields, so the values of the fields (including @code{$0}) and
5471 @code{FNR} are not changed. However, the record it reads is split into fields in
5472 the normal manner, so the values of @code{$0} and the other fields are
5495 changed and the record is not split into fields. The only variable
5600 This variation of @code{getline} splits the record into fields, sets the
5634 changed and the record is not split into fields.
5679 However, the record is split into fields in
5680 the normal manner, thus changing the values of @code{$0}, of the other fields,
5698 changed and the record is not split into fields. The only variable
5847 The items to print can be constant strings or numbers, fields of the
5883 @cindex fields, printing
5885 prints the first two fields of each input record, with a space between
5944 two fields:
5994 In order to change how output fields and records are separated, assign
6002 The following example prints the first and second fields of each input
6868 The fields are separated with spaces. The fields represent the
6889 If there are any additional fields, they are the group IDs returned by
6924 and the other fields represent the other essential pieces of information
7602 field separator), and @code{NF} (the number of fields in the current input
8371 @cindex @code{$} (dollar sign), incrementing fields and arrays
8372 @cindex dollar sign (@code{$}), incrementing fields and arrays
9372 input record. If the expression uses fields such as @code{$1}, the
9651 there simply is no input record, and therefore no fields, when
9652 executing @code{BEGIN} rules. References to @code{$0} and the fields
9667 rule. It contains the number of fields from the last input record.
9991 This example prints the first three fields of each record, one per line:
10093 This prints the first three fields of each input record, with one field per
10389 with four fields, and it shouldn't fail when given bad input. To avoid
10666 expression that matches the separations between fields in an input
10759 output between the fields printed by a @code{print} statement. Its
10957 The number of fields in the current input record.
10970 to @code{NF} can be used to create or remove fields from the
11905 fields; it rotates this array 90 degrees clockwise and prints the
12576 manner similar to the way input lines are split into fields. For example:
12584 splits the string @samp{cul-de-sac} into three fields using @samp{-} as the
12690 any fields have been changed, and that the fields will be updated
14224 This program prints, in our special format, all the third fields that
14507 # Load all fields of each record into nums.
14655 collected into a portable object file (@file{guide.po}),
14661 @cindex @code{.po} files
14662 @cindex files, @code{.po}
14666 For each language with a translator, @file{guide.po}
14674 Each language's @file{.po} file is converted into a binary
14956 @cindex @code{.po} files
14957 @cindex files, @code{.po}
14961 be extracted to create the initial @file{.po} file.
14965 @command{gawk}'s @option{--gen-po} command-line option extracts
14982 @cindex @code{--gen-po} option
14988 @cindex @code{--gen-po} option
14992 First, use the @option{--gen-po} command-line option to create
14993 the initial @file{.po} file:
14996 $ gawk --gen-po -f guide.awk > guide.po
15000 When run with @option{--gen-po}, @command{gawk} does not execute your
15208 Run @samp{gawk --gen-po} to create the @file{.po} file:
15211 $ gawk --gen-po -f guide.awk > guide.po
15218 @c file eg/data/guide.po
15235 appear in the @file{guide.po} file.
15244 $ cp guide.po guide-mellow.po
15245 @var{Add translations to} guide-mellow.po @dots{}
15253 @c file eg/data/guide-mellow.po
15277 @cindex @code{.po} files, converting to @code{.mo}
15278 @cindex files, @code{.po}, converting to @code{.mo}
15279 @cindex @code{.mo} files, converting from @code{.po}
15280 @cindex files, @code{.mo}, converting from @code{.po}
15287 @file{.po} file to machine-readable @file{.mo} file.
15293 $ msgfmt guide-mellow.po
15424 Although the fields can act as numbers when necessary,
16188 the maximum number of fields and the @samp{r} flag sets the maximum
16274 @item -W gen-po
16275 @itemx --gen-po
16276 @cindex @code{--gen-po} option
16355 Newlines do not act as whitespace to separate fields when @code{FS} is
18551 @file{/etc/passwd} format of colon-separated fields. The fields are:
18699 own way of splitting records and fields.
18709 the line into fields, and then store the line into each array as necessary.
18911 Each line in the group database represents one group. The fields are
19287 @cindex fields, cutting
19290 The @command{cut} utility selects, or ``cuts,'' characters or fields
19295 definition of fields is less general than @command{awk}'s.
19315 Use @var{list} as the list of fields to cut out.
19350 # -f list Cut fields
19389 processing should be done by fields or by characters, respectively.
19431 incorrect---@command{awk} would separate fields with runs of spaces,
19442 list of fields or characters:
19470 simply lists the fields that will be printed. Normal field splitting
19507 fields that need to be printed. We have to keep track of the fields to
19512 fields, and the fields to print
19514 The intermediate fields are @dfn{filler},
19516 @code{flist} lists the fields to print, and @code{t} tracks the
19517 complete field list, including filler fields:
19524 field = 1 # count total fields
19568 @command{cut} is processing fields, @code{suppress} is true, and the field
19572 into fields, either using the character in @code{FS} or using fixed-length
19573 fields and @code{FIELDWIDTHS}. The loop goes through the list of fields
19576 written out between the fields:
20341 Skip @var{n} fields before comparing lines. The definition of fields
20346 Skip @var{n} characters before comparing lines. Any fields specified with
20413 # -n skip n fields
20414 # +n skip n characters, skip fields first
20462 previous line, @code{last}. It handles skipping fields and characters.
20467 If fields have to be skipped, each line is broken into an array using
20470 the desired fields are then joined back into a line using @code{join}.
20472 If no fields are skipped, @code{clast} and @code{cline} are set to
20601 fields in its input data.
20609 words (i.e., fields) and counts them, it counts lines (i.e., records),
20813 then resplit into fields, yielding just the actual words on the line,
20814 and ensuring that there are no empty fields.
20816 If there are no fields left after removing all the punctuation, the
21321 to know how many fields are available.
21333 Words are detected using the @command{awk} convention that fields are
22616 Newlines do not act as whitespace to separate fields when @code{FS} is
22660 to set the maximum number of fields and the maximum
22988 The @option{--gen-po} command-line option and the use of a leading
23463 @itemx po/*
23465 @command{gawk}'s internationalization features, while the @file{po} library
23574 After you have run @command{configure} and possibly edited the @file{Makefile},
23838 edited.
23886 may need to be edited in order to work with your @command{make} utility.
24431 @file{atari} subdirectory and can be edited and copied to the
25599 to other POSIX-compliant systems:@footnote{This version is edited
26004 functions (regexps, fields, associative arrays, type coercion, and so on).
26279 @cindex fields
26285 to as the @dfn{fields} of the record.
26297 breaking it up into records and fields. Your program's job is to
26314 and the fields of the record.
26840 called fields. If the pieces are of fixed length, you can use the built-in
27730 read and edited only by proprietary word processors, @acronym{SGML} or