Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # sans sorting
- for x in {50..89}; do echo -en "$x\t"; curl -s --location "https://scoreboard.ctf.land/team/$x" | grep -A 12 team-id | grep -E 'team-id|>place' | sed -e 's/<[^>]*>//g' | tr -s ' ' | tr -d '\n' | awk '{$1=$1};1'; done
- # with sorting of teams (descending - 26...1, none)
- teams=$(for x in {50..89}; do echo -en "$x\t"; curl -s --location "https://scoreboard.ctf.land/team/$x" | grep -A 12 team-id | grep -E 'team-id|>place' | sed -e 's/<[^>]*>//g' | tr -s ' ' | tr -d '\n' | awk '{$1=$1};1'; done); echo "$teams" | sed 's/Brokefoot Mountain/Brokefoot_Mountain/' | sort -k3 -n -r | tr '_' ' '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement