This repository contains shell utility programs.
wget https://raw.githubusercontent.com/system4-tech/utils-sh/main/lib/utils.sh
. utils.sh
level=notice
command || level=error
log.$level message
http.get "https://httpbin.org/get"
http.post "https://httpbin.org/post" "data=example"
download "https://example.com/file[1-4].txt" "file#1.txt"
download "ftp://ftp.example.com/archive[2020-2024]/file[1-100].txt" "file#1_#2.txt"
See tests for more examples.