Topics:   Apple   -   Microsoft   -   Linux   -   Unix

Bash Extended Globbing

Wildcards in bash are referred to as pathname expansion. Pathname expansion is also sometimes referred to as globbing. Pathname expansion "expands" the "*", "?", and "[...]" syntaxes when you type them as part of a command, for example:

  $ ls *.jpg         # List all JPEG files
  $ ls ?.jpg         # List J

read more


 

More Stories in Linux Journal