Skip to main content

Articles tagged: Bash

Follow Bash

They land in your feed reader on their own β€” no account, no email address, nothing to unsubscribe from. Paste this URL into your reader:

https://www.avonture.be/blog/tags/bash/rss.xml

No feed reader yet? Start here β€” it takes two minutes.

ai-explain: ELI5 for Scripts and Errors, Right in Your Terminal
Artificial Intelligence (AI)

ai-explain: ELI5 for Scripts and Errors, Right in Your TerminalΒ β†’

Another function in the Ollama daily-use series: pipe any script, error message, or stack trace to ai-explain and get a plain-English explanation of what it does or what went wrong β€” entirely local, no cloud required.

November 12, 2026

yq β€” The YAML Processor You Already Know How to Use
Linux

yq β€” The YAML Processor You Already Know How to UseΒ β†’

yq is to YAML what jq is to JSON. Query and edit your Docker Compose files, CI configs, and any YAML document from the command line β€” no installation required beyond Docker.

October 19, 2026

hyperfine β€” Stop Guessing Which Command Is Faster, Measure It
Linux

hyperfine β€” Stop Guessing Which Command Is Faster, Measure ItΒ β†’

hyperfine is a command-line benchmarking tool written in Rust. It runs your commands many times, supports warmup runs, computes statistics on time and memory, and tells you definitively which one is faster β€” with export to Markdown, CSV or JSON.

October 12, 2026

Atuin β€” Supercharge Your Shell History With a Searchable, Timestamped Database
Bash

Atuin β€” Supercharge Your Shell History With a Searchable, Timestamped DatabaseΒ β†’

Tired of losing commands in the default CTRL+R maze? Atuin replaces your shell history with a full-featured TUI backed by SQLite β€” timestamps, context, multi-machine sync, and a clean comparison with FZF-based history search.

September 14, 2026

ai-test: Generate Missing Unit Tests From Your Terminal With a Local LLM
Artificial Intelligence (AI)

ai-test: Generate Missing Unit Tests From Your Terminal With a Local LLMΒ β†’

Turn your local Ollama model into an on-demand unit test generator. A zsh function that reads a Bash, PHP or Python file, detects whether you already have tests for it, prints only the missing Bats/Pest/Pytest cases needed for full coverage, offers to save them where the framework expects them, and runs the suite in a throw-away Docker container.

August 3, 2026

ripgrep β€” The Search Tool That Changed My WSL2 Workflow
Zsh

ripgrep β€” The Search Tool That Changed My WSL2 WorkflowΒ β†’

Discover ripgrep, the blazingly fast grep alternative written in Rust. Installation on Ubuntu/WSL2, ZSH configuration, practical shell functions, and real-world use cases that will transform how you search code every day.

July 6, 2026

git worktree: Work on Two Branches at the Same Time
Git

git worktree: Work on Two Branches at the Same TimeΒ β†’

git worktree lets you check out multiple branches as real directories simultaneously β€” no stashing, no context loss. Keep your Docker stack running while handling hotfixes in parallel.

June 29, 2026

delta: a Syntax-Highlighted Pager for git diff
Git

delta: a Syntax-Highlighted Pager for git diffΒ β†’

Stop squinting at raw git diff outputs. Learn how to install and configure Delta to add syntax highlighting and side-by-side views in under 5 minutes.

June 15, 2026

FZF + ripgrep: Interactive Code Search with Live Preview
fzf

FZF + ripgrep: Interactive Code Search with Live PreviewΒ β†’

Combine ripgrep and fzf with a bat syntax-highlighted preview panel to build an interactive code search β€” then open the result directly in VSCode at the exact matching line.

June 8, 2026

Master your ssh command and select the host from a list
Linux

Master your ssh command and select the host from a listΒ β†’

Build an interactive, searchable SSH host selector using FZF. Learn to modularize your SSH configurations, add rich documentation, and trigger advanced custom actions via a fast Terminal User Interface.

April 27, 2026

Streamline Your Frontend - Minifying Assets with Docker, Bash, and YAML
Bash

Streamline Your Frontend - Minifying Assets with Docker, Bash, and YAMLΒ β†’

Drop the heavy Node toolchains. Build a fast, dependency-free asset minification pipeline using a declarative YAML manifest, Bash, and Docker.

April 13, 2026

Linux - Bash scripts - Running unit tests with bats/bats
Testing

Linux - Bash scripts - Running unit tests with bats/batsΒ β†’

Learn how to effectively unit test your Bash scripts on Linux using the powerful bats (Bash Automated Testing System) framework. See practical examples for assertions, output checks, and failures.

July 10, 2025

Keep running and count the number of files in a folder using inotifywait
Bash

Keep running and count the number of files in a folder using inotifywaitΒ β†’

Use Linux inotifywait to continuously monitor a directory and get a real-time, running count of newly created files with a simple Bash script.

November 24, 2024

Linux - Using a progression bar in your script
Bash

Linux - Using a progression bar in your scriptΒ β†’

Add a visual progression bar to your Bash scripts on Linux. This guide shows you how to easily implement a progress bar to track concurrent jobs, visualize progress, and improve your terminal user interface.

October 7, 2024

Linux - Take advantage of the number of CPUs you have; start concurrent jobs
Bash

Linux - Take advantage of the number of CPUs you have; start concurrent jobsΒ β†’

Optimize your Bash scripts! Learn how to run concurrent jobs and leverage all your CPU cores using process IDs (pids), wait, and nproc to dramatically reduce execution time.

October 6, 2024

Linux - Generate documentation from Bash scripts
Bash

Linux - Generate documentation from Bash scriptsΒ β†’

Learn to auto-generate documentation for your Bash scripts on Linux. This guide provides a custom script to parse function doc blocks and create structured Markdown files automatically.

July 29, 2024

Linux - Compare two versions of the same script
Linux

Linux - Compare two versions of the same scriptΒ β†’

Use a simple Linux command-line trick with diff, grep, and awk to compare two versions of the same Bash script. Quickly identify missing or new functions across file versions or entire folders.

July 28, 2024

Linux - Sort functions in a Bash script
Bash

Linux - Sort functions in a Bash scriptΒ β†’

Learn how to use diff and sort in Bash to check if functions in your shell scripts are defined in alphabetical order. Includes a script to scan an entire directory.

July 28, 2024

Linux - Comparing two folders/files in the console
Linux

Linux - Comparing two folders/files in the consoleΒ β†’

Efficiently compare two files or entire folders in Linux using the diff command. Get advanced bash scripts for industrial-level comparison.

July 19, 2024

Bash - Echo on the console and in a logfile in the same time
Bash

Bash - Echo on the console and in a logfile in the same timeΒ β†’

Tired of silent Bash scripts? Learn the simple, effective method to simultaneously echo command output to the console and write it to a log file line-by-line.

May 3, 2024

Bash - Script to add logging features to your script
Bash

Bash - Script to add logging features to your scriptΒ β†’

Add robust logging features to your Bash scripts with this simple, reusable library. Get automatic log files, timestamps, and full function call traces for easy debugging.

May 1, 2024

Introduction to fzf - Fuzzy Finder
Linux

Introduction to fzf - Fuzzy FinderΒ β†’

Master the Linux command line with fzf (Fuzzy Finder). Discover its powerful fuzzy search for history (CTRL+R) and file selection (CTRL+T) to boost your productivity.

March 30, 2024

Compare environment files in the Linux console
Linux

Compare environment files in the Linux consoleΒ β†’

Struggling to sync your .env and .env.example files? Learn a powerful Linux CLI command using diff, grep, and sort to accurately compare environment variables and skip comments.

January 26, 2024

Batch edit of environment file
Linux

Batch edit of environment fileΒ β†’

Stop manually editing .env files! Learn how to use a simple Linux function to batch update environment variables safely for consistent deployment across all your servers.

January 26, 2024

Search and replace (or add) using sed
Linux

Search and replace (or add) using sedΒ β†’

Master Linux sed for dynamic file editing. Learn how to search and replace an existing variable or seamlessly add a new line if the variable is not found in your configuration file.

January 25, 2024

Bash - ASCII art
Bash

Bash - ASCII artΒ β†’

Learn how to add eye-catching ASCII art banners to your Bash scripts for a bigger visual impact. Includes a full sample code implementation.

December 19, 2023

Bash - Loading environment variables from a file
Bash

Bash - Loading environment variables from a fileΒ β†’

Learn how to load environment variables from a .env file into a Bash script, so you can externalize configuration and reuse variables across other applications like Laravel.

December 19, 2023

The jq utility for Linux
Linux

The jq utility for LinuxΒ β†’

Use the powerful Linux jq utility to manipulate JSON data, prettify output, and filter nodes directly from your command line and shell scripts.

December 13, 2023

The xmlstarlet utility for Linux
Linux

The xmlstarlet utility for LinuxΒ β†’

Master XML data manipulation on the Linux command line with xmlstarlet. This guide shows you how to beautify XML output and filter nodes using XPath expressions

December 13, 2023

Get health information from your running containers
Bash

Get health information from your running containersΒ β†’

Get health information from your running Docker containers instantly. This article shows a bash script using docker ps and docker inspect for quick checks.

December 12, 2023