next up previous contents
Next: Pipelines () Up: Commands Previous: Commands   Contents

Wild card characters (*, ?)

Like VMS and MS-DOS, UNIX has wild card characters. The ones used most often are ``?'' and ``*''. ? is a wild card character representing one character and * represents an arbitrary number of characters. For instance, you may wish to remove all the files beginning with a particular string. To do this procedure you would type rm, then the beginning of the string ending with a ``*'', just like with VMS:

malama% rm params*

You can specify a range of acceptable characters by enclosing it in square brackets, e.g.

malama% rm params.[1-5]



h.stilmack@jach.hawaii.edu