Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Wildcards and special file names.

Wiki MarkupThe shell has shorthand to refer to groups of files by allowing wildcards in file names. {{\*}} (asterisk) is the most common; it is a wildcard meaning "any length of any characters". Other useful ones are {{\[\]}} to allow for any character in the set {{<characters>> and {{}}{{\[\]}} for a range of characters.unmigrated-wiki-markup

For example: {{ls}} {{\*.bam}} lists all files in the current directory that end in {{.bam}}; {{ls}} {{\[A-Za-z\]*.bam}} does the same, but only if the first character of the file is a capital letter.

Three special file names:

...