help needed. wget and regex for version numbers.

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

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
  1. nekoray

    Discontinued 不再维护,自寻替代品。 Qt based cross-platform GUI proxy configuration manager (backend: 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 )

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. 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 }

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

  • What to do when your git worktree is not detecting file changes

    1 project | dev.to | 7 Apr 2025
  • bat VS kat - a user suggested alternative

    2 projects | 13 Mar 2025
  • Linux OS - The 'bat' utility

    1 project | dev.to | 22 Oct 2024
  • 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