nota sobre compatibilidad del ciclo for usando keys

This commit is contained in:
sejo 2022-02-16 19:32:30 -06:00
parent 5adf51333c
commit 2ba8f72974
1 changed files with 3 additions and 1 deletions

View File

@ -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