Debian Codegraph @

po/pl/archive/man1/mawk.1.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Wojtek Kotwica <[email protected]>, 2000.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2025-07-13 14:34+0200\n"
9 "PO-Revision-Date: 2000-05-29 11:06+0200\n"
10 "Last-Translator: Wojtek Kotwica <[email protected]>\n"
11 "Language-Team: Polish <[email protected]>\n"
12 "Language: pl\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
17 "|| n%100>=20) ? 1 : 2);\n"
18
19 #. type: TH
20 #: mawk.1:2
21 #, no-wrap
22 msgid "MAWK"
23 msgstr "MAWK"
24
25 #. type: TH
26 #: mawk.1:2
27 #, no-wrap
28 msgid "December 22, 1994"
29 msgstr "22 grudnia 1994"
30
31 #. type: TH
32 #: mawk.1:2
33 #, no-wrap
34 msgid "Version 1.2"
35 msgstr "wersja 1.2"
36
37 #. type: TH
38 #: mawk.1:2
39 #, no-wrap
40 msgid "USER COMMANDS"
41 msgstr "POLECENIA UŻYTKOWNIKA"
42
43 #. strings
44 #. type: ds ex
45 #: mawk.1:4
46 #, no-wrap
47 msgid "I<expr>"
48 msgstr "I<wyraż>"
49
50 #. type: SH
51 #: mawk.1:5
52 #, no-wrap
53 msgid "NAME"
54 msgstr "NAZWA"
55
56 #. type: Plain text
57 #: mawk.1:7
58 msgid "mawk - pattern scanning and text processing language"
59 msgstr "mawk - język wyszukiwania wzorców i przetwarzania tekstu"
60
61 #. type: SH
62 #: mawk.1:7
63 #, no-wrap
64 msgid "SYNOPSIS"
65 msgstr "SKŁADNIA"
66
67 #. type: TP
68 #: mawk.1:8 mawk.1:19
69 #, no-wrap
70 msgid "B<mawk>"
71 msgstr "B<mawk>"
72
73 #. type: Plain text
74 #: mawk.1:16 mawk.1:27
75 msgid "[B<-W> I<option>] [B<-F> I<value>] [B<-v> I<var>B<=>I<value>]"
76 msgstr "[B<-W> I<opcja>] [B<-F> I<wartość>] [B<-v> I<zmn>B<=>I<wartość>]"
77
78 #. type: Plain text
79 #: mawk.1:19
80 msgid "[B<-->] 'program text' [I<file>...]"
81 msgstr "[B<-->] 'tekst programu' [I<plik>...]"
82
83 #. type: Plain text
84 #: mawk.1:32
85 msgid "[B<-f> I<program file>] [B<-->] [I<file>...]"
86 msgstr "[B<-f> I<plik-programu>] [B<-->] [I<plik>...]"
87
88 #. type: SH
89 #: mawk.1:32
90 #, no-wrap
91 msgid "DECSRIPTION"
92 msgstr "OPIS"
93
94 #. type: Plain text
95 #: mawk.1:48
96 msgid ""
97 "B<mawk> is an interpreter for the AWK programming language. The AWK language "
98 "is useful for manipulating data files, searching for and processing text, and "
99 "prototyping and experimenting with algorithms. B<mawk> implements the AWK "
100 "language as defined by Aho, Kernighan, and Weinberger in I<The AWK "
101 "Programming Language>, Addison-Wesley Publishing, 1988 (hereinafter referred "
102 "to as the AWK book). B<mawk> conforms to the Posix 1003.2 (proposal 11.3) "
103 "definition of the AWK language, including new features not described in the "
104 "AWK book. Additionally, B<mawk> includes some extensions."
105 msgstr ""
106 "B<mawk> jest interpreterem języka programowania AWK. Język AWK jest użyteczny "
107 "w działaniach na plikach danych, wyszukiwaniu i przetwarzaniu tekstu oraz "
108 "tworzeniu prototypów i eksperymentowaniu z algorytmami. B<mawk> implementuje "
109 "język AWK, jak go zdefiniowali Aho, Kernighan i Weinberger w książce I<The "
110 "AWK Programming Language>, Addison-Wesley Publishing, 1988 (dalej "
111 "wzmiankowanej jako książka AWK). B<mawk> jest zgodny z definicją języka AWK "
112 "ze standardu Posix 1003.2 (propozycja 11.3), zawierającą nowe cechy nie "
113 "opisane w książce AWK. Dodatkowo B<mawk> zawiera nieco rozszerzeń."
114
115 #. type: Plain text
116 #: mawk.1:63
117 msgid ""
118 "An AWK program is a sequence of I<pattern{action}> and function definition "
119 "pairs. Short programs are entered on the command line, usually enclosed in ' "
120 "' to avoid interpretation of their components by the shell. Longer programs "
121 "can be read from a file using the B<-f> option. Input is read from a list of "
122 "files on the command line, or from the standard input if that list is empty. "
123 "The input is split into records specified by the record separator variable, "
124 "B<RS>. Initially, B<RS>=\"\\en\" and records are identical to lines. Each "
125 "record is compared to each of the I<patterns>, and if a match is found, the "
126 "program text for I<{action}> is executed."
127 msgstr ""
128 "Program AWK jest sekwencją par I<wzorzec {akcja}> i definicji funkcji. "
129 "Krótkie programy wprowadzane są w wierszu poleceń, zwykle ujęte w ' ', by "
130 "uniknąć interpretacji ich składowych przez powłokę. Dłuższe programy mogą "
131 "być czytane z pliku przy pomocy opcji B<-f>. dane wejściowe odczytywane są z "
132 "listy plików z wiersza poleceń lub ze standardowego wejścia, gdy lista ta "
133 "jest pusta. Wejście rozbijane jest na rekordy określone według zmiennej "
134 "opisującej separator rekordów, B<RS> (record separator). Początkowo "
135 "B<RS>=\"\\en\" a rekordy są tożsame z wierszami. Każdy z rekordów porównywany "
136 "jest z każdym ze I<wzorców>, a jeśli pasuje, wykonywany jest tekst programu "
137 "dla I<{akcji}>."
138
139 #. type: SH
140 #: mawk.1:63
141 #, no-wrap
142 msgid "OPTIONS"
143 msgstr "OPCJE"
144
145 #. type: TP
146 #: mawk.1:64
147 #, no-wrap
148 msgid "B<-F >I<value>"
149 msgstr "B<-F >I<wartość>"
150
151 #. type: Plain text
152 #: mawk.1:68
153 msgid "sets the field separator, B<FS>, to I<value>."
154 msgstr "ustawia separator pól, B<FS>, na I<wartość>."
155
156 #. type: TP
157 #: mawk.1:68
158 #, no-wrap
159 msgid "B<-f >I<file>"
160 msgstr "B<-f >I<plik>"
161
162 #. type: Plain text
163 #: mawk.1:73
164 msgid ""
165 "Program text is read from I<file> instead of the command line. Multiple uses "
166 "of the B<-f> option are allowed."
167 msgstr ""
168 "Tekst programu jest czytany z I<pliku> zamiast z wiersza poleceń. Dopuszcza "
169 "się wielokrotne użycie opcji B<-f>."
170
171 #. type: TP
172 #: mawk.1:73
173 #, no-wrap
174 msgid "B<-v >I<var>B<=>I<value>"
175 msgstr "B<-v >I<zmn>B<=>I<wartość>"
176
177 #. type: Plain text
178 #: mawk.1:79
179 msgid "assigns I<value> to program variable I<var>."
180 msgstr "przypisuje I<wartość> zmiennej programu I<zmn>."
181
182 #. type: TP
183 #: mawk.1:79
184 #, no-wrap
185 msgid "B<-\\|->"
186 msgstr "B<-\\|->"
187
188 #. type: Plain text
189 #: mawk.1:82
190 msgid "indicates the unambiguous end of an option."
191 msgstr "wskazuje jednoznaczny koniec opcji."
192
193 #. type: Plain text
194 #: mawk.1:88
195 msgid ""
196 "The above options will be available in any Posix-compliant AWK "
197 "implementation. Implementation-specific options are preceded by B<-W>. "
198 "B<mawk> provides six such extensions:"
199 msgstr ""
200 "Powyższe opcje będą dostępne w każdej zgodnej z Posix implementacji AWK. "
201 "Opcje specyficzne dla danej implementacji poprzedzane są przez B<-W>. "
202 "B<mawk> udostępnia sześć takich rozszerzeń:"
203
204 #. type: TP
205 #: mawk.1:88
206 #, no-wrap
207 msgid "B<-W version>"
208 msgstr "B<-W version>"
209
210 #. type: Plain text
211 #: mawk.1:94
212 msgid ""
213 "B<mawk> prints its version and copyright to stdout (standard output), and "
214 "compiled-in limits to stderr (standard error). It exits with status 0."
215 msgstr ""
216 "B<mawk> wypisuje swą wersję i prawa autorskie na stdout (standardowym "
217 "wyjściu), zaś wkompilowane ograniczenia na stderr (standardowym wyjściu "
218 "błędów). Kończy pracę z kodem 0."
219
220 #. type: TP
221 #: mawk.1:94
222 #, no-wrap
223 msgid "B<-W dump>"
224 msgstr "B<-W dump>"
225
226 #. type: Plain text
227 #: mawk.1:98
228 msgid ""
229 "Prints an assembler-like listing of the program's internal representation to "
230 "stdout and exits with status 0 (if compilation is successful)."
231 msgstr ""
232 "Wypisuje na stdout asembleropodobny listing wewnętrznej reprezentacji "
233 "programu i kończy pracę z kodem 0 (przy pomyślnej kompilacji)."
234
235 #. type: TP
236 #: mawk.1:98
237 #, no-wrap
238 msgid "B<-W interactive>"
239 msgstr "B<-W interactive>"
240
241 #. type: Plain text
242 #: mawk.1:104
243 msgid ""
244 "Sets unbuffered writes to stdout and line buffered reads from stdin (standard "
245 "input). Records from stdin are lines regardless of the value of B<RS>."
246 msgstr ""
247 "Ustawia niebuforowane zapisy na stdout i buforowane wierszami odczyty z stdin "
248 "(standardowego wejścia). Rekordy z stdin są wierszami niezależnie od wartości "
249 "B<RS>."
250
251 #. type: TP
252 #: mawk.1:104
253 #, no-wrap
254 msgid "B<-W exec >I<file>"
255 msgstr "B<-W exec >I<plik>"
256
257 #. type: Plain text
258 #: mawk.1:112
259 msgid ""
260 "The program text is read from I<file> and this is the last option. Useful on "
261 "systems that support the \"magic numbers\" B<#!> convention for executable "
262 "scripts."
263 msgstr ""
264 "Tekst programu czytany jest z I<pliku> i jest to ostatnia opcja. Przydatne na "
265 "systemach obsługujących konwencję \"liczb magicznych\" B<#!> dla skryptów "
266 "wykonywalnych."
267
268 #. type: TP
269 #: mawk.1:112
270 #, no-wrap
271 msgid "B<-W sprintf=>I<num>"
272 msgstr "B<-W sprintf=>I<num>"
273
274 #. type: Plain text
275 #: mawk.1:120
276 msgid ""
277 "Sets the size of sprintf's internal buffer to I<num> bytes. More than "
278 "occasional use of this option indicates that B<mawk> should be recompiled."
279 msgstr ""
280 "Ustawia rozmiar bufora wewnętrznego sprintf na I<num> bajtów. Częstsze niż "
281 "sporadyczne stosowanie tej opcji wskazuje, że B<mawk> powinien zostać "
282 "zrekompilowany."
283
284 #. type: TP
285 #: mawk.1:120
286 #, no-wrap
287 msgid "B<-W posix_space>"
288 msgstr "B<-W posix_space>"
289
290 #. type: Plain text
291 #: mawk.1:125
292 msgid "Forces B<mawk> not to treat '\\en' as a space."
293 msgstr "Wymusza na B<mawk>, by nie uważał '\\en' za odstęp."
294
295 #. type: Plain text
296 #: mawk.1:130
297 msgid ""
298 "The short forms B<-W>[B<vdiesp>] are recognized, and on some systems B<-We> "
299 "is mandatory to avoid command line length limitations."
300 msgstr ""
301 "Rozpoznawane są krótkie postacie B<-W>[B<vdiesp>], zaś w niektórych systemach "
302 "B<-We> jest obowiązkowe dla uniknięcia ograniczeń długości wiersza poleceń."
303
304 #. type: SH
305 #: mawk.1:130
306 #, no-wrap
307 msgid "THE AWK LANGUAGE"
308 msgstr "JĘZYK AWK"
309
310 #. type: SS
311 #: mawk.1:131
312 #, no-wrap
313 msgid "1. Program structure"
314 msgstr "1. Struktura programu"
315
316 #. type: Plain text
317 #: mawk.1:135
318 msgid ""
319 "An AWK program is composed of a sequence of I<pattern{action}> pairs and user-"
320 "defined function definitions."
321 msgstr ""
322 "Program w języku AWK jest składa się z sekwencji par I<wzorzec {akcja}> i "
323 "definicji funkcji użytkownika."
324
325 #. type: Plain text
326 #: mawk.1:137
327 msgid "The pattern could be:"
328 msgstr "Wzorcem może być:"
329
330 #. type: Plain text
331 #: mawk.1:143
332 #, no-wrap
333 msgid ""
334 "B<BEGIN>\n"
335 "B<END>\n"
336 "I<expression>\n"
337 "I<expression>B<, >I<expression>\n"
338 msgstr ""
339 "B<BEGIN>\n"
340 "B<END>\n"
341 "I<wyrażenie>\n"
342 "I<wyrażenie>B<, >I<wyrażenie>\n"
343
344 #. type: Plain text
345 #: mawk.1:158
346 msgid ""
347 "One of the elements of the pair I<pattern {action}> may be omitted, but not "
348 "both. If I<{action}> is omitted, then it is implied. If I<pattern> is "
349 "omitted, then it is implicitly matched. The patterns B<BEGIN> and B<END> "
350 "require an action."
351 msgstr ""
352 "Można pominąc jeden z elementów z pary I<wzorzec {akcja}>, ale nie oba. "
353 "Jeżeli pominięto I<{akcję}>, to jest nią domniemane B<{ print }>. Jeżeli "
354 "pominięto I<wzorzec>, to jest on niejawnie dopasowany. Wzorce B<BEGIN> i "
355 "B<END> wymagają akcji."
356
357 #. type: Plain text
358 #: mawk.1:179
359 msgid ""
360 "Statements are terminated by newlines, semicolons, or both. Groups of "
361 "statements, such as actions or loop bodies, are joined into blocks using "
362 "B<{ ... }>, as in C. The last statement in a block does not require a "
363 "terminator. Empty lines have no significance; an empty statement terminates "
364 "with a semicolon. Long statements can be continued with a backslash B<\\e>. A "
365 "statement can be split across lines without using a backslash after a comma, "
366 "an opening parenthesis, &&, ||, B<do>, B<else>, the closing parenthesis of a "
367 "B<if>, B<while>, or B<for> statement, and the closing parenthesis of a "
368 "function definition. Comments start with B<#> and extend to, but do not span, "
369 "the end of the line."
370 msgstr ""
371 "Instrukcje zakończone są znakami nowej linii, średnikami lub oboma tymi "
372 "znakami. Grupy instrukcji, jak akcje czy ciała pętli, łączone są w bloki za "
373 "pośrednictwem B<{ ... }>, jak w C. Ostatnia instrukcja w bloku nie wymaga "
374 "znaku kończącego. Puste wiersza nie mają znaczenia; pusta instrukcja "
375 "zakończona jest średnikiem. Długie instrukcje można kontynuować przy pomocy "
376 "odwrotnego ukośnika B<\\e>. Instrukcję można podzielić między wiersze bez "
377 "użycia odwrotnego ukośnika po przecinku, nawiasie otwierającym, &&, ||, "
378 "B<do>, B<else>, nawiasie zamykającym instrukcji B<if>, B<while> lub B<for> "
379 "oraz nawiasie zamykającym definicji funkcji. Komentarze zaczynają się od "
380 "B<#> i rozciągają się do aż końca wiersza, choć go nie obejmują."
381
382 #. type: Plain text
383 #: mawk.1:181
384 msgid "The following statements control the program flow within blocks."
385 msgstr "Poniższe instrukcje sterują przepływem programu wewnątrz bloków."
386
387 #. type: Plain text
388 #: mawk.1:186
389 msgid "B<if> ( \\*(ex ) I<statement>"
390 msgstr "B<if> ( \\*(ex ) I<instrukcja>"
391
392 #. type: Plain text
393 #: mawk.1:192
394 msgid "B<if> ( \\*(ex ) I<statement> B<else> I<statement>"
395 msgstr "B<if> ( \\*(ex ) I<instrukcja> B<else> I<instrukcja>"
396
397 #. type: Plain text
398 #: mawk.1:196
399 msgid "B<while> ( \\*(ex ) I<statement>"
400 msgstr "B<while> ( \\*(ex ) I<instrukcja>"
401
402 #. type: Plain text
403 #: mawk.1:201
404 msgid "B<do> I<statement> B<while> ( \\*(ex )"
405 msgstr "B<do> I<instrukcja> B<while> ( \\*(ex )"
406
407 #. type: Plain text
408 #: mawk.1:209
409 msgid "B<for> ( I<opt_expr> ; I<opt_expr> ; I<opt_expr> ) I<statement>"
410 msgstr "B<for> ( I<wyr_opc> ; I<wyr_opc> ; I<wyr_opc> ) I<instrukcja>"
411
412 #. type: Plain text
413 #: mawk.1:213
414 msgid "B<for> ( I<zmn >B<in >I<array> ) I<statement>"
415 msgstr "B<for> ( I<zmn >B<in >I<tablica> ) I<instrukcja>"
416
417 #. type: Plain text
418 #: mawk.1:215
419 msgid "B<continue>"
420 msgstr "B<continue>"
421
422 #. type: Plain text
423 #: mawk.1:217
424 msgid "B<break>"
425 msgstr "B<break>"
426
427 #. type: SS
428 #: mawk.1:219
429 #, no-wrap
430 msgid "2. Data types, conversion and comparison"
431 msgstr "2. Typy danych, konwersja i porównywanie"
432
433 #. type: Plain text
434 #: mawk.1:228
435 msgid ""
436 "There are two basic data types, numeric and string. Numeric constants can be "
437 "integer like -2, decimal like 1.08, or in scientific notation like -1.1e4 or "
438 ".28E-3. All numbers are represented internally and all computations are done "
439 "in floating point arithmetic. So for example, the expression 0.2e2 == 20 is "
440 "true and true is represented as 1.0."
441 msgstr ""
442 "Istnieją dwa podstawowe typy danych, numeryczny i łańcuch znakowy. Stałe "
443 "liczbowe mogą być całkowite, jak -2, dziesiętne jak 1.08, lub podane w "
444 "notacji naukowej jak -1.1e4 czy .28E-3. Wszystkie liczby są reprezentowane "
445 "wewnętrznie w arytmetyce zmiennoprzecinkowej. Wszystkie obliczenia również są "
446 "zmiennoprzecinkowe. Tak więc, na przykład, wyrażenie 0.2e2 == 20 jest "
447 "prawdą. Prawda reprezentowana jest jako 1.0."
448
449 #. type: Plain text
450 #: mawk.1:230
451 msgid "String constants are enclosed in double quotes."
452 msgstr "Stałe łańcuchowe ujęte są w cudzysłowy."
453
454 #. type: Plain text
455 #: mawk.1:233
456 msgid "This is a string with a newline at the end.\\en"
457 msgstr "To jest łańcuch ze znakiem nowej linii na końcu.\\en"
458
459 #. type: Plain text
460 #: mawk.1:237
461 msgid ""
462 "Strings can be continued across a line by escaping (\\e) the newline. The "
463 "following escape sequences are recognized:"
464 msgstr ""
465 "Łańcuchy znakowe mogą być kontynuowane w kolejnych wierszach dzięki "
466 "poprzedzeniu znaku nowej linii odwrotnym ukośnikiem (\\e). Rozpoznawane są "
467 "następujące sekwencje specjalne:"
468
469 #. type: Plain text
470 #: mawk.1:250
471 #, no-wrap
472 msgid ""
473 " \\e\\e \\e\n"
474 " \\e\" \"\n"
475 " \\ea alert, ascii 7\n"
476 " \\eb backspace, ascii 8\n"
477 " \\et tab, ascii 9\n"
478 " \\en newline , ascii 10\n"
479 " \\ev vertical tab, ascii 11\n"
480 " \\ef formfeed, ascii 12\n"
481 " \\er carriage return, ascii 13\n"
482 " \\eddd 1, 2 or 3 octal digits for ascii ddd\n"
483 " \\exhh 1 or 2 hex digits for ascii hh\n"
484 msgstr ""
485 " \\e\\e \\e\n"
486 " \\e\" \"\n"
487 " \\ea dzwonek, ascii 7\n"
488 " \\eb backspace, ascii 8\n"
489 " \\et tabulacja, ascii 9\n"
490 " \\en znak nowej linii, newline , ascii 10\n"
491 " \\ev tabulacja pionowa, ascii 11\n"
492 " \\ef wysuw strony, formfeed, ascii 12\n"
493 " \\er powrót karetki, carriage return, ascii 13\n"
494 " \\eddd 1, 2 lub 3 cyfry ósemkowe dla ascii ddd\n"
495 " \\exhh 1 lub 2 cyfry szesnastkowe dla ascii hh\n"
496
497 #. type: Plain text
498 #: mawk.1:256
499 msgid ""
500 "If you escape any other character \\ec, you get \\ec, i.e., B<mawk> ignores "
501 "the escape."
502 msgstr ""
503 "Jeżeli odwrotnym ukośnikiem zostanie poprzedzony inny znak, np. \\ec, "
504 "wynikiem będzie sekwencja źródłowa: \\ec, tzn. B<mawk> zignoruje specjalne "
505 "właściwości odwrotnego ukośnika."
506
507 #. type: Plain text
508 #: mawk.1:267
509 msgid ""
510 "There are really three basic data types; the third is number and string which "
511 "has both a numeric value and a string value at the same time. User defined "
512 "variables come into existence when first referenced and are initialized to "
513 "I<null>, a number and string value which has numeric value 0 and string value "
514 "\"\". Non-trivial number and string typed data come from input and are "
515 "typically stored in fields. (See section 4)."
516 msgstr ""
517 "Naprawdę istnieją trzy podstawowe typy danych; trzecim jest I<liczba i "
518 "łańcuch>, posiadający równocześnie wartość liczbową i wartość łańcuchową. "
519 "Zmienne definiowane przez użytkownika pojawiają się przy pierwszym ich użyciu "
520 "i są inicjowane na I<null>, typu \"liczba i łańcuch\", mające wartość "
521 "numeryczną 0 a łańcuchową \"\". Nietrywialne dane typu liczbowo-łańcuchowego "
522 "pochodzą z wejścia i zwykle przechowywane są w polach (zobacz sekcja 4)."
523
524 #. type: Plain text
525 #: mawk.1:271
526 msgid ""
527 "The type of an expression is determined by its context and automatic type "
528 "conversion occurs if needed. For example, to evaluate the statements"
529 msgstr ""
530 "Typ wyrażenia określany jest przez jego kontekst. W razie potrzeby wykonywana "
531 "jest automatyczna konwersja typów. Na przykład, wyznaczenie wartości "
532 "instrukcji"
533
534 #. type: Plain text
535 #: mawk.1:274
536 #, no-wrap
537 msgid "\ty = x + 2 ; z = x \"hello\"\n"
538 msgstr "\ty = x + 2 ; z = x \"hello\"\n"
539
540 #. type: Plain text
541 #: mawk.1:307
542 msgid ""
543 "The value stored in variable y will be typed numeric. If x is not numeric, "
544 "the value read from x is converted to numeric before it is added to 2 and "
545 "stored in y. The value stored in variable with will be typed string, and the "
546 "value of x will be converted to string if necessary and concatenated with "
547 "\"hello\". (Of course, the value and type stored in x is not changed by any "
548 "conversions.) A string expression is converted to numeric using its longest "
549 "numeric prefix as with I<atof>(3). A numeric expression is converted to "
550 "string by replacing expr with sprintf(CONVFMT, expr), unless expr can be "
551 "represented on the host machine as an exact integer then it is converted to "
552 "sprintf(\"%d\", expr). B<Sprintf()> is an AWK built-in that duplicates the "
553 "functionality of I<sprintf>(3), and B<CONVFMT> is a built-in variable used "
554 "for internal conversion from number to string and initialized to \"%.6g\". "
555 "Explicit type conversions can be forced, expr \"\" is string and \\*expr+0 is "
556 "numeric."
557 msgstr ""
558 "Wartość przechowywana w zmiennej y otrzyma typ numeryczny. Jeżeli x nie jest "
559 "numeryczne, to wartość odczytana z x zostanie skonwertowana na liczbę przed "
560 "dodaniem do 2 i zachowaniem w y. Wartość przechowywana w zmiennej z będzie "
561 "typu łańcuchowego: wartość x zostanie przekształcona na łańcuch, jeśli będzie "
562 "to niezbędne, i złączona z \"hello\". Oczywiście, wartość i typ przechowywane "
563 "w x nie zmieniają się w żadnej z tych konwersji. Wyrażenie łańcuchowe "
564 "przekształcane jest na numeryczne przy zastosowaniu najdłuższego swego "
565 "przedrostka numerycznego jak w I<atof>(3). Wyrażenie numeryczne konwertowane "
566 "jest na łańcuch poprzez zastąpienie I<wyraż> przez B<sprintf(CONVFMT>, "
567 "I<wyraż>), chyba że I<wyraż> może być reprezentowane w danym komputerze jako "
568 "dokładna liczba całkowita, wówczas przekształcane jest na B<sprintf>(\"%d\", "
569 "\\*(ex). B<Sprintf()> jest funkcją wbudowaną AWK, dublującą działanie "
570 "I<sprintf>(3), zaś B<CONVFMT> jest wbudowaną zmienną używaną do wewnętrznej "
571 "konwersji z liczby na łańcuch i inicjowaną na \"%.6g\". Można wymusić jawną "
572 "konwersję typów: \\*(ex \"\" jest łańcuchowe, a \\*(ex+0 jest numeryczne."
573
574 #. type: Plain text
575 #: mawk.1:315
576 msgid ""
577 "In evaluating I<expr1> B<rel-op> I<expr2>, if both operands are numeric or "
578 "numeric-string, the comparison is numeric; if both operands are string, the "
579 "comparison is string; if either operand is string, the non-string operand is "
580 "converted and the comparison is string. The result is numeric, 1, or 0."
581 msgstr ""
582 "Przy wyliczaniu, I<wyraż1> B<op-rel> I<wyraż2>, jeżeli oba operandy są "
583 "numeryczne lub numeryczno-łańcuchowe, to porównywanie jest numeryczne; jeżeli "
584 "oba operandy są łańcuchami to porównywanie jest łańcuchowe; jeśli jeden z "
585 "operandów jest łańcuchem, to operand nie-łańcuchowy jest przekształcany i "
586 "porównywanie jest łańcuchowe. Wynik jest numeryczny, 1 lub 0."
587
588 #. type: Plain text
589 #: mawk.1:322
590 msgid ""
591 "In logical contexts such as B<if> ( \\*(ex ) I<statement>, a string "
592 "expression evaluates to true if and only if it is not the empty string \"\"; "
593 "and numeric expressions if and only if they are not numerically zero."
594 msgstr ""
595 "W kontekstach logicznych, jak B<if> ( \\*(ex ) I<instrukcja>, wartością "
596 "wyrażenia łańcuchowego jest prawda wtedy i tylko wtedy, gdy nie jest ono "
597 "łańcuchem pustym \"\"; wyrażeń liczbowych wtedy i tylko wtedy gdy nie są "
598 "numerycznie zerem."
599
600 #. type: SS
601 #: mawk.1:322
602 #, no-wrap
603 msgid "3. Regular expressions"
604 msgstr "3. Wyrażenia regularne"
605
606 #. type: Plain text
607 #: mawk.1:327
608 msgid ""
609 "In the AWK language, records, fields and strings are often tested for "
610 "matching a I<regular expression>. Regular expressions are enclosed in "
611 "slashes, and"
612 msgstr ""
613 "W języku AWK rekordy, pola i łańcuchy są często sprawdzane na dopasowanie do "
614 "I<wyrażenia regularnego>. Wyrażenia regularne umieszczone są między "
615 "ukośnikami, a"
616
617 #. type: Plain text
618 #: mawk.1:330
619 #, no-wrap
620 msgid "\t\\*(ex ~ /I<r>/\n"
621 msgstr "\t\\*(ex ~ /I<r>/\n"
622
623 #. type: Plain text
624 #: mawk.1:340
625 msgid ""
626 "is an AWK expression that evaluates to 1 if \\*(ex \"matches\" I<r>, meaning "
627 "that some substring \\*(ex is in the set of strings defined by I<r>. If there "
628 "is no match, the expression evaluates to 0; replacing B<~> with the \"does "
629 "not match\" operator, B<!~>, reverses the meaning. Pattern-Action Pairs"
630 msgstr ""
631 "jest wyrażeniem AWK o wartości 1 jeśli \\*(ex \"pasuje do\" I<r>, co oznacza, "
632 "że pewien podłańcuch \\*(ex jest w zestawie łańcuchów zdefiniowanych przez "
633 "I<r>. Jeśli nie występuje dopasowanie, to wyrażenie otrzymuje wartość 0; "
634 "zastąpienie B<~> operatorem \"nie pasuje\", B<!~>, odwraca znaczenia. Pary "
635 "wzorzec-akcja"
636
637 #. type: Plain text
638 #: mawk.1:344
639 #, no-wrap
640 msgid " /I<r>/ { I<action> } i B<$0> ~ /I<r>/ { I<action> }\n"
641 msgstr " /I<r>/ { I<akcja> } i B<$0> ~ /I<r>/ { I<akcja> }\n"
642
643 #. type: Plain text
644 #: mawk.1:355
645 msgid ""
646 "are the same, and for each input record matching I<r>, I<action> is executed. "
647 "In fact, /I<r>/ is an AWK expression equivalent to (B<$0> ~ /I<r>/) "
648 "everywhere except when it appears on the right-hand side of a match operator "
649 "or when passed to a built-in function expecting a regular expression as an "
650 "argument."
651 msgstr ""
652 "są takie same, zaś dla każdego rekordu wejściowego pasującego do I<r> "
653 "wykonywana jest I<akcja>. Faktycznie, /I<r>/ jest wyrażeniem AWK równoważnym "
654 "(B<$0> ~ /I<r>/) wszędzie z wyjątkiem wystąpienia po prawej stronie "
655 "operatora dopasowania lub przekazywania do funkcji wbudowanej oczekującej "
656 "jako argumentu wyrażenia regularnego."
657
658 #. type: Plain text
659 #: mawk.1:360
660 msgid ""
661 "AWK uses extended regular expressions like B<egrep>(1). Regular expression "
662 "metacharacters, i.e. characters with special meaning in regular expressions, "
663 "are"
664 msgstr ""
665 "AWK stosuje rozszerzone wyrażenia regularne jak B<egrep>(1). Metaznakami "
666 "wyrażeń regularnych, tj. znakami o specjalnym znaczeniu w wyrażeniach "
667 "regularnych są"
668
669 #. type: Plain text
670 #: mawk.1:363
671 #, no-wrap
672 msgid "\t\\ ^ $ . [ ] | ( ) * + ?\n"
673 msgstr "\t\\ ^ $ . [ ] | ( ) * + ?\n"
674
675 #. type: Plain text
676 #: mawk.1:366
677 msgid "Regular expressions are built up from characters as follows:"
678 msgstr "Wyrażenia regularne konstruowane są ze znaków jak niżej:"
679
680 #. type: TP
681 #: mawk.1:367
682 #, no-wrap
683 msgid "I<c>"
684 msgstr "I<c>"
685
686 #. type: Plain text
687 #: mawk.1:371
688 msgid "matches any non-metacharacter c."
689 msgstr "dopasowuje dowolny znak nie będący metaznakiem I<c>."
690
691 #. type: TP
692 #: mawk.1:371
693 #, no-wrap
694 msgid "B<\\e>I<c>"
695 msgstr "B<\\e>I<c>"
696
697 #. type: Plain text
698 #: mawk.1:379
699 msgid ""
700 "matches a character defined by the same escape sequences used in string "
701 "constants or the literal character I<c> if I<\\ec> is not an escape sequence."
702 msgstr ""
703 "dopasowuje znak zdefiniowany przez tę samą sekwencję specjalną używaną w "
704 "stałych łańcuchowych lub dosłowny znak I<c> jeśli I<\\ec> nie jest sekwencją "
705 "specjalną."
706
707 #. type: TP
708 #: mawk.1:379
709 #, no-wrap
710 msgid "B<\\&.>"
711 msgstr "B<\\&.>"
712
713 #. type: Plain text
714 #: mawk.1:382
715 msgid "matches any character (including newline)."
716 msgstr "dopasowuje dowolny znak (łącznie ze znakiem nowej linii)."
717
718 #. type: TP
719 #: mawk.1:382
720 #, no-wrap
721 msgid "B<^>"
722 msgstr "B<^>"
723
724 #. type: Plain text
725 #: mawk.1:385
726 msgid "matches the front of a string."
727 msgstr "dopasowuje początek łańcucha."
728
729 #. type: TP
730 #: mawk.1:385
731 #, no-wrap
732 msgid "B<$>"
733 msgstr "B<$>"
734
735 #. type: Plain text
736 #: mawk.1:388
737 msgid "matches the back of a string."
738 msgstr "dopasowuje koniec łańcucha."
739
740 #. type: TP
741 #: mawk.1:388
742 #, no-wrap
743 msgid "B<[>I<c\\d1\\uc\\d2\\uc\\d3\\u>...B<]>"
744 msgstr "B<[>I<c\\d1\\uc\\d2\\uc\\d3\\u>...B<]>"
745
746 #. type: Plain text
747 #: mawk.1:393
748 msgid ""
749 "matches any character from the class I<c\\d1\\uc\\d2\\uc\\d3\\u>... . The "
750 "range of characters is denoted by I<c\\d1\\u>B<->I<c\\d2\\u> within the class "
751 "[...]."
752 msgstr ""
753 "dopasowuje dowolny znak z klasy I<c\\d1\\uc\\d2\\uc\\d3\\u>... . Zakres "
754 "znaków oznaczany jest przez I<c\\d1\\u>B<->I<c\\d2\\u> wewnątrz klasy [...]."
755
756 #. type: TP
757 #: mawk.1:393
758 #, no-wrap
759 msgid "B<[^>I<c\\d1\\uc\\d2\\uc\\d3\\u>...B<]>"
760 msgstr "B<[^>I<c\\d1\\uc\\d2\\uc\\d3\\u>...B<]>"
761
762 #. type: Plain text
763 #: mawk.1:396
764 msgid "matches any character not in class I<c\\d1\\uc\\d2\\uc\\d3\\u>..."
765 msgstr ""
766 "dopasowuje dowolny znak nie należący do klasy I<c\\d1\\uc\\d2\\uc\\d3\\u>..."
767
768 #. type: Plain text
769 #: mawk.1:400
770 msgid ""
771 "Regular expressions are built up from other regular expressions as follows:"
772 msgstr ""
773 "Wyrażenia regularne konstruowane są z innych wyrażeń regularnych w "
774 "następujący sposób:"
775
776 #. type: TP
777 #: mawk.1:401
778 #, no-wrap
779 msgid "I<r\\d1\\ur\\d2\\u>"
780 msgstr "I<r\\d1\\ur\\d2\\u>"
781
782 #. type: Plain text
783 #: mawk.1:405
784 msgid "matches I<r\\d1\\u> immediately followed by I<r\\d2\\u> (concatenation)."
785 msgstr ""
786 "dopasowuje I<r\\d1\\u>, bezpośrednio po którym następuje I<r\\d2\\u> "
787 "(konkatenacja)."
788
789 #. type: TP
790 #: mawk.1:405
791 #, no-wrap
792 msgid "I<r\\d1\\u >B<| >I<r\\d2\\u>"
793 msgstr "I<r\\d1\\u >B<| >I<r\\d2\\u>"
794
795 #. type: Plain text
796 #: mawk.1:408
797 msgid "matches I<r\\d1\\u> or I<r\\d2\\u> (alternative)."
798 msgstr "dopasowuje I<r\\d1\\u> lub I<r\\d2\\u> (alternatywa)."
799
800 #. type: TP
801 #: mawk.1:408
802 #, no-wrap
803 msgid "I<r>B<*>"
804 msgstr "I<r>B<*>"
805
806 #. type: Plain text
807 #: mawk.1:411
808 msgid "matches zero or more occurrences of I<r>."
809 msgstr "dopasowuje zero lub więcej wystąpień I<r>."
810
811 #. type: TP
812 #: mawk.1:411
813 #, no-wrap
814 msgid "I<r>B<+>"
815 msgstr "I<r>B<+>"
816
817 #. type: Plain text
818 #: mawk.1:414
819 msgid "matches one or more I<r>."
820 msgstr "dopasowuje jedno lub więcej I<r>."
821
822 #. type: TP
823 #: mawk.1:414
824 #, no-wrap
825 msgid "I<r>B<?>"
826 msgstr "I<r>B<?>"
827
828 #. type: Plain text
829 #: mawk.1:417
830 msgid "matches zero or one I<r>."
831 msgstr "dopasowuje zero lub jedno I<r>."
832
833 #. type: TP
834 #: mawk.1:417
835 #, no-wrap
836 msgid "B<(>I<r>B<)>"
837 msgstr "B<(>I<r>B<)>"
838
839 #. type: Plain text
840 #: mawk.1:420
841 msgid "matches I<r>, allowing grouping."
842 msgstr "dopasowuje I<r>, umożliwiając grupowanie."
843
844 #. type: Plain text
845 #: mawk.1:424
846 msgid ""
847 "Operators in increasing precedence: alternative, concatenation (join), and "
848 "unary operators (*, +, or ?)."
849 msgstr ""
850 "Operatory według rosnącego priorytetu: alternatywa, konkatenacja (złączenie) "
851 "i operatory jednoargumentowe (*, + lub ?)."
852
853 #. type: Plain text
854 #: mawk.1:426
855 msgid "For example,"
856 msgstr "Na przykład,"
857
858 #. type: Plain text
859 #: mawk.1:430
860 #, no-wrap
861 msgid ""
862 " /^[_a-zA-Z][_a-zA-Z0-9]*$/ i\n"
863 " /^[-+]?([0-9]+\\e\\|.?|\\e\\|.[0-9])[0-9]*([eE][-+]?[0-9]+)?$/\n"
864 msgstr ""
865 " /^[_a-zA-Z][_a-zA-Z0-9]*$/ i\n"
866 " /^[-+]?([0-9]+\\e\\|.?|\\e\\|.[0-9])[0-9]*([eE][-+]?[0-9]+)?$/\n"
867
868 #. type: Plain text
869 #: mawk.1:436
870 msgid ""
871 "match AWK identifiers and AWK numeric constants, respectively. Note that the "
872 "dot B<.> must be escaped with a backslash to be recognized as a decimal point "
873 "rather than a match for any character, and metacharacters within character "
874 "classes lose their special meaning."
875 msgstr ""
876 "dopasowują odpowiednio identyfikatory AWK i stałe liczbowe AWK. Zauważ, że "
877 "kropka B<.> musi być chroniona odwrotnym ukośnikiem, by została rozpoznana "
878 "jako kropka dziesiętna, a nie dopasowanie dowolnego znaku, a metaznaki "
879 "wewnątrz klas znaków tracą swe specjalne znaczenie."
880
881 #. type: Plain text
882 #: mawk.1:442
883 msgid ""
884 "Any expression can be used on the right side of the ~ or !~ operators. "
885 "Similarly, any expression can be passed to a built-in function expecting a "
886 "regular expression. If necessary, it will be converted to a string and then "
887 "interpreted as a regular expression. For example,"
888 msgstr ""
889 "Po prawej stronie operatorów ~ lub !~ może zostać użyte dowolne wyrażenie. "
890 "Podobnie, dowolne wyrażenie można przekazać do funkcji wbudowanej oczekującej "
891 "wyrażenia regularnego. W razie potrzeby zostanie ono przekształcone na "
892 "łańcuch, a następnie zinterpretowane jako wyrażenie regularne. Na przykład,"
893
894 #. type: Plain text
895 #: mawk.1:445
896 #, no-wrap
897 msgid "\tBEGIN { identifier = \"[_a-zA-Z][_a-zA-Z0-9]*\" }\n"
898 msgstr "\tBEGIN { identifier = \"[_a-zA-Z][_a-zA-Z0-9]*\" }\n"
899
900 #. type: Plain text
901 #: mawk.1:447
902 #, no-wrap
903 msgid "\t$0 ~ \"^\" identifier\n"
904 msgstr "\t$0 ~ \"^\" identifier\n"
905
906 #. type: Plain text
907 #: mawk.1:450
908 msgid "prints all lines starting with some AWK identifier."
909 msgstr ""
910 "wypisuje wszystkie wiersze zaczynające się od jakiegoś identyfikatora AWK."
911
912 #. type: Plain text
913 #: mawk.1:455
914 msgid ""
915 "B<mawk> recognizes the empty regular expression, //\\|, which matches the "
916 "empty string. Therefore, it matches any string at the beginning, end, and "
917 "between any characters. For example,"
918 msgstr ""
919 "B<mawk> rozpoznaje puste wyrażenie regularne, //\\|, dopasowujące łańcuch "
920 "pusty. Zatem pasuje do niego dowolny łańcuch na początku, końcu i pomiędzy "
921 "dowolnym znakiem. Na przykład,"
922
923 #. type: Plain text
924 #: mawk.1:459
925 #, no-wrap
926 msgid ""
927 "\techo abc | mawk '{ gsub(//, \"X\") ; print }'\n"
928 "\tXaXbXcX\n"
929 msgstr ""
930 "\techo abc | mawk '{ gsub(//, \"X\") ; print }'\n"
931 "\tXaXbXcX\n"
932
933 #. type: SS
934 #: mawk.1:462
935 #, no-wrap
936 msgid "4. Records and fields"
937 msgstr "4. Rekordy i pola"
938
939 #. type: Plain text
940 #: mawk.1:481
941 msgid ""
942 "Records are read one at a time and stored in variable B<$0>. The record is "
943 "broken into I<fields>, stored in B<$1>, B<$2>, ..., B<$NF>. The built-in "
944 "variable B<NF> is set to the number of fields, and B<NR> and B<FNR> are "
945 "incremented by 1. Fields above B<$NF> are set to \"\"."
946 msgstr ""
947 "Rekordy czytane są po jednym na raz, i przechowywane w zmiennej B<$0>. "
948 "Rekord rozbijany jest na I<pola>, przechowywane w B<$1>, B<$2>, ..., B<$NF>. "
949 "Wbudowana zmienna B<NF> ustawiana jest na liczbę pól, a B<NR> i B<FNR> są "
950 "zwiększane o 1. Pola powyżej B<$NF> ustawiane są na \"\"."
951
952 #. type: Plain text
953 #: mawk.1:500
954 msgid ""
955 "Assignment to B<$0> causes the fields and B<NF> to be recalculated. "
956 "Assignment to B<NF> or to a field causes B<$0> to be recreated by "
957 "concatenating consecutive fields separated by B<OFS>. Assignment to a field "
958 "with an index greater than B<NF> enlarges B<NF> and recreates B<$0>."
959 msgstr ""
960 "Przypisanie do B<$0> powoduje, że pola i B<NF> są obliczane ponownie. "
961 "Przypisanie do B<NF> lub do pola powoduje, że B<$0> jest ponownie tworzone "
962 "przez złączenie kolejnych pól separowanych przez B<OFS>. Przypisanie do pola "
963 "o indeksie większym od B<NF>, powiększa B<NF> i powoduje ponowne utworzenie "
964 "B<$0>."
965
966 #. type: Plain text
967 #: mawk.1:504
968 msgid ""
969 "Input data stored in fields is string, unless the entire field is numeric, in "
970 "which case the type is numeric-string. For example,"
971 msgstr ""
972 "Dane wejściowe przechowywane w polach są łańcuchami, chyba że całe pole ma "
973 "postać numeryczną a wówczas typ jest liczbowo-łańcuchowy. Na przykład,"
974
975 #. type: Plain text
976 #: mawk.1:509
977 #, no-wrap
978 msgid ""
979 "\techo 24 24E |\n"
980 "\tmawk '{ print($1E<gt>100, $1E<gt>\"100\", $2E<gt>100, $2E<gt>\"100\") }'\n"
981 "\t0 1 1 1\n"
982 msgstr ""
983 "\techo 24 24E |\n"
984 "\tmawk '{ print($1E<gt>100, $1E<gt>\"100\", $2E<gt>100, $2E<gt>\"100\") }'\n"
985 "\t0 1 1 1\n"
986
987 #. type: Plain text
988 #: mawk.1:520
989 msgid ""
990 "B<$0> and B<$2> are strings and B<$1> is numeric-string. The first comparison "
991 "is numeric, the second is string, the third is string (100 is converted to "
992 "\"100\"), and the last is string."
993 msgstr ""
994 "B<$0> i B<$2> są łańcuchami a B<$1> jest liczbowo-łańcuchowe. Pierwsze "
995 "porównanie jest numeryczne, drugie łańcuchowe, trzecie łańcuchowe (100 jest "
996 "konwertowane na \"100\"), i ostatnie łańcuchowe."
997
998 #. type: SS
999 #: mawk.1:520
1000 #, no-wrap
1001 msgid "5. Expressions and operators"
1002 msgstr "5. Wyrażenia i operatory"
1003
1004 #. type: Plain text
1005 #: mawk.1:529
1006 msgid ""
1007 "The expression syntax is similar to C. Primitive expressions include numeric "
1008 "constants, string constants, variables, fields, arrays, and function calls. A "
1009 "variable, array, or function identifier can be a sequence of letters, digits, "
1010 "and underscores, but not starting with a digit. Variables are not declared; "
1011 "they exist the first time they are referenced and are initialized to I<null>."
1012 msgstr ""
1013 "Składnia wyrażeń jest podobna jak w C. Wyrażeniami pierwotnymi są stałe "
1014 "liczbowe, stałe łańcuchowe, zmienne, pola, tablice i wywołania funkcji. "
1015 "Identyfikator zmiennej, tablicy bądź funkcji może być ciągiem liter, cyfr i "
1016 "znaków podkreślenia, nie rozpoczynającym się od cyfry. Zmienne nie są "
1017 "deklarowane; zaistnieją przy pierwszym do nich odwołaniu, a inicjowane są na "
1018 "I<null>."
1019
1020 #. type: Plain text
1021 #: mawk.1:532
1022 msgid ""
1023 "New expressions are created using the following operators, listed in order of "
1024 "increasing precedence:"
1025 msgstr ""
1026 "Nowe wyrażenia tworzone są z użyciem poniższych, podanych w kolejności "
1027 "rosnącego priorytetu, operatorów:"
1028
1029 #. type: Plain text
1030 #: mawk.1:551
1031 #, no-wrap
1032 msgid ""
1033 "I<assignment> = += -= *= /= %= ^=\n"
1034 "I<conditional> ? :\n"
1035 "I<logical or> ||\n"
1036 "I<logical and> &&\n"
1037 "I<table membership> B<in>\n"
1038 "I<fit> ~ !~\n"
1039 "I<relational> E<lt> E<gt> E<lt>= E<gt>= == !=\n"
1040 "I<concatenation> (without special operator)\n"
1041 "I<addition/subtraction> + -\n"
1042 "I<multiplication/division> * / %\n"
1043 "I<unary> + -\n"
1044 "I<logical not> !\n"
1045 "I<exponentiation> ^\n"
1046 "I<increment/decrement> ++ -\\|- (both post and pre)\n"
1047 "I<field> $\n"
1048 msgstr ""
1049 "I<przypisanie> = += -= *= /= %= ^=\n"
1050 "I<warunkowe> ? :\n"
1051 "I<logiczne or> ||\n"
1052 "I<logiczne and> &&\n"
1053 "I<przynależność do tablicy> B<in>\n"
1054 "I<dopasowanie> ~ !~\n"
1055 "I<relacyjne> E<lt> E<gt> E<lt>= E<gt>= == !=\n"
1056 "I<konkatenacja> (bez specjalnego operatora)\n"
1057 "I<dodawanie/odejmowanie> + -\n"
1058 "I<mnożenie/dzielenie> * / %\n"
1059 "I<jednoargumentowe> + -\n"
1060 "I<logiczne not> !\n"
1061 "I<potęgowanie> ^\n"
1062 "I<inkrementacja/dekr.> ++ -\\|- (zarówno post jak i pre)\n"
1063 "I<pole> $\n"
1064
1065 #. type: Plain text
1066 #: mawk.1:559
1067 msgid ""
1068 "Assignment, conditional, and exponentiation operators associate from right to "
1069 "left; all others associate from left to right. Any expression can be enclosed "
1070 "in parentheses."
1071 msgstr ""
1072 "Przypisanie, operatory warunkowe i potęgowanie wiążą od prawej do lewej; "
1073 "pozostałe od lewej do prawej. Każde wyrażenie może być umieszczone w "
1074 "nawiasach."
1075
1076 #. type: SS
1077 #: mawk.1:559
1078 #, no-wrap
1079 msgid "6. Tables"
1080 msgstr "6. Tablice"
1081
1082 #. type: ds ae
1083 #: mawk.1:560
1084 #, no-wrap
1085 msgid "I<table>[I<word>]"
1086 msgstr "I<tablica>[I<wyraż>]"
1087
1088 #. type: Plain text
1089 #: mawk.1:572
1090 msgid ""
1091 "Awk supports one-dimensional arrays. Array elements are referenced as \\*(ae. "
1092 "I<Exp> is converted internally to string type, so, for example, A[1] and "
1093 "A[\"1\"] are the same element, and the actual index is \"1\". String-indexed "
1094 "arrays are called associative arrays (assigning arrays). Initially, the array "
1095 "is empty; the elements will exist the first time they are accessed. The "
1096 "expression I<exp>B< in>I< array> evaluates to 1 if \\*(ae exists, 0 otherwise."
1097 msgstr ""
1098 "Awk obsługuje tablice jednowymiarowe. Elementy tablic wskazuje się jako "
1099 "\\*(ae. I<Wyraż> jest przekształcane wewnętrznie na typ łańcuchowy, więc, na "
1100 "przykład, A[1] i A[\"1\"] są tym samym elementem, a faktycznym indeksem jest "
1101 "\"1\". Tablice indeksowane łańcuchami zwane są tablicami asocjacyjnymi "
1102 "(tablicami przyporządkowującymi). Pierwotnie tablica jest pusta; elementy "
1103 "zaistnieją przy pierwszym do nich odwołaniu. Wyrażenie I<wyraż>B< in>I< "
1104 "tablica> daje w wyniku 1 jeżeli istnieje \\*(ae, w przeciwnym razie 0."
1105
1106 #. type: Plain text
1107 #: mawk.1:576
1108 msgid ""
1109 "There is a form of the B<for> statement that loops through all the indices of "
1110 "an array."
1111 msgstr ""
1112 "Istnieje postać instrukcji B<for> wykonująca pętlę po wszystkich indeksach "
1113 "tablicy."
1114
1115 #. type: Plain text
1116 #: mawk.1:579
1117 #, no-wrap
1118 msgid " B<for> ( I<var>B< in >I<array >) I<statement>\n"
1119 msgstr " B<for> ( I<zmn>B< in >I<tablica >) I<instrukcja>\n"
1120
1121 #. type: Plain text
1122 #: mawk.1:592
1123 msgid ""
1124 "sets I<var> to each of the indices of I<array> and executes I<statement>. The "
1125 "order in which I<var> traverses the indices of I<array> is undefined."
1126 msgstr ""
1127 "ustawia I<zmn> na każdy z indeksów I<tablicy> i wykonuje I<instrukcję>. "
1128 "Kolejność, w jakiej I<zmn> przechodzi przez indeksy I<tablicy> nie jest "
1129 "zdefiniowana."
1130
1131 #. type: Plain text
1132 #: mawk.1:604
1133 msgid ""
1134 "The instruction B<delete> \\*(ae, causes the deletion of \\*(ae. B<mawk> "
1135 "supports the extension B<delete> I<array>, which deletes all elements of "
1136 "I<array>."
1137 msgstr ""
1138 "Instrukcja B<delete> \\*(ae, powoduje usunięcie \\*(ae. B<mawk> obsługuje "
1139 "rozszerzenie, B<delete> I<tablica>, które usuwa wszystkie elementy I<tablicy>."
1140
1141 #. type: Plain text
1142 #: mawk.1:613
1143 msgid ""
1144 "Multidimensional arrays are created artificially by concatenation using the "
1145 "built-in variable B<SUBSEP>. I<array>B<[>I<expr\\d1\\u>B<,>I<expr\\d2\\u>B<]> "
1146 "is equivalent to I<array>B<[>I<expr\\d1\\u >B<SUBSEP >I<expr\\d2\\u>B<]>. "
1147 "Checking for an element of a multidimensional array uses the index in "
1148 "parentheses, as in"
1149 msgstr ""
1150 "Tablice wielowymiarowe tworzone są sztucznie przez konkatenację z "
1151 "zastosowaniem wbudowanej zmiennej B<SUBSEP>. "
1152 "I<tablica>B<[>I<wyraż\\d1\\u>B<,>I<wyraż\\d2\\u>B<]> jest równoważnikiem "
1153 "I<tablica>B<[>I<wyraż\\d1\\u >B<SUBSEP >I<wyraż\\d2\\u>B<]>. Sprawdzanie "
1154 "elementu tablicy wielowymiarowej używa indeksu w nawiasach, jak w"
1155
1156 #. type: Plain text
1157 #: mawk.1:616
1158 #, no-wrap
1159 msgid "\tif ( (i, j) in A ) print A[i, j]\n"
1160 msgstr "\tif ( (i, j) in A ) print A[i, j]\n"
1161
1162 #. type: SS
1163 #: mawk.1:619
1164 #, no-wrap
1165 msgid "7. Built-in variables"
1166 msgstr "7. Zmienne wbudowane"
1167
1168 #. type: Plain text
1169 #: mawk.1:623
1170 msgid ""
1171 "The following variables are built-in variables. They are initialized before "
1172 "the program executes."
1173 msgstr ""
1174 "Poniższe zmienne są zmiennymi wbudowanymi. Są one inicjowane przed wykonaniem "
1175 "programu."
1176
1177 #. type: TP
1178 #: mawk.1:624
1179 #, no-wrap
1180 msgid "B<ARGC>"
1181 msgstr "B<ARGC>"
1182
1183 #. type: Plain text
1184 #: mawk.1:627
1185 msgid "number of command line arguments."
1186 msgstr "liczba argumentów wiersza poleceń."
1187
1188 #. type: TP
1189 #: mawk.1:627
1190 #, no-wrap
1191 msgid "B<ARGV>"
1192 msgstr "B<ARGV>"
1193
1194 #. type: Plain text
1195 #: mawk.1:630
1196 msgid "array of command line arguments, 0..ARGC-1."
1197 msgstr "tablica argumentów wiersza poleceń, 0..ARGC-1."
1198
1199 #. type: TP
1200 #: mawk.1:630
1201 #, no-wrap
1202 msgid "B<CONVFMT>"
1203 msgstr "B<CONVFMT>"
1204
1205 #. type: Plain text
1206 #: mawk.1:633
1207 msgid ""
1208 "format for internal conversion of numbers to strings, initially = \"%.6g\"."
1209 msgstr ""
1210 "format do wewnętrznej konwersji liczb na łańcuchy, początkowo = \"%.6g\"."
1211
1212 #. type: TP
1213 #: mawk.1:633
1214 #, no-wrap
1215 msgid "B<ENVIRON>"
1216 msgstr "B<ENVIRON>"
1217
1218 #. type: Plain text
1219 #: mawk.1:639
1220 msgid ""
1221 "array indexed by environment variables. The environment string, I<var=value> "
1222 "is stored as B<ENVIRON[>I<var>B<] => I<value>."
1223 msgstr ""
1224 "tablica zaindeksowana zmiennymi środowiska. Łańcuch środowiska, "
1225 "I<zmn=wartość> przechowywany jest jako B<ENVIRON[>I<zmn>B<] => I<wartość>."
1226
1227 #. type: TP
1228 #: mawk.1:639
1229 #, no-wrap
1230 msgid "B<FILENAME>"
1231 msgstr "B<FILENAME>"
1232
1233 #. type: Plain text
1234 #: mawk.1:642
1235 msgid "name of the current input file."
1236 msgstr "nazwa bieżącego pliku wejściowego."
1237
1238 #. type: TP
1239 #: mawk.1:642
1240 #, no-wrap
1241 msgid "B<FNR>"
1242 msgstr "B<FNR>"
1243
1244 #. type: Plain text
1245 #: mawk.1:646
1246 msgid "current record number in B<FILENAME>."
1247 msgstr "numer bieżącego rekordu w B<FILENAME>."
1248
1249 #. type: TP
1250 #: mawk.1:646
1251 #, no-wrap
1252 msgid "B<FS>"
1253 msgstr "B<FS>"
1254
1255 #. type: Plain text
1256 #: mawk.1:649
1257 msgid "splits records into fields as a regular expression."
1258 msgstr "dzieli rekordy na pola jako wyrażenie regularne."
1259
1260 #. type: TP
1261 #: mawk.1:649
1262 #, no-wrap
1263 msgid "B<NF>"
1264 msgstr "B<NF>"
1265
1266 #. type: Plain text
1267 #: mawk.1:652
1268 msgid "number of fields in the current record."
1269 msgstr "liczba pól bieżącego rekordu."
1270
1271 #. type: TP
1272 #: mawk.1:652
1273 #, no-wrap
1274 msgid "B<NR>"
1275 msgstr "B<NR>"
1276
1277 #. type: Plain text
1278 #: mawk.1:655
1279 msgid "current record number in the total input stream."
1280 msgstr "numer bieżącego rekordu w całkowitym strumieniu wejściowym."
1281
1282 #. type: TP
1283 #: mawk.1:655
1284 #, no-wrap
1285 msgid "B<OFMT>"
1286 msgstr "B<OFMT>"
1287
1288 #. type: Plain text
1289 #: mawk.1:658
1290 msgid "format for printing numbers; initially = \"%.6g\"."
1291 msgstr "format do wydruku liczb; początkowo = \"%.6g\"."
1292
1293 #. type: TP
1294 #: mawk.1:658
1295 #, no-wrap
1296 msgid "B<OFS>"
1297 msgstr "B<OFS>"
1298
1299 #. type: Plain text
1300 #: mawk.1:661
1301 msgid "inserted between fields in the output, initially = \" \"."
1302 msgstr "wstawiane pomiędzy polami w wyjściu, początkowo = \" \"."
1303
1304 #. type: TP
1305 #: mawk.1:661
1306 #, no-wrap
1307 msgid "B<ORS>"
1308 msgstr "B<ORS>"
1309
1310 #. type: Plain text
1311 #: mawk.1:664
1312 msgid "terminates each output record, initially = \"\\en\"."
1313 msgstr "kończy każdy z rekordów wyjściowych, początkowo = \"\\en\"."
1314
1315 #. type: TP
1316 #: mawk.1:664
1317 #, no-wrap
1318 msgid "B<RLENGTH>"
1319 msgstr "B<RLENGTH>"
1320
1321 #. type: Plain text
1322 #: mawk.1:668
1323 msgid "length set by the last call to the built-in function B<match()>."
1324 msgstr ""
1325 "długość ustawiona przez ostatnie wywołanie wbudowanej funkcji B<match()>."
1326
1327 #. type: TP
1328 #: mawk.1:668
1329 #, no-wrap
1330 msgid "B<RS>"
1331 msgstr "B<RS>"
1332
1333 #. type: Plain text
1334 #: mawk.1:671
1335 msgid "input record separator, initially = \"\\en\"."
1336 msgstr "separator rekordów wejściowych, początkowo = \"\\en\"."
1337
1338 #. type: TP
1339 #: mawk.1:671
1340 #, no-wrap
1341 msgid "B<RSTART>"
1342 msgstr "B<RSTART>"
1343
1344 #. type: Plain text
1345 #: mawk.1:675
1346 msgid "the index set by the last call to B<match()>."
1347 msgstr "indeks ustawiony przez ostatnie wywołanie B<match()>."
1348
1349 #. type: TP
1350 #: mawk.1:675
1351 #, no-wrap
1352 msgid "B<SUBSEP>"
1353 msgstr "B<SUBSEP>"
1354
1355 #. type: Plain text
1356 #: mawk.1:678
1357 msgid ""
1358 "used to build indexes of multidimensional arrays, initially = \"\\e034\"."
1359 msgstr ""
1360 "używany do budowy indeksów tablic wielowymiarowych, początkowo = \"\\e034\"."
1361
1362 #. type: SS
1363 #: mawk.1:680
1364 #, no-wrap
1365 msgid "8. Built-in functions"
1366 msgstr "8. Funkcje wbudowane"
1367
1368 #. type: Plain text
1369 #: mawk.1:682
1370 msgid "String functions"
1371 msgstr "Funkcje łańcuchowe"
1372
1373 #. type: TP
1374 #: mawk.1:683
1375 #, no-wrap
1376 msgid "B<gsub>(I<r>,I<s>,I<t>) B<gsub>(I<r>,I<s>)"
1377 msgstr "B<gsub>(I<r>,I<s>,I<t>) B<gsub>(I<r>,I<s>)"
1378
1379 #. type: Plain text
1380 #: mawk.1:703
1381 msgid ""
1382 "Global substitution, each match of the regular expression I<r> in the "
1383 "variable I<t> is replaced with the string I<s>. The number of substitutions "
1384 "performed is returned. If I<t> is omitted, B<$0> is used. The character B<&> "
1385 "in the replacement string I<s> is replaced with the matched substring of "
1386 "I<t>. B<\\e&> and B<\\e\\e> produce literal B<&> and B<\\e> in the "
1387 "replacement string, respectively."
1388 msgstr ""
1389 "Zastępowanie globalne (global substitution), każde dopasowanie wyrażenia "
1390 "regularnego I<r> w zmiennej I<t> zastępowane jest łańcuchem I<s>. Zwracana "
1391 "jest liczba wykonanych zastąpień. Jeżeli pominięto I<t>, to używane jest "
1392 "B<$0>. Znak B<&> w łańcuchu zastępującym I<s> zastępowany jest dopasowanym "
1393 "podłańcuchem łańcucha I<t>. B<\\e&> oraz B<\\e\\e> dają, odpowiednio, "
1394 "dosłowne B<&> i B<\\e> w łańcuchu zastępującym."
1395
1396 #. type: TP
1397 #: mawk.1:703
1398 #, no-wrap
1399 msgid "B<index>(I<s>,I<t>)"
1400 msgstr "B<index>(I<s>,I<t>)"
1401
1402 #. type: Plain text
1403 #: mawk.1:715
1404 msgid ""
1405 "If I<t> is a substring of I<s>, the position at which I<t> starts is "
1406 "returned, otherwise 0 is returned. The first character of I<s> is at position "
1407 "1."
1408 msgstr ""
1409 "Jeżeli I<t> jest podłańcuchem I<s>, to zwracana jest pozycja, na której "
1410 "rozpoczyna się I<t>, w przeciwnym razie zwracane jest 0. Pierwszy znak I<s> "
1411 "jest na pozycji 1."
1412
1413 #. type: TP
1414 #: mawk.1:715
1415 #, no-wrap
1416 msgid "B<length>(I<s>)"
1417 msgstr "B<length>(I<s>)"
1418
1419 #. type: Plain text
1420 #: mawk.1:719
1421 msgid "Returns the length of string or array I<s>."
1422 msgstr "Zwraca długość łańcucha I<s>."
1423
1424 #. type: TP
1425 #: mawk.1:719
1426 #, no-wrap
1427 msgid "B<match>(I<s>,I<r>)"
1428 msgstr "B<match>(I<s>,I<r>)"
1429
1430 #. type: Plain text
1431 #: mawk.1:735
1432 msgid ""
1433 "Returns the index of the first longest match of the regular expression I<r> "
1434 "in the string I<s>. Returns 0 if there is no match. As a side effect, "
1435 "B<RSTART> is set to the returned value. B<RLENGTH> is set to the length of "
1436 "the match, or -1 if there is no match. If the empty string is matched, "
1437 "B<RLENGTH> is set to 0, and 1 is returned if the match was at the beginning, "
1438 "and length(I<s>)+1 if the match was at the end of the string."
1439 msgstr ""
1440 "Zwraca indeks pierwszego najdłuższego dopasowania wyrażenia regularnego I<r> "
1441 "w łańcuchu I<s>. Zwraca 0 jeśli nie występuje dopasowanie. Jako skutek "
1442 "uboczny, następuje ustawienie B<RSTART> na zwracaną wartość. B<RLENGTH> "
1443 "ustawiane jest na długość dopasowania lub -1 jeśli brak dopasowania. Jeżeli "
1444 "dopasowano łańcuch pusty, to B<RLENGTH> ustawiane jest na 0, a zwracane jest "
1445 "1 jeśli dopasowanie było na początku, zaś length(I<s>)+1, gdy na końcu "
1446 "łańcucha."
1447
1448 #. type: TP
1449 #: mawk.1:735
1450 #, no-wrap
1451 msgid "B<split>(I<s>,I<A>,I<r>) B<split>(I<s>,I<A>)"
1452 msgstr "B<split>(I<s>,I<A>,I<r>) B<split>(I<s>,I<A>)"
1453
1454 #. type: Plain text
1455 #: mawk.1:748
1456 msgid ""
1457 "The string I<s> is split into fields by the regular expression I<r> and the "
1458 "fields are stored in the array I<A>. The number of fields is returned. See "
1459 "section 11 below for details. If I<r> is omitted, B<FS> is used."
1460 msgstr ""
1461 "Łańcuch I<s> rozbijany jest na pola przez wyrażenie regularne I<r> a pola "
1462 "wpisywane są do tablicy I<A>. Zwracana jest liczba pól. Szczegóły w sekcji "
1463 "11 poniżej. Jeżeli pominięto I<r>, używane jest B<FS>."
1464
1465 #. type: TP
1466 #: mawk.1:748
1467 #, no-wrap
1468 msgid "B<sprintf>(I<format>,I<expr-list>)"
1469 msgstr "B<sprintf>(I<format>,I<lista-wyraż>)"
1470
1471 #. type: Plain text
1472 #: mawk.1:755
1473 msgid ""
1474 "Returns a string constructed from I<expression-list> according to I<format>. "
1475 "See the description of printf() below."
1476 msgstr ""
1477 "Zwraca łańcuch utworzony z I<listy-wyrażeń> zgodnie z I<formatem>. Zobacz "
1478 "opis printf() poniżej."
1479
1480 #. type: TP
1481 #: mawk.1:755
1482 #, no-wrap
1483 msgid "B<sub>(I<r>,I<s>,I<t>) B<sub>(I<r>,I<s>)"
1484 msgstr "B<sub>(I<r>,I<s>,I<t>) B<sub>(I<r>,I<s>)"
1485
1486 #. type: Plain text
1487 #: mawk.1:759
1488 msgid ""
1489 "Single replacement. Same as gsub(), except that at most one replacement is "
1490 "performed."
1491 msgstr ""
1492 "Pojedyncze zastąpienie. Takie samo, jak gsub(), z wyjątkiem tego, że "
1493 "wykonywane jest co najwyżej jedno zastąpienie."
1494
1495 #. type: TP
1496 #: mawk.1:759
1497 #, no-wrap
1498 msgid "B<substr>(I<s>,I<i>,I<n>) B<substr>(I<s>,I<i>)"
1499 msgstr "B<substr>(I<s>,I<i>,I<n>) B<substr>(I<s>,I<i>)"
1500
1501 #. type: Plain text
1502 #: mawk.1:773
1503 msgid ""
1504 "Returns a substring of string I<s>, starting at index I<i>, of length I<n>. "
1505 "If I<n> is omitted, the tail of I<s>, starting at position I<i>, is returned."
1506 msgstr ""
1507 "Zwraca podłańcuch łańcucha I<s>, poczynając od indeksu I<i>, o długości "
1508 "I<n>. Jeśli pominięto I<n>, zwracana jest końcówka I<s>, poczynając od "
1509 "pozycji I<i>."
1510
1511 #. type: TP
1512 #: mawk.1:773
1513 #, no-wrap
1514 msgid "B<tolower>(I<s>)"
1515 msgstr "B<tolower>(I<s>)"
1516
1517 #. type: Plain text
1518 #: mawk.1:778
1519 msgid ""
1520 "Returns a copy of I<s> with all uppercase characters converted to lowercase."
1521 msgstr ""
1522 "Zwraca kopię I<s> ze wszystkimi dużymi literami przekształconymi na małe."
1523
1524 #. type: TP
1525 #: mawk.1:778
1526 #, no-wrap
1527 msgid "B<toupper>(I<s>)"
1528 msgstr "B<toupper>(I<s>)"
1529
1530 #. type: Plain text
1531 #: mawk.1:783
1532 msgid ""
1533 "Returns a copy of I<s> with all lowercase characters converted to uppercase."
1534 msgstr ""
1535 "Zwraca kopię I<s> ze wszystkimi małymi literami przekształconymi na duże."
1536
1537 #. type: Plain text
1538 #: mawk.1:786
1539 msgid "Arithmetic functions"
1540 msgstr "Funkcje arytmetyczne"
1541
1542 #. type: Plain text
1543 #: mawk.1:790
1544 #, no-wrap
1545 msgid "B<atan2>(I<y>,I<x>) Arctan of I<y>/I<x> between -PI and PI.\n"
1546 msgstr "B<atan2>(I<y>,I<x>) arcus tangens z I<y>/I<x> pomiędzy -PI i PI.\n"
1547
1548 #. type: Plain text
1549 #: mawk.1:792
1550 #, no-wrap
1551 msgid "B<cos>(I<x>) cosine function, I<x> in radians.\n"
1552 msgstr "B<cos>(I<x>) funkcja cosinus, I<x> w radianach.\n"
1553
1554 #. type: Plain text
1555 #: mawk.1:794
1556 #, no-wrap
1557 msgid "B<exp>(I<x>) exponential function.\n"
1558 msgstr "B<exp>(I<x>) funkcja wykładnicza.\n"
1559
1560 #. type: Plain text
1561 #: mawk.1:796
1562 #, no-wrap
1563 msgid "B<int>(I<x>) returns I<x> truncated towards zero.\n"
1564 msgstr "B<int>(I<x>) zwraca I<x> obcięte w stronę zera.\n"
1565
1566 #. type: Plain text
1567 #: mawk.1:798
1568 #, no-wrap
1569 msgid "B<log>(I<x>) natural logarithm.\n"
1570 msgstr "B<log>(I<x>) logarytm naturalny.\n"
1571
1572 #. type: Plain text
1573 #: mawk.1:800
1574 #, no-wrap
1575 msgid "B<rand>() returns a random number between zero and one.\n"
1576 msgstr "B<rand>() zwraca liczbę losową między zero a jeden.\n"
1577
1578 #. type: Plain text
1579 #: mawk.1:802
1580 #, no-wrap
1581 msgid "B<sin>(I<x>) sine function, I<x> in radians.\n"
1582 msgstr "B<sin>(I<x>) funkcja sinus, I<x> w radianach.\n"
1583
1584 #. type: TP
1585 #: mawk.1:802
1586 #, no-wrap
1587 msgid "B<sqrt>(I<x>) returns the square root of I<x>."
1588 msgstr "B<sqrt>(I<x>) zwraca pierwiastek kwadratowy z I<x>."
1589
1590 #. type: TP
1591 #: mawk.1:805
1592 #, no-wrap
1593 msgid "B<srand>(I<expr>) B<srand>()"
1594 msgstr "B<srand>(I<wyraż>) B<srand>()"
1595
1596 #. type: Plain text
1597 #: mawk.1:814
1598 msgid ""
1599 "Initializes a random number seed using a clock if I<expr> is omitted, and "
1600 "returns the value of the previous random seed. B<mawk> initializes the random "
1601 "number generator using a clock on startup, so there is no actual need to call "
1602 "srand(). Srand(I<expr>) is useful for repeating pseudorandom strings."
1603 msgstr ""
1604 "Inicjuje ziarenko generatora liczb losowych, używając zegara jeśli pominięto "
1605 "I<wyraż>, i zwraca wartość poprzedniego ziarenka losowego. B<mawk> inicjuje "
1606 "generator liczb losowych według zegara przy uruchomieniu, więc nie ma "
1607 "faktycznej potrzeby wywoływania srand(). Srand(I<wyraż>) przydaje się do "
1608 "powtarzania ciągów pseudolosowych."
1609
1610 #. type: SS
1611 #: mawk.1:816
1612 #, no-wrap
1613 msgid "9. Input and output"
1614 msgstr "9. Wejście i wyjście"
1615
1616 #. type: Plain text
1617 #: mawk.1:821
1618 msgid "There are two output statements: B<print> and B<printf>."
1619 msgstr "Istnieją dwie instrukcje wyjścia: B<print> i B<printf>."
1620
1621 #. type: TP
1622 #: mawk.1:822
1623 #, no-wrap
1624 msgid "B<print>"
1625 msgstr "B<print>"
1626
1627 #. type: Plain text
1628 #: mawk.1:826
1629 msgid "writes to standard output B<$0 ORS>."
1630 msgstr "zapisuje na standardowe wyjście B<$0 ORS>."
1631
1632 #. type: TP
1633 #: mawk.1:826
1634 #, no-wrap
1635 msgid "B<print> I<expr\\d1\\u>, I<expr\\d2\\u>, ..., I<expr\\dn\\u>"
1636 msgstr "B<print> I<wyraż\\d1\\u>, I<wyraż\\d2\\u>, ..., I<wyraż\\dn\\u>"
1637
1638 #. type: Plain text
1639 #: mawk.1:833
1640 msgid ""
1641 "writes to standard output I<expr\\d1\\u >B<OFS> I<expr\\d2\\u >B<OFS> ... "
1642 "I<expr\\dn\\u >B<ORS>. Numeric expressions are converted to strings according "
1643 "to B<OFMT>."
1644 msgstr ""
1645 "zapisuje na standardowe wyjście I<wyraż\\d1\\u >B<OFS >I<wyraż\\d2\\u "
1646 ">B<OFS> ... I<wyraż\\dn\\u >B<ORS>. Wyrażenia numeryczne są konwertowane na "
1647 "łańcuchy zgodnie z B<OFMT>."
1648
1649 #. type: TP
1650 #: mawk.1:833
1651 #, no-wrap
1652 msgid "B<printf >I<format>, I<expr-list>"
1653 msgstr "B<printf >I<format>, I<lista-wyraż>"
1654
1655 #. type: Plain text
1656 #: mawk.1:839
1657 msgid ""
1658 "duplicates the C printf library function, writing to standard output. The "
1659 "complete ANSI C format specifications are recognized, with the %c, %d, %e, "
1660 "%E, %f, %g, %G, %i, %o, %s, %u, %x, %X, and %% conversions, and the h and l "
1661 "conversion qualifiers."
1662 msgstr ""
1663 "powiela funkcję biblioteczną printf z C, pisząc na standardowe wyjście. "
1664 "Rozpoznawany jest komplet specyfikacji formatów z ANSI C z konwersjami %c, "
1665 "%d, %e, %E, %f, %g, %G, %i, %o, %s, %u, %x, %X i %%, oraz kwalifikatorami "
1666 "konwersji h i l."
1667
1668 #. type: Plain text
1669 #: mawk.1:868
1670 msgid ""
1671 "The argument list to print or printf may be optionally enclosed in "
1672 "parentheses. Print formats numbers using B<OFMT> or \"%d\" for exact "
1673 "integers. \"%c\" with a numeric argument prints the corresponding 8-bit "
1674 "character; with a string argument, it prints the first character of the "
1675 "string. The output of print and printf can be redirected to a file or command "
1676 "by appending B<E<gt>> I<file>, B<E<gt>E<gt>> I<file>, or B<|> I<command> to "
1677 "the end of the print statement. Redirection opens I<file> or I<command> only "
1678 "once; subsequent redirections are appended to an already open stream. By "
1679 "convention, B<mawk> concatenates the filename \"/dev/stderr\" to stderr, "
1680 "allowing print and printf output to be redirected to the standard error "
1681 "stream. B<mawk> also binds \"-\" and \"/dev/stdout\" to stdin and stdout, "
1682 "respectively, allowing these streams to be sent to functions."
1683 msgstr ""
1684 "Lista argumentów print lub printf może być opcjonalnie ujęta w nawiasy. "
1685 "Print formatuje liczby przy pomocy B<OFMT> lub \"%d\" dla dokładnie "
1686 "całkowitych. \"%c\" z argumentem numerycznym wypisuje odpowiedni znak 8-"
1687 "bitowy, z argumentem łańcuchowym wypisuje pierwszy znak łańcucha. Wyjście "
1688 "print i printf można przekierować do pliku lub polecenia dołączając B<E<gt>> "
1689 "I<plik>, B<E<gt>E<gt>> I<plik> lub B<|> I<polecenie> na końcu instrukcji "
1690 "drukowania. Przekierowanie otwiera I<plik> lub I<polecenie> tylko raz, "
1691 "kolejne przekierowania dołączane są do już otwartego strumienia. Zgodnie z "
1692 "konwencją, B<mawk> łączy nazwę pliku \"/dev/stderr\" z stderr, co pozwala na "
1693 "przekierowanie wyników print i printf na standardowe wyjście diagnostyczne. "
1694 "B<mawk> wiąże również, odpowiednio, \"-\" i \"/dev/stdout\" z stdin i stdout, "
1695 "co umożliwia przysyłanie tych strumieni do funkcji."
1696
1697 #. type: Plain text
1698 #: mawk.1:872
1699 msgid "The input function B<getline> has the following variants:"
1700 msgstr "Funkcja wejścia B<getline> ma następujące warianty:"
1701
1702 #. type: TP
1703 #: mawk.1:873
1704 #, no-wrap
1705 msgid "B<getline>"
1706 msgstr "B<getline>"
1707
1708 #. type: Plain text
1709 #: mawk.1:882
1710 msgid "reads into B<$0>, updates fields, B<NF>, B<NR> and B<FNR>."
1711 msgstr "czyta do B<$0>, aktualizuje pola, B<NF>, B<NR> i B<FNR>."
1712
1713 #. type: TP
1714 #: mawk.1:882
1715 #, no-wrap
1716 msgid "B<getline E<lt> >I<file>"
1717 msgstr "B<getline E<lt> >I<plik>"
1718
1719 #. type: Plain text
1720 #: mawk.1:888
1721 msgid "reads into B<$0> from I<file>, updates fields and B<NF>."
1722 msgstr "czyta do B<$0> z I<pliku>, aktualizuje pola i B<NF>."
1723
1724 #. type: TP
1725 #: mawk.1:888
1726 #, no-wrap
1727 msgid "B<getline >I<var>"
1728 msgstr "B<getline >I<zmn>"
1729
1730 #. type: Plain text
1731 #: mawk.1:896
1732 msgid "reads the next record into variable I<var>, updates B<NR> and B<FNR>."
1733 msgstr "czyta następny rekord do zmiennej I<zmn>, aktualizuje B<NR> i B<FNR>."
1734
1735 #. type: TP
1736 #: mawk.1:896
1737 #, no-wrap
1738 msgid "B<getline >I<var>B< E<lt> >I<file>"
1739 msgstr "B<getline >I<zmn>B< E<lt> >I<plik>"
1740
1741 #. type: Plain text
1742 #: mawk.1:902
1743 msgid "reads the next record of I<file> into variable I<var>."
1744 msgstr "czyta następny rekord I<pliku> do zmiennej I<zmn>."
1745
1746 #. type: TP
1747 #: mawk.1:902
1748 #, no-wrap
1749 msgid "I<command> | B<getline>"
1750 msgstr "I<polecenie> | B<getline>"
1751
1752 #. type: Plain text
1753 #: mawk.1:910
1754 msgid ""
1755 "pipes the record from I<command> to B<$0> and updates the fields and B<NF>."
1756 msgstr ""
1757 "przesyła potokiem rekord z I<polecenia> do B<$0> i aktualizuje pola i B<NF>."
1758
1759 #. type: TP
1760 #: mawk.1:910
1761 #, no-wrap
1762 msgid "I<command> | B<getline >I<var>"
1763 msgstr "I<polecenie> | B<getline >I<zmn>"
1764
1765 #. type: Plain text
1766 #: mawk.1:916
1767 msgid "pipes a record from I<command> to variable I<var>."
1768 msgstr "przesyła potokiem rekord z I<polecenia> do zmiennej I<zmn>."
1769
1770 #. type: Plain text
1771 #: mawk.1:920
1772 msgid "Getline returns 0 at the end of the file, -1 on error, 1 otherwise."
1773 msgstr ""
1774 "Getline zwraca 0 na końcu pliku, -1 przy błędzie, w pozostałych przypadkach 1."
1775
1776 #. type: Plain text
1777 #: mawk.1:922
1778 msgid "Commands at the end of pipes are executed by /bin/sh."
1779 msgstr "Polecenia na końcu potoków wykonywane są przez /bin/sh."
1780
1781 #. conserve file resources.
1782 #. type: Plain text
1783 #: mawk.1:934
1784 msgid ""
1785 "The B<close>(\\*(ex) function closes the file or pipe associated with "
1786 "I<expr>. Close returns 0 if I<expr> is an open file, an exit status if "
1787 "I<expr> is a pipe command, and -1 otherwise. Close is used to reread a file "
1788 "or command, ensure that the other end of an output pipe is terminated, or to "
1789 "preserve file resources."
1790 msgstr ""
1791 "Funkcja B<close>(\\*(ex) zamyka plik lub potok skojarzony z I<wyraż>. Close "
1792 "zwraca 0 jeżeli I<wyraż> jest otwartym plikiem, kod zakończenia jeśli "
1793 "I<wyraż> jest poleceniem potoku, a -1 w pozostałych przypadkach. Close "
1794 "stosowane jest do ponownego odczytu pliku lub polecenia, upewnienia się, że "
1795 "drugi koniec potoku wyjściowego jest zakończony lub do zachowania zasobów "
1796 "plikowych."
1797
1798 #. type: Plain text
1799 #: mawk.1:942
1800 msgid ""
1801 "The B<fflush>(\\*(ex) function flushes the output file or pipe associated "
1802 "with I<expr>. Fflush returns 0 if I<expr> is an open output stream, otherwise "
1803 "-1. Fflush without an argument flushes stdout. Fflush with an empty argument "
1804 "(\"\") flushes all open outputs."
1805 msgstr ""
1806 "Funkcja B<fflush>(\\*(ex) wymiata plik wyjściowy lub potok skojarzony z "
1807 "I<wyraż>. Fflush zwraca 0 jeśli I<wyraż> jest otwartym strumieniem "
1808 "wyjściowym, w przeciwnym razie -1. Fflush bez argumentu opróżnia stdout. "
1809 "Fflush z pustym argumentem (\"\") opróżnia wszystkie otwarte wyjścia."
1810
1811 #. type: Plain text
1812 #: mawk.1:956
1813 msgid ""
1814 "The function B<system>(I<expr>) uses /bin/sh to execute I<expr> and returns "
1815 "the exit status of command I<expr>. Changes to the B<ENVIRON> array are not "
1816 "propagated to commands executed by B<system> or pipelines."
1817 msgstr ""
1818 "Funkcja B<system>(I<wyraż>) wykorzystuje /bin/sh do wykonania I<wyraż> i "
1819 "zwraca kod zakończenia polecenia I<wyraż>. Zmiany tablicy B<ENVIRON> nie są "
1820 "przekazywane poleceniom wykonywanym przez B<system> lub potoki."
1821
1822 #. type: SS
1823 #: mawk.1:956
1824 #, no-wrap
1825 msgid "10. User-defined functions"
1826 msgstr "10. Funkcje definiowane przez użytkownika"
1827
1828 #. type: Plain text
1829 #: mawk.1:958
1830 msgid "A user-defined function has the following syntax:"
1831 msgstr "Funkcja definiowana przez użytkownika ma następującą składnię:"
1832
1833 #. type: Plain text
1834 #: mawk.1:961
1835 #, no-wrap
1836 msgid " B<function>I< name>( I<arguments> ) { I<statement> }\n"
1837 msgstr " B<function>I< nazwa>( I<argumenty> ) { I<instrukcje> }\n"
1838
1839 #. type: Plain text
1840 #: mawk.1:964
1841 msgid "The function body may contain a return statement."
1842 msgstr "Ciało funkcji może zawierać instrukcję zwrócenia wartości (return)"
1843
1844 #. type: Plain text
1845 #: mawk.1:967
1846 #, no-wrap
1847 msgid " B<return>I< optional-expr>\n"
1848 msgstr " B<return>I< opcjonalne-wyraż>\n"
1849
1850 #. type: Plain text
1851 #: mawk.1:982
1852 msgid ""
1853 "A return statement is not required. Function calls can be nested or "
1854 "recursive. Expressions are passed to functions by value, and arrays are "
1855 "passed by pointer. Additional arguments serve as local variables and are "
1856 "initialized to I<null>. For example, csplit(I<s>,I<A>) inserts each character "
1857 "of I<s> into the array I<A> and returns the length of I<s>."
1858 msgstr ""
1859 "Instrukcja return nie jest wymagana. Wywołania funkcji mogą być zagnieżdżane "
1860 "lub rekurencyjne. Wyrażenia przekazywane są funkcjom przez wartość a tablice "
1861 "przez wskazanie. Dodatkowe argumenty służą jako zmienne lokalne i są "
1862 "inicjowane na I<null>. Na przykład, csplit(I<s>,I<A>) wstawia każdy znak "
1863 "I<s> do tablicy I<A> i zwraca długość I<s>."
1864
1865 #. type: Plain text
1866 #: mawk.1:990
1867 #, no-wrap
1868 msgid ""
1869 "\tfunction csplit(s, A,\tn, i)\n"
1870 "\t{\n"
1871 "\t n = length(s)\n"
1872 "\t for( i = 1 ; i E<lt>= n ; i++ ) A[i] = substr(s, i, 1)\n"
1873 "\t return n\n"
1874 "\t}\n"
1875 msgstr ""
1876 "\tfunction csplit(s, A,\tn, i)\n"
1877 "\t{\n"
1878 "\t n = length(s)\n"
1879 "\t for( i = 1 ; i E<lt>= n ; i++ ) A[i] = substr(s, i, 1)\n"
1880 "\t return n\n"
1881 "\t}\n"
1882
1883 #. type: Plain text
1884 #: mawk.1:998
1885 msgid ""
1886 "The extra spaces between passed parameters and local variables are a matter "
1887 "of convention. Functions can be referenced before they are defined, but the "
1888 "function name and the '(' parentheses leading the argument list must touch to "
1889 "avoid confusion with concatenation."
1890 msgstr ""
1891 "Wstawienie dodatkowych odstępów pomiędzy przekazywanymi parametrami a "
1892 "zmiennymi lokalnymi wynika z konwencji. Do funkcji można odwoływać się przed "
1893 "ich zdefiniowaniem, ale nazwa funkcji i nawias '(' rozpoczynający listę "
1894 "argumentów muszą się stykać, by uniknąć pomyłki z konkatenacją."
1895
1896 #. type: SS
1897 #: mawk.1:998
1898 #, no-wrap
1899 msgid "11. Splitting strings, records, and files"
1900 msgstr "11. Podział łańcuchów, rekordów i plików"
1901
1902 #. type: Plain text
1903 #: mawk.1:1006
1904 msgid ""
1905 "Awk programs use the same algorithm to split strings into arrays using "
1906 "split() and records into fields using B<FS>. B<mawk> uses essentially the "
1907 "same algorithm to split files into records using B<RS>."
1908 msgstr ""
1909 "Programy awk używają tego samego algorytmu do rozbicia łańcuchów na tablice "
1910 "przy pomocy split() i rekordów na pola według B<FS>. B<mawk> stosuje "
1911 "zasadniczo ten sam algorytm przy podziale plików na rekordy według B<RS>."
1912
1913 #. type: Plain text
1914 #: mawk.1:1009
1915 msgid "B<Split>(I<wyraż>,I<A,>sepI<)> działa następująco:"
1916 msgstr "B<Split>(I<wyraż>,I<A,>sepI<)> działa następująco:"
1917
1918 #. type: TP
1919 #: mawk.1:1010
1920 #, no-wrap
1921 msgid "(1)"
1922 msgstr "(1)"
1923
1924 #. type: Plain text
1925 #: mawk.1:1019
1926 msgid ""
1927 "If I<sep> is omitted, it is replaced by B<FS>. I<Sep> can be an expression or "
1928 "a regular expression. If it is a non-string expression, it is converted to a "
1929 "string."
1930 msgstr ""
1931 "Jeżeli pominięto I<sep>, to jest on zastępowany przez B<FS>. I<Sep> może być "
1932 "wyrażeniem lub wyrażeniem regularnym. Jeżeli jest wyrażeniem typu nie-"
1933 "łańcuchowego, to jest przekształcane na łańcuch."
1934
1935 #. type: TP
1936 #: mawk.1:1019
1937 #, no-wrap
1938 msgid "(2)"
1939 msgstr "(2)"
1940
1941 #. type: Plain text
1942 #: mawk.1:1037
1943 msgid ""
1944 "If I<sep> = \" \" (single space), then E<lt>SPACE<gt> is trimmed from the "
1945 "beginning and end of I<expr>, and I<sep> becomes E<lt>SPACEME<gt>. B<mawk> "
1946 "defines E<lt>SPACE<gt> as the regular expression /[\\ \\et\\en]+/. Otherwise, "
1947 "I<sep> is treated as a regular expression, except that metacharacters for a "
1948 "string of length 1 are ignored, e.g., split(x, A, \"*\") and split(x, A, /"
1949 "\\e*/) are the same."
1950 msgstr ""
1951 "Jeśli I<sep> = \" \" (pojedyncza spacja), to E<lt>ODSTĘPE<gt> jest obcinana z "
1952 "początku i końca I<wyraż>, a I<sep> staje się E<lt>ODSTĘPEME<gt>. B<mawk> "
1953 "definiuje E<lt>ODSTĘPE<gt> jako wyrażenie regularne /[\\ \\et\\en]+/. W "
1954 "przeciwnym wypadku I<sep> traktowany jest jako wyrażenie regularne, z "
1955 "wyjątkiem tego, że metaznaki dla łańcucha o długości 1 są ignorowane, np. "
1956 "split(x, A, \"*\") i split(x, A, /\\e*/) są tym samym."
1957
1958 #. type: TP
1959 #: mawk.1:1037
1960 #, no-wrap
1961 msgid "(3)"
1962 msgstr "(3)"
1963
1964 #. type: Plain text
1965 #: mawk.1:1059
1966 msgid ""
1967 "If \\*(ex is not a string, it is converted to a string. If \\*(ex is the "
1968 "empty string \"\", then split() returns 0 and I<A> is set to empty. "
1969 "Otherwise, all non-overlapping, non-empty, and longest matches of I<sep> in "
1970 "I<expr> split I<expr> into fields, which are then placed in I<A>. The fields "
1971 "are placed in A[1], A[2], ..., A[n] and split() returns n, the number of "
1972 "fields, equal to the number of matches plus one. Data placed in I<A> that "
1973 "appears to be numeric is given a numeric-string type."
1974 msgstr ""
1975 "Jeżeli \\*(ex nie jest łańcuchem, jest przekształcane na łańcuch. Jeżeli "
1976 "\\*(ex jest wówczas łańcuchem pustym \"\", to split() zwraca 0 a I<A> jest "
1977 "ustawiane jako puste. W przeciwnym razie, wszystkie nienakładające się, "
1978 "niepuste i najdłuższe dopasowania I<sep> w I<wyraż>, dzielą I<wyraż> na pola, "
1979 "które wpisywane są do I<A>. Pola są umieszczane w A[1], A[2], ..., A[n] a "
1980 "split() zwraca n, liczbę pól, równą liczbie dopasowań plus jeden. Dane "
1981 "umieszczone w I<A> wyglądające na numeryczne otrzymują typ liczbowo-"
1982 "łańcuchowy."
1983
1984 #. type: Plain text
1985 #: mawk.1:1073
1986 msgid ""
1987 "Splitting records into fields works the same way, except that the parts are "
1988 "written into B<$1>, B<$2>,..., B<$NF>. If B<$0> is empty, B<NF> is set to 0 "
1989 "and all B<$i> are set to \"\"."
1990 msgstr ""
1991 "Podział rekordów na pola działa tak samo, z wyjątkiem tego, iż części "
1992 "wpisywane są do B<$1>, B<$2>,..., B<$NF>. Jeżeli B<$0> jest puste, B<NF> "
1993 "jest ustawiane na 0 a wszystkie B<$i> na \"\"."
1994
1995 #. type: Plain text
1996 #: mawk.1:1080
1997 msgid ""
1998 "B<mawk> splits files into records using the same algorithm, but with the "
1999 "minor difference that B<RS> is actually a terminator string, not a separator. "
2000 "(B<ORS> is also actually a terminator string.)"
2001 msgstr ""
2002 "B<mawk> dzieli pliki na rekordy przy pomocy tego samego algorytmu, ale z tą "
2003 "niewielką różnicą, iż B<RS> jest faktycznie ciągiem kończącym a nie "
2004 "separatorem. (B<ORS> też jest faktycznie ciągiem kończącym)."
2005
2006 #. type: Plain text
2007 #: mawk.1:1099
2008 msgid ""
2009 "For example, if B<FS> = \":+\" and B<$0> = \"a::b:\" , then B<NF> = 3 and "
2010 "B<$1> = \"a\", B<$2> = \"b\" and B<$3> = \"\", but if the content of the "
2011 "input file is \"a::b:\" and B<RS> = \":+\", then there are two records \"a\" "
2012 "and \"b\"."
2013 msgstr ""
2014 "Np., jeżeli B<FS> = \":+\" a B<$0> = \"a::b:\" , to B<NF> = 3 a B<$1> = "
2015 "\"a\", B<$2> = \"b\" i B<$3> = \"\", ale jeżeli zawartością pliku wejściowego "
2016 "jest \"a::b:\", zaś B<RS> = \":+\", to istnieją dwa rekordy \"a\" i \"b\"."
2017
2018 #. type: Plain text
2019 #: mawk.1:1103
2020 msgid "B<RS> = \" \" has no special meaning."
2021 msgstr "B<RS> = \" \" nie ma specjalnego znaczenia."
2022
2023 #. type: Plain text
2024 #: mawk.1:1115
2025 msgid ""
2026 "If B<FS> = \"\", then B<mawk> splits the record into individual characters, "
2027 "and similarly split(I<s>,I<A>,\"\") places the individual characters of I<s> "
2028 "into I<A>."
2029 msgstr ""
2030 "Jeżeli B<FS> = \"\", to B<mawk> rozbija rekord na pojedyncze znaki, i, "
2031 "podobnie split(I<s>,I<A>,\"\") umieszcza poszczególne znaki I<s> w I<A>."
2032
2033 #. type: SS
2034 #: mawk.1:1115
2035 #, no-wrap
2036 msgid "12. Multi-line records"
2037 msgstr "12. Rekordy wielowierszowe"
2038
2039 #. type: Plain text
2040 #: mawk.1:1129
2041 msgid ""
2042 "Because B<mawk> interprets B<RS> as a regular expression, handling multi-line "
2043 "records is easy. Setting B<RS> = \"\\en\\en+\", causes records to be "
2044 "separated by at least one blank line. If B<FS> = \" \" (the default), then "
2045 "single newlines, according to the rules E<lt>SPACE<gt> above, become spaces, "
2046 "and single newlines are field separators."
2047 msgstr ""
2048 "Ponieważ B<mawk> interpretuje B<RS> jako wyrażenie regularne, obsługa "
2049 "rekordów wielowierszowych jest łatwa. Ustawienie B<RS> = \"\\en\\en+\", "
2050 "powoduje, że rekordy rozdzielane są co najmniej jednym pustym wierszem. "
2051 "Jeżeli B<FS> = \" \" (domyślnie), to pojedyncze znaki nowej linii, według "
2052 "zasad E<lt>ODSTĘPUE<gt> powyżej, stają się odstępami a pojedyncze znaki nowej "
2053 "linii są separatorami pól."
2054
2055 #. type: Plain text
2056 #: mawk.1:1141
2057 msgid ""
2058 "For example, if the file has \"a\\ b\\enc\\en\\en\", B<RS> = \"\\en\\en+\" "
2059 "and B<FS> = \"\\ \", then we have one record \"a\\ b\\enc\" with three fields "
2060 "\"a\", \"b\" and \"c\". Changing B<FS> = \"\\en\", gives us two fields \"a "
2061 "b\" and \"c\"; changing B<FS> = \"\", gives us one field identical to the "
2062 "record."
2063 msgstr ""
2064 "Na przykład, jeśli w pliku jest \"a\\ b\\enc\\en\\en\", B<RS> = \"\\en\\en+\" "
2065 "a B<FS> = \"\\ \", to mamy jeden rekord \"a\\ b\\enc\" z trzema polami \"a\", "
2066 "\"b\" i \"c\". Zmiana B<FS> = \"\\en\", daje dwa pola \"a b\" i \"c\"; "
2067 "zmieniając B<FS> = \"\", otrzymujemy jedno pole identyczne jak rekord."
2068
2069 #. type: Plain text
2070 #: mawk.1:1161
2071 msgid ""
2072 "Treating lines with spaces or tabs as blank can be achieved by setting B<RS> "
2073 "= \"\\en([\\ \\et]*\\en)+\". For compatibility with other awk "
2074 "implementations, setting B<RS> = \"\" has the same results as removing blank "
2075 "lines from the beginning and end of the file and specifying records as if "
2076 "B<RS> = \"\\en\\en+\". Posix requires that \"\\en\" always separate records "
2077 "when B<RS> = \"\" regardless of the value of B<FS>. B<mawk> does not support "
2078 "this convention, because defining \"\\en\" as E<lt>SPACE<gt> makes it "
2079 "redundant."
2080 msgstr ""
2081 "Traktowanie wierszy ze spacjami lub tabulacjami jako pustych można uzyskać "
2082 "ustawiając B<RS> = \"\\en([\\ \\et]*\\en)+\". W celu utrzymania zgodności z "
2083 "innymi implementacjami awk, ustawienie B<RS> = \"\" daje te same wyniki, co "
2084 "usunięcie pustych wierszy z początku i końca pliku i określanie rekordów tak, "
2085 "jakby B<RS> = \"\\en\\en+\". Posix wymaga, by \"\\en\" zawsze separowało "
2086 "rekordy gdy B<RS> = \"\" niezależnie od wartości B<FS>. B<mawk> nie "
2087 "obsługuje tej konwencji, gdyż zdefiniowanie \"\\en\" jako E<lt>ODSTĘPUE<gt> "
2088 "czyni ją zbędną."
2089
2090 #. type: Plain text
2091 #: mawk.1:1169
2092 msgid ""
2093 "In most cases, when changing B<RS> to handle multi-line records, you also use "
2094 "the \"\\en\\en\" changed B<ORS> to preserve the spaces between records in the "
2095 "output."
2096 msgstr ""
2097 "W większości przypadków zmieniając B<RS> w celu obsługi rekordów "
2098 "wielowierszowych, stosuje się też zmienione na \"\\en\\en\" B<ORS>, aby na "
2099 "wyjściu zachować odstępy między rekordami."
2100
2101 #. type: SS
2102 #: mawk.1:1169
2103 #, no-wrap
2104 msgid "13. Program execution"
2105 msgstr "13. Wykonywanie programu"
2106
2107 #. type: Plain text
2108 #: mawk.1:1182
2109 msgid ""
2110 "Ta sekcja opisuje kolejność wykonywania programu. Po pierwsze, B<ARGC> "
2111 "ustawiane jest na całkowitą liczbę argumentów wiersza poleceń przekazanych do "
2112 "fazy wykonania programu. B<ARGV[0]> ustawiane jest na nazwę interpretera AWK "
2113 "a B<ARGV[1]> ... B<ARGV[ARGC-1]> przechowuje pozostałe argumenty wiersza "
2114 "poleceń z wyjątkiem opcji i źródła programu. Na przykład, dla"
2115 msgstr ""
2116 "Ta sekcja opisuje kolejność wykonywania programu. Po pierwsze, B<ARGC> "
2117 "ustawiane jest na całkowitą liczbę argumentów wiersza poleceń przekazanych do "
2118 "fazy wykonania programu. B<ARGV[0]> ustawiane jest na nazwę interpretera AWK "
2119 "a B<ARGV[1]> ... B<ARGV[ARGC-1]> przechowuje pozostałe argumenty wiersza "
2120 "poleceń z wyjątkiem opcji i źródła programu. Na przykład, dla"
2121
2122 #. type: Plain text
2123 #: mawk.1:1185
2124 #, no-wrap
2125 msgid "\tmawk -f prog v=1 A t=hello B\n"
2126 msgstr "\tmawk -f prog v=1 A t=hello B\n"
2127
2128 #. type: Plain text
2129 #: mawk.1:1199
2130 msgid ""
2131 "B<ARGC> = 5 oraz B<ARGV[0]> = \"mawk\", B<ARGV[1]> = \"v=1\", B<ARGV[2]> = "
2132 "\"A\", B<ARGV[3]> = \"t=hello\" i B<ARGV[4]> = \"B\"."
2133 msgstr ""
2134 "B<ARGC> = 5 oraz B<ARGV[0]> = \"mawk\", B<ARGV[1]> = \"v=1\", B<ARGV[2]> = "
2135 "\"A\", B<ARGV[3]> = \"t=hello\" i B<ARGV[4]> = \"B\"."
2136
2137 #. type: Plain text
2138 #: mawk.1:1213
2139 msgid ""
2140 "Then, each B<BEGIN> block is executed in turn. If the program consists solely "
2141 "of B<BEGIN> blocks, execution ends there; otherwise, the input stream is "
2142 "opened and execution continues. If B<ARGC> equals 1, the input stream is set "
2143 "to stdin; otherwise, the command line arguments B<ARGV[1]> ... "
2144 "B<ARGV[ARGC-1]> are checked for a file argument."
2145 msgstr ""
2146 "Następnie wykonywany jest kolejno każdy z bloków B<BEGIN>. Jeżeli program "
2147 "składa się wyłącznie z bloków B<BEGIN>, to na tym wykonywanie się kończy, w "
2148 "przeciwnym razie otwierany jest strumień wejściowy i wykonywanie jest "
2149 "kontynuowane. Jeżeli B<ARGC> równa się 1, strumień wejściowy ustawiany jest "
2150 "na stdin, w przypadku przeciwnym w poszukiwaniu argumentu plikowego "
2151 "sprawdzane są argumenty wiersza poleceń B<ARGV[1]> ... B<ARGV[ARGC-1]>."
2152
2153 #. type: Plain text
2154 #: mawk.1:1236
2155 msgid ""
2156 "Command-line arguments are divided into three groups: file arguments, "
2157 "assignment arguments, and empty strings \"\". An assignment has the form "
2158 "I<var>=I<string>. When B<ARGV[i]> is evaluated as a possible file argument, "
2159 "if it is empty, it is ignored; if it is an assignment argument, the value of "
2160 "the variable I<var> is assigned and B<i> is changed to the next argument; "
2161 "otherwise, B<ARGV[i]> is opened as input. If the opening fails, program "
2162 "execution exits with exit status 2. If none of the command-line arguments are "
2163 "file arguments, then the input comes from stdin. Getline in the B<BEGIN> "
2164 "action opens the input. \"-\" as a file argument denotes stdin."
2165 msgstr ""
2166 "Argumenty wiersza poleceń dzielą się na trzy grupy: argumenty plikowe, "
2167 "argumenty przypisań i łańcuchy puste \"\". Przypisanie ma postać "
2168 "I<zmn>=I<łańcuch>. Podczas sprawdzania B<ARGV[i]> jako możliwego argumentu "
2169 "plikowego, jeśli jest ono puste to jest pomijane; jeśli jest argumentem typu "
2170 "przypisania, odbywa się przypisanie wartości zmiennej I<zmn> a B<i> zmienia "
2171 "się na następny argument; w pozostałych przypadkach B<ARGV[i]> jest otwierane "
2172 "jako wejście. Jeżeli otwarcie nie powiedzie się, wykonywanie programu jest "
2173 "kończone z kodem 2. Jeżeli żaden z argumentów wiersza poleceń nie jest "
2174 "argumentem plikowym, to wejście pochodzi z stdin. Getline w akcji B<BEGIN> "
2175 "otwiera wejście. \"-\" jako argument plikowy oznacza stdin."
2176
2177 #. type: Plain text
2178 #: mawk.1:1257
2179 msgid ""
2180 "After opening the input stream, each input record is checked against each of "
2181 "the I<patterns>, and if a match is found, the I<action> associated with that "
2182 "pattern is executed. A pattern in the form of an expression matches if its "
2183 "Boolean value is true (see the end of section 2). The pattern B<BEGIN> is "
2184 "matched before reading the input, and the pattern B<END> is matched after "
2185 "reading the entire input. The range pattern, I<expr1>B<,>I<expr2>, matches "
2186 "every record between the record matching I<expr1> and the record matching "
2187 "I<expr2>, inclusive."
2188 msgstr ""
2189 "Po otwarciu strumienia wejściowego każdy z rekordów wejścia sprawdzany jest z "
2190 "każdym ze I<wzorców>, a jeśli pasuje, to wykonywana jest I<akcja> skojarzona "
2191 "z danym wzorcem. Wzorzec w postaci wyrażenia pasuje jeśli jego wartością "
2192 "logiczną jest prawda (zobacz koniec sekcji 2). Wzorzec B<BEGIN> zestawiany "
2193 "jest przed rozpoczęciem odczytu wejścia, zaś wzorzec B<END> po przeczytaniu "
2194 "całego wejścia. Wzorzec zakresu, I<wyraż1>B<,>I<wyraż2>, dopasowuje każdy "
2195 "rekord pomiędzy rekordem pasującym do I<wyraż1> a rekordem pasującym do "
2196 "I<wyraż2> łącznie z nimi."
2197
2198 #. type: Plain text
2199 #: mawk.1:1267
2200 msgid ""
2201 "When end-of-file is encountered in the input stream, the remaining command-"
2202 "line arguments are checked for the next file argument. If one exists, it is "
2203 "opened; otherwise, it is assumed that I<pattern> B<END> was matched and all "
2204 "I<actions> B<END> are executed."
2205 msgstr ""
2206 "Po napotkaniu końca pliku w strumieniu wejściowym, sprawdzane są pozostałe "
2207 "argumenty wiersza poleceń w poszukiwaniu kolejnego argumentu plikowego. "
2208 "Jeśli taki istnieje, to jest otwierany, w przeciwnym wypadku przyjmuje się, "
2209 "że został dopasowany I<wzorzec> B<END> i wykonywane są wszystkie I<akcje> "
2210 "B<END>."
2211
2212 #. type: Plain text
2213 #: mawk.1:1284
2214 msgid ""
2215 "In the example considered, the assignment v=1 takes place after I<action> "
2216 "B<BEGIN> is executed, and the data stored in v is assigned a numeric-string "
2217 "type. Input is then read from file A. After the end of file A, variable t is "
2218 "set to the string \"hello\" and B is opened as input. After the end of file B "
2219 "is reached, the I<action> patterns B<END> are executed."
2220 msgstr ""
2221 "W rozważanym przykładzie, przypisanie v=1 ma miejsce po wykonaniu I<akcji> "
2222 "B<BEGIN>, a dana umieszczona w v otrzymuje typ liczbowo-łańcuchowy. "
2223 "Następnie z pliku A jest czytane wejście. Po końcu pliku A, zmienna t jest "
2224 "ustawiana na łańcuch \"hello\", a B jest otwierany jako wejście. Po "
2225 "osiągnięciu końca pliku B są wykonywane I<akcje> wzorca B<END>."
2226
2227 #. type: Plain text
2228 #: mawk.1:1289
2229 msgid ""
2230 "The program flow at level I<pattern> I<{action}> can be changed using the "
2231 "instructions"
2232 msgstr ""
2233 "Przebieg programu na poziomie I<wzorzec> I<{akcja}> można zmienić przy pomocy "
2234 "instrukcji"
2235
2236 #. type: Plain text
2237 #: mawk.1:1293
2238 #, no-wrap
2239 msgid ""
2240 " B<next\n"
2241 " exit >I<optional-expr>.\n"
2242 msgstr ""
2243 " B<next\n"
2244 " exit >I<wyraż-opcjonalne>.\n"
2245
2246 #. type: Plain text
2247 #: mawk.1:1314
2248 msgid ""
2249 "The B<next> instruction causes the next input record to be read and patterns "
2250 "to be checked again, starting from the first I<pattern {action}> pair in the "
2251 "program. The B<exit> instruction causes the immediate execution of action "
2252 "B<END> or program termination if there are no such actions or if B<exit> "
2253 "occurs in action B<END>. The I<optional-expr> sets the program exit status "
2254 "unless it is overridden by a subsequent B<exit> or a subsequently disclosed "
2255 "error."
2256 msgstr ""
2257 "Instrukcja B<next> powoduje, że odczyt następnego rekordu wejściowego i "
2258 "ponowne sprawdzanie wzorców, od pierwszej pary I<wzorzec {akcja}> programu. "
2259 "Polecenie B<exit> powoduje natychmiastowe wykonanie akcji B<END> lub "
2260 "zakończenie programu, jeśli nie ma takich akcji lub jeżeli B<exit> wystąpiło "
2261 "w akcji B<END>. I<wyraż-opcjonalne> ustawia wartość kodu zakończenia "
2262 "programu, chyba że zostanie ona przesłonięta przez późniejszy B<exit> lub "
2263 "ujawniony potem błąd."
2264
2265 #. type: SH
2266 #: mawk.1:1314
2267 #, no-wrap
2268 msgid "EXAMPLES"
2269 msgstr "PRZYKŁADY"
2270
2271 #. type: Plain text
2272 #: mawk.1:1317
2273 #, no-wrap
2274 msgid "1. cat emulation.\n"
2275 msgstr "1. emulacja cat.\n"
2276
2277 #. type: Plain text
2278 #: mawk.1:1319
2279 #, no-wrap
2280 msgid " { print }\n"
2281 msgstr " { print }\n"
2282
2283 #. type: Plain text
2284 #: mawk.1:1321
2285 #, no-wrap
2286 msgid "2. wc emulation.\n"
2287 msgstr "2. emulacja wc.\n"
2288
2289 #. type: Plain text
2290 #: mawk.1:1325
2291 #, no-wrap
2292 msgid ""
2293 " { chars += length($0) + 1 # adds one for \\en\n"
2294 " words += NF\n"
2295 " }\n"
2296 msgstr ""
2297 " { chars += length($0) + 1 # dodaje jeden dla \\en\n"
2298 " words += NF\n"
2299 " }\n"
2300
2301 #. type: Plain text
2302 #: mawk.1:1327
2303 #, no-wrap
2304 msgid " END{ print NR, words, chars }\n"
2305 msgstr " END{ print NR, words, chars }\n"
2306
2307 #. type: Plain text
2308 #: mawk.1:1329
2309 #, no-wrap
2310 msgid "3. counting non-repeating \"actual words\".\n"
2311 msgstr "3. zliczanie niepowtarzających się \"faktycznych słów\".\n"
2312
2313 #. type: Plain text
2314 #: mawk.1:1331
2315 #, no-wrap
2316 msgid " BEGIN { FS = \"[^A-Za-z]+\" }\n"
2317 msgstr " BEGIN { FS = \"[^A-Za-z]+\" }\n"
2318
2319 #. type: Plain text
2320 #: mawk.1:1333
2321 #, no-wrap
2322 msgid " { for(i = 1 ; i E<lt>= NF ; i++) word[$i] = \"\" }\n"
2323 msgstr " { for(i = 1 ; i E<lt>= NF ; i++) word[$i] = \"\" }\n"
2324
2325 #. type: Plain text
2326 #: mawk.1:1338
2327 #, no-wrap
2328 msgid ""
2329 " END { delete word[\"\"]\n"
2330 " for ( i in word ) cnt++\n"
2331 " print cnt\n"
2332 " }\n"
2333 msgstr ""
2334 " END { delete word[\"\"]\n"
2335 " for ( i in word ) cnt++\n"
2336 " print cnt\n"
2337 " }\n"
2338
2339 #. type: Plain text
2340 #: mawk.1:1342
2341 msgid "4. summing the second field of each record based on the first field."
2342 msgstr "4. sumowanie drugiego pola każdego rekordu w oparciu o pierwsze pole."
2343
2344 #. type: Plain text
2345 #: mawk.1:1346
2346 #, no-wrap
2347 msgid ""
2348 " $1 ~ /credit\\||\\|gain/ { sum += $2 }\n"
2349 " $1 ~ /debit\\||\\|loss/ { sum -= $2 }\n"
2350 msgstr ""
2351 " $1 ~ /credit\\||\\|gain/ { sum += $2 }\n"
2352 " $1 ~ /debit\\||\\|loss/ { sum -= $2 }\n"
2353
2354 #. type: Plain text
2355 #: mawk.1:1348
2356 #, no-wrap
2357 msgid " END { print sum }\n"
2358 msgstr " END { print sum }\n"
2359
2360 #. type: Plain text
2361 #: mawk.1:1350
2362 #, no-wrap
2363 msgid "5. file sorting, string comparison\n"
2364 msgstr "5. sortowanie pliku, porównywanie łańcuchowe\n"
2365
2366 #. type: Plain text
2367 #: mawk.1:1354
2368 #, no-wrap
2369 msgid ""
2370 " { line[NR] = $0 \"\" } # make sure of comparison type\n"
2371 " # in case some lines look numeric\n"
2372 msgstr ""
2373 " { line[NR] = $0 \"\" } # wymusza typ porównywania: gdyby\n"
2374 " # jakieś wiersze wyglądały\n"
2375 " # na numeryczne\n"
2376
2377 #. type: Plain text
2378 #: mawk.1:1358
2379 #, no-wrap
2380 msgid ""
2381 " END { isort(line, NR)\n"
2382 " for(i = 1 ; i E<lt>= NR ; i++) print line[i]\n"
2383 " }\n"
2384 msgstr ""
2385 " END { isort(line, NR)\n"
2386 " for(i = 1 ; i E<lt>= NR ; i++) print line[i]\n"
2387 " }\n"
2388
2389 #. type: Plain text
2390 #: mawk.1:1371
2391 #, no-wrap
2392 msgid ""
2393 " #sorting A[1..n] insertion method\n"
2394 " function isort( A, n, i, j, hold)\n"
2395 " {\n"
2396 " for( i = 2 ; i E<lt>= n ; i++)\n"
2397 " {\n"
2398 " hold = A[j = i]\n"
2399 " while ( A[j-1] E<gt> hold )\n"
2400 " { j-\\|- ; A[j+1] = A[j] }\n"
2401 " A[j] = hold\n"
2402 " }\n"
2403 " # if necessary, a guard A[0] will be created = \"\"\n"
2404 " }\n"
2405 msgstr ""
2406 " #sortowanie A[1..n] metodą wstawiania\n"
2407 " function isort( A, n, i, j, hold)\n"
2408 " {\n"
2409 " for( i = 2 ; i E<lt>= n ; i++)\n"
2410 " {\n"
2411 " hold = A[j = i]\n"
2412 " while ( A[j-1] E<gt> hold )\n"
2413 " { j-\\|- ; A[j+1] = A[j] }\n"
2414 " A[j] = hold\n"
2415 " }\n"
2416 " # w razie potrzeby będzie utworzony wartownik A[0] = \"\"\n"
2417 " }\n"
2418
2419 #. type: SH
2420 #: mawk.1:1373
2421 #, no-wrap
2422 msgid "COMPATIBILITY ISSUES"
2423 msgstr "KWESTIE ZGODNOŚCI"
2424
2425 #. type: Plain text
2426 #: mawk.1:1377
2427 msgid ""
2428 "The Posix 1003.2 (proposal 11.3) definition of the AWK language is AWK as "
2429 "described in the AWK book with a few extensions that appeared in nawk from "
2430 "SystemVR4. These extensions are:"
2431 msgstr ""
2432 "Posix-owa 1003.2 (propozycja 11.3) definicja języka AWK jest AWK opisanym w "
2433 "książce AWK z kilkoma rozszerzeniami, jakie pojawiły się w nawk z SystemVR4. "
2434 "Rozszerzeniami tymi są:"
2435
2436 #. type: Plain text
2437 #: mawk.1:1380
2438 msgid "New function: toupper() and tolower()."
2439 msgstr "Nowe funkcje: toupper() i tolower()."
2440
2441 #. type: Plain text
2442 #: mawk.1:1382
2443 msgid "New variables: ENVIRON[\\|] and CONVFMT."
2444 msgstr "Nowe zmienne: ENVIRON[\\|] i CONVFMT."
2445
2446 #. type: Plain text
2447 #: mawk.1:1384
2448 msgid "Conversion specifications in printf() and sprintf() taken from ANSI C."
2449 msgstr "Specyfikacje konwersji w printf() i sprintf() wzięte z ANSI C."
2450
2451 #. type: Plain text
2452 #: mawk.1:1387
2453 msgid ""
2454 "New command options: -v var=value, multiple -f options, and implementation-"
2455 "specific options as -W arguments."
2456 msgstr ""
2457 "Nowe opcje polecenia: -v zmn=wartość, wielokrotne opcje -f i opcje "
2458 "charakterystyczne dla implementacji jako argumenty -W."
2459
2460 #. type: Plain text
2461 #: mawk.1:1398
2462 msgid ""
2463 "Posix AWK processes single lines of files. B<RS> can be changed from \"\\en\" "
2464 "to another single character, but it is difficult to find any use for this \\"
2465 "(m there are no examples in the AWK book. By convention, B<RS> = \"\", causes "
2466 "one or more blank lines to separate records, allowing for the handling of "
2467 "multi-line records. When B<RS> = \"\", \"\\en\" is always the field "
2468 "separator, regardless of the value of B<FS>."
2469 msgstr ""
2470 "Posix-owy AWK przetwarza pojedyncze wiersze plików. B<RS> można zmienić z "
2471 "\"\\en\" na inny pojedynczy znak, ale trudno jest znaleźć jakieś tego "
2472 "zastosowanie \\(em w książce AWK brak odpowiednich przykładów. Zgodnie z "
2473 "konwencją, B<RS> = \"\", powoduje, że jeden lub więcej pustych wierszy "
2474 "rozdziela rekordy, umożliwiając obsługę rekordów wielowierszowych. Gdy B<RS> "
2475 "= \"\", \"\\en\" jest zawsze separatorem pól, niezależnie od wartości B<FS>."
2476
2477 #. type: Plain text
2478 #: mawk.1:1407
2479 msgid ""
2480 "B<mawk>, on the other hand, allows B<RS> to be a regular expression. \"\\en\" "
2481 "appearing in records is treated as a blank, and B<FS> always specifies fields."
2482 msgstr ""
2483 "B<mawk>, z kolei, pozwala by B<RS> było wyrażeniem regularnym. Pojawiające "
2484 "się w rekordach \"\\en\" jest traktowane jak odstęp, a B<FS> zawsze określa "
2485 "pola."
2486
2487 #. type: Plain text
2488 #: mawk.1:1411
2489 msgid ""
2490 "Getting rid of the single-row paradigm can simplify some programs and often "
2491 "improve performance. For example, the modified example 3 (see above),"
2492 msgstr ""
2493 "Pozbycie się paradygmatu operowania pojedynczym wierszem może uprościć "
2494 "niektóre programy i często poprawić wydajność. Na przykład, zmienieniony "
2495 "przykład 3 (zobacz powyżej),"
2496
2497 #. type: Plain text
2498 #: mawk.1:1414
2499 #, no-wrap
2500 msgid "\tBEGIN { RS = \"[^A-Za-z]+\" }\n"
2501 msgstr "\tBEGIN { RS = \"[^A-Za-z]+\" }\n"
2502
2503 #. type: Plain text
2504 #: mawk.1:1416
2505 #, no-wrap
2506 msgid "\t{ word[ $0 ] = \"\" }\n"
2507 msgstr "\t{ word[ $0 ] = \"\" }\n"
2508
2509 #. type: Plain text
2510 #: mawk.1:1421
2511 #, no-wrap
2512 msgid ""
2513 "\tEND { delete word[ \"\" ]\n"
2514 "\t for( i in word ) cnt++\n"
2515 "\t print cnt\n"
2516 "\t}\n"
2517 msgstr ""
2518 "\tEND { delete word[ \"\" ]\n"
2519 "\t for( i in word ) cnt++\n"
2520 "\t print cnt\n"
2521 "\t}\n"
2522
2523 #. type: Plain text
2524 #: mawk.1:1428
2525 msgid ""
2526 "counts the number of unique words by treating each word as a record. For "
2527 "medium-sized files, B<mawk> executes twice as fast, thanks to a simplified "
2528 "inner loop."
2529 msgstr ""
2530 "zlicza ilość niepowtarzających się słów przez traktowanie każdego słowa jako "
2531 "rekordu. Przy plikach średnich rozmiarów B<mawk> wykonuje go dwukrotnie "
2532 "szybciej, dzięki uproszczonej pętli wewnętrznej."
2533
2534 #. type: Plain text
2535 #: mawk.1:1431
2536 msgid ""
2537 "The following program replaces each comment in a C program file with a single "
2538 "space,"
2539 msgstr ""
2540 "Poniższy program zastępuje każdy z komentarzy w pliku programu C pojedynczą "
2541 "spacją,"
2542
2543 #. type: Plain text
2544 #: mawk.1:1439
2545 #, no-wrap
2546 msgid ""
2547 "\tBEGIN {\n"
2548 "\t RS = \"/\\|\\e*([^*]\\||\\|\\e*+[^/*])*\\e*+/\"\n"
2549 " # comment is a record separator\n"
2550 "\t ORS = \" \"\n"
2551 "\t getline hold\n"
2552 " }\n"
2553 msgstr ""
2554 "\tBEGIN {\n"
2555 "\t RS = \"/\\|\\e*([^*]\\||\\|\\e*+[^/*])*\\e*+/\"\n"
2556 " # komentarz jest separatorem rekordów\n"
2557 "\t ORS = \" \"\n"
2558 "\t getline hold\n"
2559 " }\n"
2560
2561 #. type: Plain text
2562 #: mawk.1:1441
2563 #, no-wrap
2564 msgid " { print hold ; hold = $0 }\n"
2565 msgstr " { print hold ; hold = $0 }\n"
2566
2567 #. type: Plain text
2568 #: mawk.1:1443
2569 #, no-wrap
2570 msgid " END { printf \"%s\" , hold }\n"
2571 msgstr " END { printf \"%s\" , hold }\n"
2572
2573 #. type: Plain text
2574 #: mawk.1:1447
2575 msgid ""
2576 "Record caching is necessary to avoid terminating the last record with a space."
2577 msgstr ""
2578 "Buforowanie rekordu jest niezbędne, by uniknąć zakończenia ostatniego z "
2579 "rekordów spacją."
2580
2581 #. type: Plain text
2582 #: mawk.1:1451
2583 msgid "In B<mawk> the following expressions are equivalent,"
2584 msgstr "W B<mawk> poniższe wyrażenia są równoważne,"
2585
2586 #. type: Plain text
2587 #: mawk.1:1454
2588 #, no-wrap
2589 msgid "\tx ~ /a\\e+b/ x ~ \"a\\e+b\" x ~ \"a\\e\\e+b\"\n"
2590 msgstr "\tx ~ /a\\e+b/ x ~ \"a\\e+b\" x ~ \"a\\e\\e+b\"\n"
2591
2592 #. type: Plain text
2593 #: mawk.1:1473
2594 msgid ""
2595 "The above strings will be parsed twice: once as a string and once as a "
2596 "regular expression. When parsing a string, B<mawk> ignores backslash escaping "
2597 "for non-special characters, so I<\\ec> is interpreted as I<\\ec>. The AWK "
2598 "book, however, favors I<\\ec> as I<c>, which requires double escaping of "
2599 "metacharacters in strings. Posix explicitly refuses to define the desired "
2600 "behavior, thus implicitly forcing programs that must interact with different "
2601 "versions of awk to use the more portable, but less readable, double backslash "
2602 "escaping."
2603 msgstr ""
2604 "Powyższe łańcuchy będą analizowane dwukrotnie: raz jako łańcuch i raz jako "
2605 "wyrażenie regularne. Przy analizie łańcucha B<mawk> ignoruje stosowanie "
2606 "cytowania odwrotnym ukośnikiem do znaków nie będących znakami specjalnymi, "
2607 "zatem I<\\ec> interpretuje jako I<\\ec>. Natomiast książka AWK przychyla się "
2608 "do tego, by I<\\ec> było rozpoznawane jako I<c>, co wymaga podwojonego "
2609 "cytowania metaznaków w łańcuchach. Posix wprost odmawia zdefiniowania "
2610 "pożądanego zachowania, przez co pośrednio wymusza na programach muszących "
2611 "działać z różnymi wersjami awk stosowanie bardziej przenośnego, lecz mniej "
2612 "czytelnego, cytowania z użyciem podwójnych odwrotnych ukośników."
2613
2614 #. type: Plain text
2615 #: mawk.1:1486
2616 msgid ""
2617 "Posix AWK does not recognize \"/dev/std{out,err}\" or the \\ex hex escape "
2618 "sequence in strings. Unlike ANSI C, B<mawk> limits the number of digits that "
2619 "can follow \\ex to two, because the current implementation only supports 8-"
2620 "bit characters. The built-in B<fflush> first appeared in the last (1993) AT&T "
2621 "awk released for netlib, and is not part of the Posix standard. Complete "
2622 "deletion of an array with B<delete> I<array> is not part of the Posix "
2623 "standard."
2624 msgstr ""
2625 "Posix-owy AWK nie rozpoznaje \"/dev/std{out,err}\" ani sekwencji specjalnej "
2626 "\\ex hex w łańcuchach. W przeciwieństwie do ANSI C, B<mawk> ogranicza liczbę "
2627 "cyfr, jakie mogą występować po \\ex do dwóch, gdyż obecna implementacja "
2628 "obsługuje tylko znaki 8-bitowe. Wbudowane B<fflush> pojawiło się po raz "
2629 "pierwszy w ostatnim (1993) awk AT&T wydanym dla netlib, i nie jest częścią "
2630 "standardu Posix. Całościowe usuwanie tablicy przez B<delete> I<tablica> nie "
2631 "jest częścią standardu Posix."
2632
2633 #. type: Plain text
2634 #: mawk.1:1492
2635 msgid ""
2636 "Posix explicitly leaves the behavior of B<FS> = \"\" undefined and mentions "
2637 "character-based record splitting as a possible interpretation, but this usage "
2638 "is currently not portable between implementations."
2639 msgstr ""
2640 "Posix jawnie zostawia niezdefiniowane zachowanie się B<FS> = \"\" i wspomina "
2641 "o podziale rekordów na znaki jako możliwej interpretacji, ale obecnie takie "
2642 "zastosowanie nie jest przenośne między implementacjami."
2643
2644 #. type: Plain text
2645 #: mawk.1:1498
2646 msgid ""
2647 "Finally, how B<mawk> handles exception cases not covered in the AWK book or "
2648 "the Posix proposal. It is dangerous to assume consistency between awk "
2649 "implementations, and it is safe to skip to the next section."
2650 msgstr ""
2651 "Na koniec, sposób w jaki B<mawk> obsługuje przypadki wyjątkowe nie opisane w "
2652 "książce AWK ani w propozycji Posix. Niebezpiecznie jest zakładanie spójności "
2653 "pomiędzy implementacjami awk, a bezpiecznie przejść do następnej sekcji."
2654
2655 #. type: Plain text
2656 #: mawk.1:1504
2657 msgid ""
2658 "substr(s, i, n) returns the characters of the string s with positions in the "
2659 "intersection of the closed interval [1, length(s)] and the half-open interval "
2660 "[i, i+n). If the intersection is empty, the empty string is returned; thus "
2661 "substr(\"ABC\", 1, 0) = \"\" and substr(\"ABC\", -4, 6) = \"A\"."
2662 msgstr ""
2663 "substr(s, i, n) zwraca znaki łańcucha s o pozycjach z części wspólnej "
2664 "przedziału zamkniętego [1, length(s)] i półotwartego [i, i+n). Gdy część "
2665 "wspólna jest pusta, zwracany jest łańcuch pusty; zatem substr(\"ABC\", 1, 0) "
2666 "= \"\" a substr(\"ABC\", -4, 6) = \"A\"."
2667
2668 #. type: Plain text
2669 #: mawk.1:1510
2670 msgid ""
2671 "Every string, even the empty string, matches the empty string at its "
2672 "beginning, so s ~ // and s ~ \"\", are always 1, as are match(s, //) and "
2673 "match(s, \"\"). The last two set B<RLENGTH> to 0."
2674 msgstr ""
2675 "Każdy łańcuch, nawet pusty, pasuje początkiem do łańcucha pustego, więc s "
2676 "~ // i s ~ \"\", są zawsze równe 1, tak jak match(s, //) i match(s, \"\"). "
2677 "Ostanie dwa ustawiają B<RLENGTH> na 0."
2678
2679 #. type: Plain text
2680 #: mawk.1:1516
2681 msgid ""
2682 "index(s, t) is always the same as match(s, t1), where t1 is the same as t "
2683 "with its metacharacters escaped. Hence, consistency with match requires that "
2684 "index(s, \"\") always return 1. Also, the condition: index(s,t) != 0 if and "
2685 "only if t is a substring of s forces index(\"\",\"\") = 1."
2686 msgstr ""
2687 "index(s, t) jest zawsze tym samym, co match(s, t1), gdzie t1, to to samo, co "
2688 "t z cytowanymi metaznakami. Stąd spójność z match wymaga, by index(s, \"\") "
2689 "zawsze zwracało 1. Również warunek: index(s,t) != 0 wtedy i tylko wtedy, gdy "
2690 "t jest podłańcuchem łańcucha s, wymusza by index(\"\",\"\") = 1."
2691
2692 #. type: Plain text
2693 #: mawk.1:1525
2694 msgid ""
2695 "If getline encounters end-of-file, getline var leaves the variable var "
2696 "unchanged. Similarly, when the B<END> action begins, the values of B<$0>, "
2697 "fields, and B<NF> remain unchanged from the last record."
2698 msgstr ""
2699 "Jeżeli getline napotka koniec pliku, getline zmn pozostawia zmienną zmn bez "
2700 "zmian. Podobnie, w momencie rozpoczęcia akcji B<END>, wartości B<$0>, pól i "
2701 "B<NF> pozostają niezmienione od ostatniego rekordu."
2702
2703 #. type: SH
2704 #: mawk.1:1525
2705 #, no-wrap
2706 msgid "SEE ALSO"
2707 msgstr "ZOBACZ TAKŻE"
2708
2709 #. type: Plain text
2710 #: mawk.1:1527
2711 msgid "B<egrep>(1)"
2712 msgstr "B<egrep>(1)"
2713
2714 #. type: Plain text
2715 #: mawk.1:1534
2716 msgid ""
2717 "Aho, Kernighan and Weinberger, I<The AWK Programming Language>, Addison-"
2718 "Wesley Publishing, 1988, (the AWK book), defines the language, starting with "
2719 "a tutorial and moving on to many interesting programs, and going deeply into "
2720 "program design and analysis issues important to programming in any language."
2721 msgstr ""
2722 "Aho, Kernighan and Weinberger, I<The AWK Programming Language>, Addison-"
2723 "Wesley Publishing, 1988, (książka AWK), definiuje język, rozpoczynając się "
2724 "samouczkiem a dochodząc do wielu interesujących programów i wchodząc głęboko "
2725 "w kwestie projektowania i analizy programów istotne przy programowaniu w "
2726 "każdym języku."
2727
2728 #. type: Plain text
2729 #: mawk.1:1540
2730 msgid ""
2731 "<The GAWK Manual>, The Free Software Foundation, 1991, is a reference and "
2732 "language reference that doesn't attempt to go into the depths of an AWK book. "
2733 "It assumes the reader may be a beginner programmer. The section on AWK arrays "
2734 "is excellent. It also discusses the Posix requirements for AWK."
2735 msgstr ""
2736 "I<The GAWK Manual>, The Free Software Foundation, 1991, stanowi podręcznik i "
2737 "opis języka nie usiłujący sięgnąć głębi książki AWK. Zakłada, że czytelnik "
2738 "może być początkującym programistą. Sekcja poświęcona tablicom w AWK jest "
2739 "doskonała. Omawia także wymagania stawiane AWK przez Posix."
2740
2741 #. type: SH
2742 #: mawk.1:1540
2743 #, no-wrap
2744 msgid "BUGS"
2745 msgstr "BŁĘDY"
2746
2747 #. type: Plain text
2748 #: mawk.1:1545
2749 msgid ""
2750 "B<mawk> does not support the ascii NUL character \\e0 in source or data "
2751 "files. NUL can be printed using printf with %c, and all other 8-bit "
2752 "characters are acceptable in input."
2753 msgstr ""
2754 "B<mawk> nie obsługuje znaku ascii NUL \\e0 w plikach źródłowych czy plikach "
2755 "danych. Można wypisać NUL przy pomocy printf z %c, a w wejściu są "
2756 "dopuszczalne wszystkie inne znaki 8-bitowe."
2757
2758 #. type: Plain text
2759 #: mawk.1:1552
2760 msgid ""
2761 "B<mawk> implements printf() and sprintf() using the C library functions "
2762 "printf and sprintf, so full ANSI compliance requires an ANSI C library. In "
2763 "practice, this means that the h conversion qualifier may not be available. "
2764 "B<mawk> also inherits any bugs or limitations of these functions."
2765 msgstr ""
2766 "B<mawk> implementuje printf() i sprintf() przy pomocy funkcji bibliotecznych "
2767 "C, printf i sprintf, więc pełna zgodność z ANSI wymaga biblioteki ANSI C. W "
2768 "praktyce oznacza to, że kwalifikator konwersji h może nie być dostępny. "
2769 "B<mawk> przejmuje też wszystkie błędy czy ograniczenia tych funkcji."
2770
2771 #. type: Plain text
2772 #: mawk.1:1555
2773 msgid ""
2774 "The creators of AWK implementations have shown a consistent lack of "
2775 "imagination in naming their programs."
2776 msgstr ""
2777 "Twórcy implementacji języka AWK ukazali zgodny brak wyobraźni w nazywaniu "
2778 "swych programów."
2779
2780 #. type: SH
2781 #: mawk.1:1555
2782 #, no-wrap
2783 msgid "AUTHOR"
2784 msgstr "AUTOR"
2785
2786 #. type: Plain text
2787 #: mawk.1:1556
2788 msgid "Mike Brennan E<lt>[email protected]<gt>."
2789 msgstr "Mike Brennan E<lt>[email protected]<gt>."