Skip to content

Instantly share code, notes, and snippets.

  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and to extract the URL
  • Use wget to 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 -