Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C++ forcing unnecessary changes to C? Date: Tue, 22 Nov 2016 12:13:16 -0800 Organization: None to speak of Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="0025a28d334b2c37a4ed25218779b166"; logging-data="3353"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+fSvlchCV/BYYF3TEXiHO" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:g2GGBqaJAsCM856gqvKm5Tlgydk= sha1:yZ6rATNDntPVA8IKqNun/zKbFN4= Xref: csiph.com comp.lang.c:97305 BartC writes: [...] > (While you're here how do you do the equivalent of: > > dir pattern/s > > ? Where pattern is a filename including wildcards and /s means recurse > through sub-directories, printing all matches. ls -R pattern doesn't work.) Like most Unix commands, ls does not handle wildcard patterns itself, so it can't do this particular thing. The "find" command should do what you want, something like find . -name "pattern" Append "-ls" if you want a long listing rather than just a list of file names. "info find" for the full documentation. If that doesn't answer your question, I suggest finding a forum other than this one, perhaps comp.unix.questions. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"