dotfiles/.config/fish/functions/kyberchod_solved.fish
2023-11-13 21:17:35 +01:00

7 lines
289 B
Fish

function kyberchod_solved
if test -z $argv[1]
echo "Enter user id as argument 1"
exit 1
end
http https://www.kyberchod.cz/user?id=$argv[1] | htmlq table td:first-child, table td:last-child --text | string trim | tr \n " " | string split " " | string trim | sort
end