Parse JSON with jq in Bash Shell Script Linux (curl API Logs)
Parse JSON in Bash with jq: filter fields, iterate arrays, jq -r raw output, validate with jq empty,…
Read tutorial →Browse step-by-step tutorials in this topic.
Parse JSON in Bash with jq: filter fields, iterate arrays, jq -r raw output, validate with jq empty,…
Read tutorial →
Restart a Docker container from Bash when unhealthy or exited: docker inspect State, optional name filter, log restart…
Read tutorial →
Verify NTP sync on Linux with Bash: chronyc tracking, timedatectl show, offset threshold alert, and cron after network…
Read tutorial →
Send Telegram alerts from Linux Bash: Bot API curl POST, chat_id and token from env, escape JSON message,…
Read tutorial →
Find zombie processes on Linux with a Bash script: ps STAT Z, parent PID, alert when count exceeds…
Read tutorial →
Verify DNS resolution from Bash: dig +short, compare A record to expected IP, check multiple resolvers, exit code…
Read tutorial →
Compress aged log files with a Bash script: find by mtime, gzip in place, skip already .gz, optional…
Read tutorial →
Auto-restart a failed systemd unit from Bash: check is-failed, systemctl reset-failed, start unit, log attempts, cooldown, and cron…
Read tutorial →
Check website or API HTTP status from Bash: curl -o /dev/null -w, expect 200, alert on 4xx/5xx, timeout,…
Read tutorial →
Read a file line by line in Bash with while read: handle spaces safely, IFS for fields, process…
Read tutorial →