Shell file completion

Bill Moran wmoran at
Sun Feb 20 17:20:03 GMT 2005

[Please wrap your lines around 72 chars or so]

Alejandro Pulver <alejandro at> wrote:
> Hello,
> I was learning regular expressions, and I noticed that the shell has
> something similar (but it is different from regular expressions).
> When I type 'echo *', it replaces '*' for all the files/dirs not starting
> with a '.' (dot).
> I understand the '*' in regular expressions must be preceded by other
> thing to match it.
> So it is behaving like the DOS wildcards.

That's funny.  More like "DOS wildcards seem to mimic this".

> Where is it documented?

'man sh' - the section on "Shell Patterns".

Bill Moran
Potential Technologies
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list