up previous next contents
Next: Combining UNIX Commands Up: The UNIX Environment Previous: Important metacharacters:   Contents

Example 3-2: Sample uses of filename metacharacters

Example uses of filename metacharacters are shown below:

ls -al *.doc
Create a long listing of all files in the current directory that end with the characters ".doc".

ls -al Chapter?
Create a long listing of all files in the current directory that begin with the characters "Chapter" and end with any single character.

ls -al Chapter[0-9]
Create a long listing of all files in the current directory that begin with the characters "Chapter" and end with any single numeric digit, 0 through 9.


up previous next contents
Next: Combining UNIX Commands Up: The UNIX Environment Previous: Important metacharacters:   Contents