help needed. wget and regex for version numbers.

This page summarizes the projects mentioned and recommended in the original post on /r/commandline

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • nekoray

    Qt based cross-platform GUI proxy configuration manager (backend: v2ray / sing-box)

  • This link https://github.com/MatsuriDayo/nekoray/releases/latest gives you a http 302 redirect to the page of the latest release tag (currently https://github.com/MatsuriDayo/nekoray/releases/tag/2.26 )

  • bat

    A cat(1) clone with wings.

  • new_bat () { # A cat(1) clone with syntax highlighting and Git integration. # https://github.com/sharkdp/bat local installed data online download_url release_id response zipfile_name folder_name installed=v$(bat.exe --version | awk '{ printf $2}') data=$(curl -s -H "Authorization: token " -s "https://api.github.com/repos/sharkdp/bat/releases") online=$(jq -j '.[0].tag_name' <<<"$data") download_url=$(jq -j '.[0].assets[] | select(.name | contains("x86_64-pc-windows-msvc.zip")) | .browser_download_url' <<<"$data") zipfile_name=$(jq -j '.[0].assets[] | select(.name | contains("x86_64-pc-windows-msvc.zip")) | .name' <<<"$data") folder_name="${zipfile_name%.*}" release_id=$(jq -j '.[0].id' <<<"$data") if [[ "$installed" == "$online" ]]; then echo "No new version! [installed is $installed]" return 0 else echo "New version is available! [$online] (installed is [$installed])" echo "Do you want to download the new bat version?" response=$(printf "Yes No" | smenu -d) echo -e "$(curl -s -H "Authorization: token " -s "https://api.github.com/repos/sharkdp/bat/releases/${release_id}" | jq -r .body)" |\ bat -pl markdown if [[ "$response" == Yes ]]; then echo "Updating to the new version..." pushd "/mnt/c/Users/zouhair/Downloads" > /dev/null || return 123 wget "$download_url" unzip -p "$zipfile_name" "${folder_name}/bat.exe" > /home/zouhair/bin/bat.exe chmod +x "/home/zouhair/bin/bat.exe" echo "Do you want to delete $zipfile_name" response=$(printf "Yes No" | smenu -d) if [[ "$response" == Yes ]]; then rm -i -rf "$zipfile_name" popd > /dev/null || return 124 else echo "Bye!" popd > /dev/null || return 124 fi else echo "Bye!" fi fi }

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Bat: A cat clone for syntax highlighting in the terminal

    1 project | news.ycombinator.com | 10 Nov 2023
  • Tell HN: Please don't print –help to stderr in your CLI tools

    1 project | news.ycombinator.com | 27 Sep 2023
  • Bat: A Cat Clone with Wings

    1 project | news.ycombinator.com | 18 Aug 2023
  • Colourising man pages using variables no longer working through ssh

    1 project | /r/commandline | 5 May 2023
  • First install questions

    1 project | /r/openbsd | 4 May 2023