Category: Programming
Category: Programming
Section titled “Category: Programming”7 posts
Use related tags below to narrow down implementation-level topics.
Related tags
- Shell Script (6)
- Linux (5)
- Bash (4)
- Scripting (3)
- Text Processing (2)
- Array (1)
- Associative Array (1)
- Configuration Management (1)
- Safely process filenames containing spaces and newlines with find and xargs Learn how to safely process large numbers of filenames containing spaces or newlines using find -print0, xargs -0, -exec, batching, and parallel execution.
- Safely Transform Configuration Files with sed Explains how to safely transform configuration files with sed using addresses, captures, backups, idempotent replacement, and diff checks to prevent unintended changes on repeated runs.
- Bash File Descriptors and I/O Redirection Learn Bash file descriptors, separating stdout and stderr, grouping commands, and the difference from tee through practical examples, and safely route logs and error output to the intended destinations.
- Use Bash Parameter Expansion for Defaults, Validation, and String Processing Explains how to use Bash parameter expansion to set defaults, validate unset values, remove prefixes and suffixes, and replace strings so input can be processed safely with fewer external commands.
- Detecting Bash Script Failures with strict mode and trap Learn how to reliably detect Bash script failures with errexit, nounset, pipefail, and ERR/EXIT traps, including safe execution with exception handling and cleanup.
- Practical Patterns for Bash Arrays and Associative Arrays This article explains practical patterns for Bash arrays and associative arrays, including adding elements, managing keys, iterating safely, and handling arguments, so that multiple values can be processed safely without concatenating them into a single string.
- Regular Expressions Reference Comprehensive regular expression reference. Covers newline differences, multiline extraction, negation, and replacement with portable, flag-independent safe patterns and practical examples.