Paste Search Dynamic
Recent pastes
unpaid or paid
  1. awk 'BEGIN{FS=";";IGNORECASE=1;c=0}{
  2.         if($3=="paid"){
  3.                 a[$1]+=$2;
  4.                 c++;
  5.         }
  6. }END{
  7.         if(c==0) print("not found");
  8.         else{
  9.                 for(i in a){print(i,"paid",a[i])}
  10.         }
  11. }'$1|sort -k1 -t " "
  12.  
Parsed in 0.004 seconds