Advertisement
Guest User

Untitled

a guest
May 4th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. max=0
  2. max_nap=0
  3.  
  4. for i in `seq 17 19`
  5. do
  6. akt=`egrep -ce "^Feb $i.*avahi-daemon.*Registering" $1`
  7. #echo $i: $akt
  8. if [ $akt -gt $max ]
  9. then
  10. max=$akt
  11. max_nap=$i
  12. fi
  13. done
  14. echo "Maximum:" $max_nap: $max
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. geciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
  30.  
  31.  
  32.  
  33.  
  34. max=0
  35. maxnap=0
  36. for i in `seq 17 19`
  37. do
  38. alma=`grep -c "Feb $i.*avahi-daemon.*Registering" $1`
  39. echo $i: $alma
  40. if [ $alma -gt $max ]
  41. then
  42. alma=$feb
  43. maxnap=$i
  44. fi
  45. done
  46.  
  47. echo "A maxnap: " $i
  48. echo "A max: " $alma
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement