nota sobre compatibilidad del ciclo for usando keys
This commit is contained in:
parent
5adf51333c
commit
2ba8f72974
|
@ -53,7 +53,7 @@ the index of the first character is 1!
|
|||
* index( string, sub) : index of sub as a substring of string
|
||||
* length( string )
|
||||
* match( string, regex ) : index of the longest match of regex in string
|
||||
* split( string, arr, regex ) : split string into array using regex as separato
|
||||
* split( string, arr, regex ) : split string into array using regex as separator
|
||||
* printf( format, expr-list)
|
||||
* strtonum(string): useful to convert from hexadecimal (0x prefix) or octal (0 prefix)
|
||||
* gsub( regex, sub, string): global substitution of regex with sub in string. if string is ommited, $0 is used
|
||||
|
@ -112,6 +112,8 @@ FS = ""
|
|||
|
||||
## loop through the elements of an array
|
||||
|
||||
this approach might yield the results in different order depending on the awk implementation.
|
||||
|
||||
```
|
||||
arr["a"] = 1
|
||||
arr["b"] = 2
|
||||
|
|
Loading…
Reference in New Issue