My issue here is with creating the array and populating it not knowing how many clients I'll have at any one time. So I guess what I'll have to do is output the command to show the currently connected clients to a text file and parse the text file until I reach EOF. Since the file contains words and information other than MAC addresses, I'll know that when I regex match a MAC address, that will be a line to parse and add to the array. Again, I do this until I reach EOF.