Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #55078
| From | Doug Anderson <ethelthelogremovethis@gmail.com> |
|---|---|
| Newsgroups | comp.sys.mac.system |
| Subject | Re: Question about wildcards in Unix |
| Date | 2014-01-20 12:55 -0800 |
| Organization | Rare |
| Message-ID | <fm1u025q5d.fsf@ethel.the.log> (permalink) |
| References | <52dc4f96$0$2686$c3e8da3$66d3cc2f@news.astraweb.com> <52dc55d7$0$39541$c3e8da3$50a2033e@news.astraweb.com> <52dc5ccf$0$58768$c3e8da3$12bcf670@news.astraweb.com> |
JF Mezei <jfmezei.spamnot@vaxination.ca> writes: > On 14-01-19 17:46, Joanna Shuttleworth wrote: > > > >> ls -R *.c only lists .c files in the current directory > >> ls -R */*.c will list .c files in any subdirectory > > > > no, but the first command would recursively list the entire contents > > of any directory with a name ending in '.c'. > > > That is the problem. It doesn't do that. It only lists .c files present > in the current directory and does not go into subdirectories to look for > other .c files. You didn't read carefully what Joanna wrote. It will recurse into other directories _if the directory name matches *.c_. Of course then it will give you _all_ files in those directories. In other words, the command actually does what you are telling it to, just not what you want it to.
Back to comp.sys.mac.system | Previous | Next — Previous in thread | Find similar | Unroll thread
Question about wildcards in Unix JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-01-19 17:19 -0500
Re: Question about wildcards in Unix Siri Cruz <chine.bleu@yahoo.com> - 2014-01-19 14:42 -0800
Re: Question about wildcards in Unix Joanna Shuttleworth <js@example.com> - 2014-01-19 22:46 +0000
Re: Question about wildcards in Unix JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-01-19 18:16 -0500
Re: Question about wildcards in Unix dempson@actrix.gen.nz (David Empson) - 2014-01-20 12:43 +1300
Re: Question about wildcards in Unix nospam <nospam@nospam.invalid> - 2014-01-19 19:02 -0500
Re: Question about wildcards in Unix dempson@actrix.gen.nz (David Empson) - 2014-01-20 17:41 +1300
Re: Question about wildcards in Unix JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-01-19 19:55 -0500
Re: Question about wildcards in Unix Jolly Roger <jollyroger@pobox.com> - 2014-01-20 03:00 +0000
Re: Question about wildcards in Unix mcarels@xs4all.nl (Maarten Carels) - 2014-01-20 10:05 +0100
Re: Question about wildcards in Unix Tim Streater <timstreater@greenbee.net> - 2014-01-20 09:49 +0000
Re: Question about wildcards in Unix Doug Anderson <ethelthelogremovethis@gmail.com> - 2014-01-20 12:57 -0800
Re: Question about wildcards in Unix JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-01-20 16:15 -0500
Re: Question about wildcards in Unix Doug Anderson <ethelthelogremovethis@gmail.com> - 2014-01-20 14:10 -0800
Re: Question about wildcards in Unix Tim Streater <timstreater@greenbee.net> - 2014-01-20 23:06 +0000
Re: Question about wildcards in Unix Doug Anderson <ethelthelogremovethis@gmail.com> - 2014-01-20 16:39 -0800
Re: Question about wildcards in Unix nospam <nospam@nospam.invalid> - 2014-01-20 18:44 -0500
Re: Question about wildcards in Unix Doug Anderson <ethelthelogremovethis@gmail.com> - 2014-01-20 16:42 -0800
Re: Question about wildcards in Unix Tim Streater <timstreater@greenbee.net> - 2014-01-21 10:23 +0000
Re: Question about wildcards in Unix Jolly Roger <jollyroger@pobox.com> - 2014-01-20 18:43 +0000
Re: Question about wildcards in Unix Doug Anderson <ethelthelogremovethis@gmail.com> - 2014-01-20 12:55 -0800
csiph-web