globbing

All posts tagged globbing by Linux Bash
  • Posted on
    Featured Image
    The blog highlights the risks of using unquoted variables in Bash, particularly in test expressions like `[ x$var == xvalue ]`. Despite the 'x' prefix workaround to prevent syntax errors when `$var` is empty or begins with a hyphen, issues emerge if `$var` contains spaces or special characters. This can cause syntax breaks or faulty comparisons in the test command, leading to errors and potential security vulnerabilities due to word splitting, globbing, and accidental script injections. It recommends using quoted variables to enhance script security and reliability.
  • Posted on
    Featured Image
    Learn the key facets of Bash shell expansion and globbing in our article and streamline your Linux command line tasks with brace, tilde, variable, arithmetic, and pathname expansions. We cover practical applications across different Linux distributions with demonstrations using apt, dnf, and zypper, enhancing productivity and simplifying file management through globbing and wildcards. Ideal for those seeking to optimize their command line workflows.