IsraelTorres icon

ToorCon2017 scoreboard.ctf.land

IsraelTorres | PRO | 09/03/17 04:19:44 AM UTC | 0 ⭐ | 444 👁️ | Never ⏰ | []
Bash |

600 B

|

None

|

0 👍

/

0 👎

# 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 '_' ' '

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎