Xref: utzoo comp.std.c:4363 comp.lang.c:36372 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!spool.mu.edu!uunet!elroy.jpl.nasa.gov!decwrl!mcnc!gatech!utkcs2!lape From: lape@cs.utk.edu (Bryon S. Lape) Newsgroups: comp.std.c,comp.lang.c Subject: Re: HELP: ===> wildcard ===> filename listing Message-ID: <1991Feb21.172953.7488@cs.utk.edu> Date: 21 Feb 91 17:29:53 GMT References: <1991Feb21.140918.1650@cs.utk.edu> Sender: usenet@cs.utk.edu (USENET News Poster) Organization: University of Tennessee, Knoxville - CS Department Lines: 26 In article <1991Feb21.140918.1650@cs.utk.edu> lape@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