Guest User

Untitled

a guest
Jul 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/bin/bash -eu
  2.  
  3. DATA=node-count.data
  4.  
  5. while git checkout HEAD~30
  6. do
  7. date=$( git log -1 --date=unix | grep ^Date | awk '{ print $2 }' )
  8. echo -n "$date " >> $DATA
  9.  
  10. ## $8 is the 30d uptime; 5..100 shows nodes with uptime >= 5%
  11. awk '{print $8}' seeds.txt | numgrep 5..100 | wc -l >> $DATA
  12.  
  13. ## Show progress
  14. git log -1 | grep ^Date
  15. done
Add Comment
Please, Sign In to add comment