- Use
curlto get the JSON response for the latest release - Use
grepto find the line containing file URL - Use
cutand to extract the URL - Use
wgetto download it
curl -s https://api.github.com/repos/junegunn/fzf-bin/releases/latest \
| grep "browser_download_url.*linux_amd64" \
| cut -d '"' -f 4 \
| wget -qi -