Paste Search Dynamic
Recent pastes
total:count
  1. #!/bin/bash
  2. # your code goes here
  3. awk 'BEGIN{FS="-";count=0}{
  4.    if(($2==$3)&&($3==$4)){
  5.        print $1"-"$2"-"$3"-"$4;
  6.        count+=1;
  7.    }
  8. }
  9. END{
  10.    print"Total:  "count;
  11. }'
  12.  
Parsed in 0.004 seconds