Search Results

Search: Posts Made By: raghu.iv85
12,802
Posted By ahamed101
Another way... awk '{a[$2,$3]++} END {...
Another way...

awk '{a[$2,$3]++} END { printf "TP:%d\nTN:%d\nFP:%d\nFN:%d\n",a[1,1],a[0,0],a[1,0],a[0,1] }' infile


--ahamed
12,802
Posted By Yoda
An awk approach: awk -F'\t' ' { ...
An awk approach:
awk -F'\t' '
{
TP += ( $2 == 1 && $3 == 1 ) ? 1 : 0
TN += ( $2 == 0 && $3 == 0 ) ? 1 : 0
FP += ( $2 == 1 && $3 == 0 ) ? 1...
Showing results 1 to 2 of 2

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