Search Results

Search: Posts Made By: jim mcnamara
8,018
Posted By jim mcnamara
awk arrays are associative - they hash aray...
awk arrays are associative - they hash aray indexes.
The syntax says: add one to the array element indexed zero.
But, since the ++ is after the arr[] it means evaluate the value of arr[] before you...
8,018
Posted By jim mcnamara
awk '{ arr[$0]++} END{ for (i in arr) {...
awk '{ arr[$0]++}
END{ for (i in arr) { if (arr[i]>1) {print i, arr[i]} } }' file
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy