Tag: bash
Browse 19 practical software engineering resources tagged with "bash". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving bash. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.
Bash Scripting for Operations
Bash remains the universal glue for automating servers, containers, and developer workflows. Solid bash scripts handle errors, quote variables, validate inputs, and fail predictably.
The recipes below cover file processing, loops, conditionals, text manipulation, command substitution, traps, and portable scripting. Each example is focused on automation you can run in CI/CD and production environments.
Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.
Log Rotation and Compression in Bash
Rotate and compress application logs automatically with bash scripts
Monitor Disk Usage
Alert when disk space crosses thresholds using a Bash script that checks mount points and notifies...
Run Shell Commands in Parallel with Bash
Execute multiple shell commands concurrently using xargs, GNU parallel, and background jobs.
Bash Scripting for DevOps Automation and System Tasks
How to write reliable Bash scripts for automating deployments, system monitoring, log rotation, and...
AWS CLI Automation with Bash
Automate AWS resource provisioning, tagging, and cleanup using Bash scripts wrapped around the AWS...
Bash Backup Rotation: Retention and Integrity
Rotate Bash backups into daily, weekly, and monthly archives with retention, encryption, integrity...
Log Rotation and Compression
Rotate and compress application logs with Bash to prevent disk exhaustion and simplify log...
Bash Loop Over Files
How to safely loop over files and directories in Bash, handling spaces, globs, and large file lists...
Bash Parallel Execution
How to run shell commands in parallel with xargs, GNU parallel, and Bash background jobs while...
Parallel Job Control with Bash
How to control parallel Bash jobs once they're running: collect exit codes, retry failures, enforce...
Bash Text Processing
How to build capable text processing pipelines with grep, sed, awk, cut, sort, uniq, and tr for log...
Copy and Move Files Safely in Python, JS, Java, and Bash
Learn to copy and move files across platforms with Python, JavaScript, Java, and Bash. Includes...
Generate Temporary Files
How to create temporary files and directories safely with automatic cleanup across Python, Node.js,...
Read and Write Files in Python, Node.js & Bash
How to read and write files safely in Python, Node.js, Bash and Java, with atomic writes and...
Configure iptables Firewall Rules with Bash
Set up basic firewall rules with iptables and bash scripts
Advanced iptables Firewall Rules and Hardening
Harden a Linux server with iptables: DDoS limits, connection tracking, IPv6, packet logging,...