I am looking for a quick/short way in awk to check if an associative array has any content.
I know I can split() it to an indexed array and check if the 1st element is set, or cycle through it with something like for( ele in arr ) , but I want to avoid that, as I am looking for a shorter option.
If possible, I don't want to cycle through elements (I do not know what contents will be in there though or what key names will be used) - I would like to straight test.
Considering the number of views of the thread and that I couldn't find anything in the documentations, I assume there is nothing like that. Meanwhile I just increased a hit-counter variable and check if it is set like: