HELP: ===> wildcard ===> filename listing

Bryon S. Lape lape at cs.utk.edu
Fri Feb 22 04:29:53 AEST 1991


In article <1991Feb21.140918.1650 at cs.utk.edu> lape at cs.utk.edu (Bryon S. Lape) writes:
>
>	I need to know who to get all the filenames that meet a given
>wildcard in Unix from c.  For instance, say my programme my_foo will print
>the contents of any file given and I type:
>
>		my_foo *a*.c
>
>	What I would like to get is all files with an a in them and an
>extension of .c, and print them to stdout (not the same way pg or more
>does, by the way).  How do I get a list of files meeting the passed
>wildcard?  I have done this in Quick C but that was using none standard
>funcs.
>
>
>	Please e-mail responses.
>
>
>Bryon

	Many thanks for those who have sent me mail on this subject.  I had
no idea that the shell did this for you.  I just have one more question, do
all shells do this, or just specific ones?


Bryon Lape



More information about the Comp.std.c mailing list