Standard Search
About 38 results
https://rednafi.com/misc/process-substitution-in-bash/ · 30 Apr 2023
Use process substitution <() to treat command output as files in Bash. Compare directories, process data, and avoid temporary files with this technique.
https://rednafi.com/misc/dynamic-menu-with-select-in-bash/ · 29 Apr 2023
Build interactive CLI menus with Bash select statement. Create user-friendly command-line tools with option selection and function dispatch.
https://rednafi.com/misc/terminal-text-formatting-with-tput/ · 23 Apr 2023
Format terminal output with tput instead of ANSI codes. Set colors, bold text, underlines, and backgrounds with simple commands in shell scripts.
https://rednafi.com/misc/tinkering-with-unix-domain-socket/ · 11 Mar 2023
Build Unix domain socket servers and clients with Python and socat. Access Docker API via UDS, create HTTP servers, and optimize inter-process communication.
https://rednafi.com/misc/colon-command-in-shell-scripts/ · 23 Dec 2022
Use the colon : command as a no-op in Bash scripts for cleaner debug output with -x flag. Alternative to echo for section markers and comments.
https://rednafi.com/misc/audit-commit-messages-on-github/ · 6 Oct 2022
Automate commit message validation with GitHub Actions. Enforce refs and closes patterns to maintain clean Git history and link commits to issues.
https://rednafi.com/misc/to-quote-or-not-to-quote/ · 5 Oct 2022
Master shell quoting rules: single vs double quotes, backticks vs $(). Learn when to quote variables to prevent spaces and special characters from breaking commands.
https://rednafi.com/misc/return-values-from-a-shell-function/ · 25 Sep 2022
Understand how return values work in Bash functions. Learn exit codes, status evaluation patterns, and proper boolean returns with true/false commands.
https://rednafi.com/misc/distil-git-logs-attached-to-a-file/ · 21 Jun 2022
View git commit history for a single file with git log --follow. Learn to track multiple files with xargs and concatenate their commit logs.
https://rednafi.com/misc/health-check-a-server-with-nohup/ · 18 Apr 2022
Run background health checks in CI with nohup and ampersand. Test server readiness with retry loops and automatic cleanup on success or failure.