About 353,000 results
Open links in new tab
  1. Why doesn't "ls *.e*" work as argument to "find -execdir"?

    So at that point, the find command (which understands globs, remember) will output the names of all files it finds under /path that match the glob. So using globs this way means that find will …

  2. wildcards - Convert glob to `find` - Unix & Linux Stack Exchange

    Aug 18, 2017 · 10 find (for the -name / -path standard predicates) uses wildcard patterns just like globs (note that {a,b} is not a glob operator; after expansion, you get two globs).

  3. bash - Recursive glob? - Unix & Linux Stack Exchange

    In order to do recursive globs in bash, you need the globstar feature from Bash version 4 or higher. From the Bash documentation: globstar If set, the pattern ** used in a filename …

  4. Pipe globs to ls - Unix & Linux Stack Exchange

    Jun 7, 2021 · Shells expand globs. Here, that's one of the very rare cases where the implicit split+glob operator invoked upon unquoted command substitution in Bourne-like shells other …

  5. Extend multiple globbing patterns with same additional pattern at …

    Apr 9, 2025 · I want to extend multiple globbing patterns with the same extension in a concise way. Here's what I tried (with only two initial patterns for demonstration purposes): …

  6. bash - Glob and regex matching - Unix & Linux Stack Exchange

    Jan 29, 2023 · Bash has two types of pattern matching, Glob and Regex. The general rule of usage seems to be that 1) the simpler glob is done to search filenames 2) regex is used for …

  7. Getting an array of files built from include array and exclude array ...

    Jun 14, 2023 · 1 I am wanting to do the following: Define an array of globs that specify a base collection of files to include in a process. Define an array of globs that specify files to exclude …

  8. Why isn't this bash script working (variable assignment inside for …

    Jul 5, 2023 · I used bash syntax because the question is tagged with bash Problems with the original script Iterating over ls output Ignoring non-matching globs Incorrect shebang Did not …

  9. If my variable contains quoted globs and I expand it without using ...

    Feb 6, 2024 · If my variable contains quoted globs and I expand it without using double quotes, why do the globs disappear? Ask Question Asked 1 year, 10 months ago Modified 1 year, 10 …

  10. How to ls with globbing for hidden files? - Unix & Linux Stack …

    It's the shell that finds the filenames matching the pattern, not ls itself. So you have to get the shell to include names starting with a dot, either using shopt -s dotglob before the ls command, or …