HELP HELP HELP HELP 
Author Message
 HELP HELP HELP HELP

Hi All.

I have some problem with my teacher.
He ask.
"Max size array in AWK ?"

variable[n]            #  max n ?


Sorry, my english is horror.

With best regards Artyom.

Russian Part ->
Hi ? ????Y? All.

??? ??????, ?????? ??????.
? ???? ?????, ?? AWK ? ??? ? ???, ??????
? ???? ??????? ??? ??? ???? ???? ?? ??? ???
???? ? ????.

????:
????????? ? ??????? ? AWK?
???? ????? ??-? ????? ?, ??????

?????? ......

? ??? ???? ??? ?? ??? ????? ???? ???? ?

??? ? ?? ???. ?????? ???? ??????.

????? ???.



Mon, 20 May 2002 03:00:00 GMT  
 HELP HELP HELP HELP
ONLY for russian speaking :). Excuse me, please, but I'm lazy and
do not want translate this to english :(

Skipped

Quote:
> "Max size array in AWK ?"

> variable[n]            #  max n ?



??????? ???????? ???Y ?? ?? ????, ? ?? ? ??????,
?.?. ????? ? ???-?? ?? ??

Skipped

Quote:
> ????:
> ????????? ? ??????? ? AWK?
> ???? ????? ??-? ????? ?, ??????

?? ??? ? ??? ???:

awk-? ??????? ? ?? ???????? ????, ?? ?????
????, ??????? ?? ????? ?? ?????? ??????????? ??? ???
??? . ???? ???? ????? awk-??? ? ??????????
????? ?????? ???, ?? ???? ?????????? ??, ?? ?????
????. ??? ? ? ??? ????? ????-?? ??, ??? ? ??? ??-
??? ?????????? ?????. ?.?. ? AWK-? ????? ?????,
???? ??? ??Y???, ?? ????? ????? , ?????????????
?? ????? ???? (?? ????? ????), ??? ??????? ??? -
???? ??????? ???? .

??????? ??? ???? ????, ??????, ? ?? ???? ?? ???-
????? ?????, ?? ????? . ??????? ?? ?????
?????? ??? ???, ?? ?????? ??? ????? ?????
???? ??? ??????. ? ? ?? ?? ??? , ?? ?? ??-
? awk-, ??????? ????. , ?????, ????? awk, awk95, gawk
mawk, ???? ? ?? ?? DOS/Windows, ??? ??? ?Y? Unix, ??? ???-
??? ???????? ???.

? ?? ?? ????? ????, ??, ?????, ?? mawk-, ?? ?? ????
???? ????, ?? ~ 50 ? ?????, ???? ???? ?????? ???
????? ???, ???????? ??? ????? ???? ????? -
? (record-). ?? mawk ????? NF ??? 32767, ?? ?????? ?-
??? ?????? ???? ?? ?? ????, ?? ?? ?? ?????? ??? ????
(fields, ???? ?? ?? ?? 1 ????) ? ??? ???? ? ???Y??? "out
of input buffer", ??????? (?? ??? input buffer) ?? ? ??????? ??
mawk v1.22 ??????? ????? ???-?? ~ 59 ?.  ????? ?? ?????, ???
?????????? ????? ? ?????? ????? ? ?? mawk- ???
32767 ( ??? ?????, ????? ?????????? ????? ?Y? ?????),
???????? - ????? ?????, ? ? ??????? ????? ????? -
???? ???? 1 ???.

??????????? ???? ???????-?? ???? ??? ?????? ? ??? ??
a????? (????????, ????? ?? mawk) :)

?????

P.S. ?????? ?? ????? ???? ?? ??? ????? ????? ??c???????Y?
???? ??? ?????????, ?? ? ? ???? ? ? ????, ??? ?????
????? ????? ?? ?????????? ? ???? :)
>



Mon, 20 May 2002 03:00:00 GMT  
 HELP HELP HELP HELP


   >Hi All.
   >I have some problem with my teacher.
   >He ask.
   >"Max size array in AWK ?"
   >variable[n]            #  max n ?

It depends on the version of awk.  In some older versions an array can have
a maximum of 1000 elements.  I think gawk can have arrays as big as your
computer's memory, maybe bigger if the OS uses virtual memory.  I think
you can assume the maximum is at least 1000, unless of course the array
elements are so large that 1000 of them won't fit in RAM (that brings us
to the question, what is the maximum string length?)



Mon, 20 May 2002 03:00:00 GMT  
 HELP HELP HELP HELP

Quote:

> I think
> you can assume the maximum is at least 1000, unless of course the array
> elements are so large that 1000 of them won't fit in RAM (that brings us
> to the question, what is the maximum string length?)

The gawk source comes with a file named LIMITATIONS that shows some of
the limits, but not the number of array elements:

This file describes limits of gawk on a Unix system (although it
is variable even then).  Non-Unix systems may have other limits.

# of fields in a record:  MAX_LONG
Length of input record:  MAX_INT
Length of output record:  unlimited
Size of a field:  MAX_INT
Size of a printf string:  MAX_INT
Size of a literal string:  MAX_INT
Characters in a character class:  2^(# of bits per byte)
# of file redirections:  unlimited
# of pipe redirections:  min(# of processes per user, # of open files)
double-precision floating point
Length of source line:  unlimited
Number of input records in one file: MAX_LONG
Number of input records total: MAX_LONG
<<<

MAX_INT is 2 GiB (about 2000 millions) on 32 bit machines.

Other awk implementations have other limits. One of the (n)awk programs
that comes with a commercial Unix even started whining when the input
record had more than 99 fields. 99! I really couldn't believe that.

Regards...
                Michael



Mon, 20 May 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. help! f90.help help help help

2. HELP HELP HELP HELP

3. help help help help!!!!!!!!!!!

4. (HELP (HELP (HELP (HELP))))

5. HELP: HELP: HELP: HELP: Online-manual on Expect

6. ***HELP***HELP***NEED INFORMATION***HELP***HELP

7. Ord Function HELP Please HELP HELP HELP

8. Help Help Help

9. TopSpeed - ODBC 3.1???? HELP HELP HELP

10. HELP - HELP - HELP

11. HELP HELP HELP - round function error

12. SUPER TAGGING HELP HELP HELP

 

 
Powered by phpBB® Forum Software