On Sun, 2011-04-24 at 20:57 +0530, Mohammed Shafi wrote: > On Sunday 24 April 2011 08:29 PM, Johannes Berg wrote: > > iw wlan0 station dump | grep ... | wc -l > thanks, that works! I need to divide by 11 :) Heh, yes, but that might change and/or be HW dependent, hence grep. So if you do iw wlan0 station dump | grep '^Station ' | wc -l you won't need to divide and won't be HW dependent. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html