Filter Files Directly in Zsh with Extended Glob Qualifiers: A Practical Guide
Learn how to use Zsh’s extended glob qualifiers to filter files by size, time, permissions, and more—saving time and avoiding external commands.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use Zsh’s extended glob qualifiers to filter files by size, time, permissions, and more—saving time and avoiding external commands.
Choosing between quoted and unquoted command substitutions in Bash can change script behavior dramatically. This guide explains the constraints, compares options in a clear table, and shows how to validate the outcome safely.
Zsh glob qualifiers filter file matches by type, size, and age directly in the pattern — no find pipeline needed. Learn the syntax, a worked example, and the no-match trap.
Learn how Bash’s strict mode turns common scripting bugs into immediate, visible errors, and see a concrete example that shows the trade‑offs of enabling it.
Stop spawning awk for every config key. Bash 4's associative arrays parse key=value files in one pass, with lookups that cost nothing — here's the pattern, the portability guard, and the gotchas.
Awk's associative arrays turn frequency counting and log aggregation into a one-liner. Here's the count[key]++ pattern, a worked example, and the memory and ordering limits to watch.
Bash 4.0+ associative arrays replace fragile grep/sed pipelines with native O(1) key-value lookups. Learn declaration patterns, iteration, parameter expansion, and a worked config-parsing example — plus portability limits and performance ceilings.
An architecture note on using awk associative arrays for streaming group-by aggregation: requirements, trust boundaries at field splitting and key cardinality, operational checks, failure modes, and when to move to a database or stream processor.
Bash's 'strict mode' (set -euo pipefail) turns silent failures into loud ones — especially pipefail, which stops 'build.sh | tee log' from masking a broken build. Here's what each option does, a worked deploy script, and the honest trade-offs.