Sample Header Ad - 728x90

linux bash dictionary check if empty

6 votes
3 answers
11667 views
How to check if a dictionary (associative array) is empty? I just declare one using declare -A dict. I want to know if it is just declared but not have any key.
Asked by focus zheng (186 rep)
Dec 7, 2018, 09:56 AM
Last activity: Aug 25, 2023, 07:50 PM