Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- $(echo "" | cat > output)
- for f in `seq 3 761`; do
- $(wget https://hsf.csaw.io/team/$f -q -O - > web)
- out=$(cat web | grep -oP '\<td\>\K([0-9]+)' > tmp)
- arr[$f]=0
- while read -r a; do
- ((arr[$f]+=a))
- done < tmp
- echo ${arr[$f]} >> output
- done
- $(sort -n output | tac > scoreboard)
- $(rm web | rm tmp | rm output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement