Xref: utzoo comp.std.c:4361 comp.lang.c:36359 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!wuarchive!ukma!usenet.ins.cwru.edu!gatech!utkcs2!lape From: lape@cs.utk.edu (Bryon S. Lape) Newsgroups: comp.std.c,comp.lang.c Subject: HELP: ===> wildcard ===> filename listing Message-ID: <1991Feb21.140918.1650@cs.utk.edu> Date: 21 Feb 91 14:09:18 GMT Sender: usenet@cs.utk.edu (USENET News Poster) Organization: University of Tennessee, Knoxville - CS Department Lines: 18 Originator: lape@hydra1a.cs.utk.edu 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