diff --git a/src/awk.gmo b/src/awk.gmo index 91b110e..d34ec3e 100644 --- a/src/awk.gmo +++ b/src/awk.gmo @@ -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