Hi
Probably an easy one but here goes;
I want to increment a count in an array like this:-
arr[$1]++
to count occurences of a value through a file. But if that element of the array is NULL or blank this doesn't work. Is there a simpler one liner to initialise and then increment the element better than:-
if (arr[$1]=="" {arr[$1]=0};
arr[$1]++;
Thanks
Chris